1 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * gnat_rm.texi (Implementation Defined Characteristics)
4 (Standard Library Routines): Use @smallexample for indented
5 text. Drop Indentation outside examples.
6 * gnat_ugn.texi: Likewise.
8 2008-06-13 Olivier Hainque <hainque@adacore.com>
10 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
12 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
13 realignment with force_align_arg_pointer attribute on foreign
14 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
16 2008-06-13 Olivier Hainque <hainque@adacore.com>
18 * utils.c (rest_of_record_type_compilation): When computing
19 encodings for the components of a variable size type, early
20 strip conversions on the current position expression to make
21 sure it's shape is visible. Use remove_conversions for this
24 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
26 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
27 constrained subtype of a discriminated type, discard the fields that
28 are beyond its limits according to its size.
30 2008-06-10 Olivier Hainque <hainque@adacore.com>
32 * utils.c (create_subprog_decl): If this is for the 'main' entry
33 point according to the asm name, redirect main_identifier_node.
35 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
37 * decl.c (components_to_record): Adjust the packedness for the
38 qualified union as well.
40 2008-06-09 Arnaud Charlet <charlet@adacore.com>
42 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
45 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
47 * sem_res.adb (Large_Storage_Type): A type is large if it
48 requires as many bits as Positive to store its values and its
49 bounds are known at compile time.
50 * sem_ch13.adb (Minimum_Size): Note that this function returns
51 0 if the size is not known at compile time.
53 2008-06-06 Nicolas Setton <setton@adacore.com>
54 Olivier Hainque <hainque@adacore.com>
56 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
57 attribute, parallel descriptive type attached to another
58 type for debug info generation purposes.
59 * utils.c (add_parallel_type): New function, register
60 parallel type to be attached to a type.
61 (get_parallel_type): New function, fetch a registered
62 parallel type, if any.
63 (rest_of_record_type_compilation): Register the parallel
64 type we make for variable size records.
65 * gigi.h (add_parallel_type, get_parallel_type): Declare.
66 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
67 parallel debug types we make.
68 * trans.c (extract_encoding, decode_name): New functions.
69 (gigi): If the DWARF attribute extensions are available, setup
71 * lang.opt: Register language specific processing request
73 * misc.c (gnat_dwarf_extensions): New global variable. How much
74 do we want of our DWARF extensions. 0 by default.
75 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
76 (gnat_post_options): Map gnat_dwarf_extensions to the
77 commonuse_gnu_debug_info_extensions for later processing.
79 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
81 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
83 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
85 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
86 * gnat_ugn.texi (Style Checking)
87 (Adding the Results of Compiler Checks to gnatcheck Output)
88 (Example of Binder Output File): Fix typos.
89 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
90 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
91 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
92 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
93 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
94 sinfo.ads, utils.c: Fix typos in comments.
95 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
97 2008-05-29 Thomas Quinot <quinot@adacore.com>
99 * sem_eval.adb: Minor reformatting
101 2008-05-29 Ed Schonberg <schonberg@adacore.com>
103 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
104 is abstract, do not apply abstractness check on subprogram if this is
105 a renaming declaration.
107 2008-05-29 Arnaud Charlet <charlet@adacore.com>
110 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
111 allow recognition of program suffix in addition to prefix.
113 * gnatchop.adb (Locate_Executable): Add support for prefix.
115 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
116 mlib-utl.adb: Adjust calls to Program_Name.
118 2008-05-29 Robert Dewar <dewar@adacore.com>
120 * sem_ch3.adb: Minor reformatting
121 * sem_prag.adb: Minor reformatting
122 * sem_res.adb: Minor reformatting
123 * sinput-p.ads: Minor reformatting
125 2008-05-29 Javier Miranda <miranda@adacore.com>
128 (Abstract_Interface_List): Add missing support for full type-declaration
129 associated with synchronized types.
131 2008-05-29 Robert Dewar <dewar@adacore.com>
133 * sem_eval.adb (Is_Same_Value): Take care of several more cases
135 2008-05-28 Ed Schonberg <schonberg@adacore.com>
137 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
138 access type, wrap the expression in a conversion to force an
141 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
142 accessibility checks even when expansion is disabled in order to
143 generate messages in the presence of previous errors or in
146 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
148 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
149 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
151 2008-05-28 Vincent Celier <celier@adacore.com>
154 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
155 preprocessing expressions
157 2008-05-28 Vincent Celier <celier@adacore.com>
159 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
162 * sinput-p.ads: Minor comment update and reformatting
164 2008-05-28 Ed Schonberg <schonberg@adacore.com>
166 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
167 type has a deeper level than any master only when it is the type of an
170 2008-05-28 Javier Miranda <miranda@adacore.com>
172 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
174 2008-05-28 Javier Miranda <miranda@adacore.com>
176 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
177 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
178 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
179 Add code that was previously located in
180 Find_Overridden_Synchronized_Primitive because it is only used here.
182 2008-05-28 Sergey Rybin <rybin@adacore.com>
184 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
185 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
187 2008-05-28 Robert Dewar <dewar@adacore.com>
190 Add missing restrictions, and properly label all GNAT defined ones
193 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
194 Add entry for Ada.Task_Termination.Set_Specific_Handler
195 Add entry for Ada.Task_Termination.Specific_Handler
198 Add missing restrictions and properly mark all gnat defined ones
201 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
204 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
206 * gnat_rm.texi: Add missing restrictions, and properly label all
209 2008-05-28 Robert Dewar <dewar@adacore.com>
212 (Check_Restriction): violation of restriction No_Finalization is
213 treated as a serious error to stop expansion
215 2008-05-28 Robert Dewar <dewar@adacore.com>
217 * exp_util.adb: Minor reformatting
218 * exp_util.ads: Minor reformatting.
220 2008-05-28 Arnaud Charlet <charlet@adacore.com>
222 * Make-lang.in: Remove gprmake.
224 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
226 2008-05-28 Ed Schonberg <schonberg@adacore.com>
228 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
229 improper progenitor names, and avoid cascaded errors.
231 2008-05-28 Robert Dewar <dewar@adacore.com>
233 * gnat_rm.texi: Add note on Old giving warning when applied to constant
235 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
238 2008-05-28 Robert Dewar <dewar@adacore.com>
240 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
243 2008-05-28 Robert Dewar <dewar@adacore.com>
246 (Expand_Simple_Function_Return): Copy unaligned result into temporary
248 2008-05-28 Javier Miranda <miranda@adacore.com>
250 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
251 for user-defined predefined primitives.
253 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
254 (Find_Overridden_Synchronized_Primitive): Ditto.
256 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
258 2008-05-27 Arnaud Charlet <charlet@adacore.com>
260 * a-ststio.adb, s-direio.adb:
261 Further code clean up of previous change.
264 2008-05-27 Vincent Celier <celier@adacore.com>
266 * prj-nmsc.adb: Minor reformatting
268 2008-05-27 Bob Duff <duff@adacore.com>
270 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
271 untagged private type with a tagged full type, where the full type has
272 a self reference, create the corresponding class-wide type early, in
273 case the self reference is "access T'Class".
275 2008-05-27 Ed Schonberg <schonberg@adacore.com>
277 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
278 tasks and context is an object declaration. create master entity before
281 2008-05-27 Robert Dewar <dewar@adacore.com>
283 * mlib-prj.adb: Minor reformatting
285 * prj-part.adb: Minor reformatting
287 * prj.ads: Minor reformatting
289 * exp_ch3.adb: Minor reformatting.
291 * sem_ch3.ads: Minor reformatting
293 * sem_eval.adb: Minor reformatting
295 2008-05-27 Vincent Celier <celier@adacore.com>
298 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
300 2008-05-27 Ed Schonberg <schonberg@adacore.com>
302 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
303 tasks, create an activation chain now, before the expansion into
304 assignments and build-in-place calls that require the presence of an
306 (Backend_Processing_Possible): If the component type is inherently
307 limited, the aggregate must be expanded into individual built-in-place
310 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
311 determine whether an allocation extra parameter must be built, to
312 handle case of a private type whose full type is a discriminated type
315 2008-05-27 Bob Duff <duff@adacore.com>
318 Document the new behavior regarding trampolines.
320 2008-05-27 Arnaud Charlet <charlet@adacore.com>
322 * a-direio.adb, a-sequio.adb: Replace address clause by
323 unrestricted_access, simpler and compatible with .NET.
325 2008-05-27 Vincent Celier <celier@adacore.com>
328 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
329 a project file, so that symbolic links are not resolved.
331 2008-05-27 Arnaud Charlet <charlet@adacore.com>
333 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
334 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
335 portable across GNAT targets, since this kind of address clause is not
336 supported by VM back-ends (.NET/JGNAT).
338 2008-05-27 Arnaud Charlet <charlet@adacore.com>
340 * bindgen.adb: Update comments.
342 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
344 2008-05-27 Vincent Celier <celier@adacore.com>
346 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
347 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
348 mlib-tgt.adb, prj-env.adb, prj-env.ads:
349 (Path_Information): New record type
350 Use component of type Path_Information when there are two paths, one in
351 canonical format and one in display format.
352 Update the project manager to these new components.
354 2008-05-27 Robert Dewar <dewar@adacore.com>
356 * makeutl.adb: Minor reformatting
357 * prj-nmsc.adb: Minor reformatting
358 * s-stausa.adb: Minor reformatting
359 * s-stausa.ads: Minor reformatting
360 * sem_ch6.adb: Minor reformatting
362 2008-05-27 Thomas Quinot <quinot@adacore.com>
364 * sem_res.adb: Minor comment fixes
366 2008-05-27 Thomas Quinot <quinot@adacore.com>
368 * makeutl.adb: Minor code reorganization
370 * exp_aggr.adb: Add ??? comment
373 * exp_ch6.adb: Minor reformatting
375 2008-05-27 Quentin Ochem <ochem@adacore.com>
377 * s-stausa.adb (Initialize): Updated result initialization, and
378 initialization of environment stack.
379 (Fill_Stack): Improved computation of the pattern zone, taking into
380 account already filled at the calling point.
381 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
382 Measure and Overflow_Guard.
383 (Report_Result): Fixed computation of the result using new fields of
386 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
387 params by more explicit Stack_Size / Max_Pattern_Size params.
388 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
389 Added Stack_Used_When_Filling field.
390 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
391 Min_Measure and Max_Measure fields.
393 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
395 2008-05-27 Vincent Celier <celier@adacore.com>
398 (Check_File): Make sure that a unit that replaces the same unit in a
399 project being extended is properly processed.
401 2008-05-27 Ed Schonberg <schonberg@adacore.com>
404 (Get_Discr_Value): Remove obsolete code that failed to find the value
405 of a discriminant for an inherited task component appearing in a type
408 2008-05-27 Thomas Quinot <quinot@adacore.com>
410 (System.File_IO.{Close, Delete, Reset}):
411 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
413 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
414 Pass File parameter by reference.
416 2008-05-27 Vincent Celier <celier@adacore.com>
419 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
420 sources of the same project that have the same object file name.
421 (Find_Explicit_Sources): Always remove a source exception that was not
424 2008-05-27 Thomas Quinot <quinot@adacore.com>
426 * sem_ch3.adb: Minor reformatting
428 2008-05-27 Ed Schonberg <schonberg@adacore.com>
431 (Is_Interface_Conformant): Handle properly a primitive operation that
432 overrides an interface function with a controlling access result.
433 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
434 inherited and overriding operations, omit as well the conformance check
435 on result types, to prevent spurious errors.
437 2008-05-27 Vincent Celier <celier@adacore.com>
439 * makeutl.ads, makeutl.adb:
440 (Set_Location): New procedure
441 (Get_Location): New function
442 (Update_Main): New procedure
444 2008-05-27 Vincent Celier <celier@adacore.com>
447 (Check_Library): Allow standard project to be extended as a static
449 (Get_Mains): Do not inherit attribute Main in an extending library
452 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
454 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
455 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
456 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
457 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
458 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
459 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
460 * system-mingw.ads (Always_Compatible_Rep): Likewise.
461 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
462 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
463 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
465 2008-05-27 Ed Schonberg <schonberg@adacore.com>
467 * sem_attr.adb: add guard to previous patch.
469 2008-05-27 Ed Schonberg <schonberg@adacore.com>
471 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
472 a synchronized tagged type, do not attempt to build dispatch table for
473 full view. The table is built for the corresponding record type, which
474 has its own declaration.
476 2008-05-27 Gary Dismukes <dismukes@adacore.com>
478 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
479 to the known type entity E, rather than setting it to Any_Type. Fixes
480 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
481 for objects whose type had an illegal constraint.
483 2008-05-27 Vincent Celier <celier@adacore.com>
486 Add succinct documentation for attribute Excluded_Source_List_File
488 2008-05-27 Vincent Celier <celier@adacore.com>
490 * prj-attr.adb: Add new project level attribute Map_File_Option
492 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
494 * prj.ads: Minor reformatting and comment update
495 (Project_Configuration): New component Map_File_Option
497 * snames.adb: New standard name Map_File_Option
499 * snames.ads: New standard name Map_File_Option
501 2008-05-27 Vincent Celier <celier@adacore.com>
503 * xsnames.adb: Remove unused variable Oname
505 2008-05-27 Doug Rupp <rupp@adacore.com>
508 (Expand_N_Function_Call): Fix comments. Minor reformatting.
511 (Expand_Vax_Foreign_Return): Fix comments.
513 2008-05-27 Thomas Quinot <quinot@adacore.com>
515 * exp_dist.adb: Minor reformating
517 2008-05-26 Gary Dismukes <dismukes@adacore.com>
519 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
520 No_Default_Initialization, which is now delayed until the freeze point
521 of the object. Add a comment about deferral of the check.
523 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
524 on objects is moved here.
526 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
528 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
529 (Compare_Array_S16): Adjust for above change.
530 * s-casi32.adb (Uword): Likewise.
531 (Compare_Array_S32): Likewise.
532 * s-casi64.adb (Uword): Likewise.
533 (Compare_Array_S64): Likewise.
534 * s-caun16.adb (Uhalf): Likewise.
535 (Compare_Array_U16): Likewise.
536 * s-caun32.adb (Uword): Likewise.
537 (Compare_Array_U32): Likewise.
538 * s-caun64.adb (Uword): Likewise.
539 (Compare_Array_U64): Likewise.
541 2008-05-26 Robert Dewar <dewar@adacore.com>
543 * exp_ch6.adb: Add ??? comment for previous change
545 * exp_vfpt.adb: Minor reformatting
547 * exp_vfpt.ads: Add ??? comment for last change
549 * sem_attr.adb: Add some ??? comments for previous change
551 * s-vaflop.ads: Add comments for previous change
553 2008-05-26 Doug Rupp <rupp@adacore.com>
555 * s-vaflop-vms-alpha.adb:
556 Remove System.IO use clause, to prevent spurious ambiguities when
557 package is access through rtsfind.
559 2008-05-26 Sergey Rybin <rybin@adacore.com>
561 * tree_io.ads (ASIS_Version_Number): Update because of the changes
564 2008-05-26 Ed Schonberg <schonberg@adacore.com>
567 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
568 converted to S (A)'address only if A .. B is known to be a non-null
571 2008-05-26 Doug Rupp <rupp@adacore.com>
574 (Return_D, Return_F, Return_G): New functions.
577 (Return_D, Return_F, Return_G): New functions.
580 (Expand_Vax_Foreign_Return): New procedure
583 (Expand_Vax_Foreign_Return): New procedure
586 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
587 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
591 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
593 * s-vaflop-vms-alpha.adb:
594 (Return_D, Return_F, Return_G): New functions.
596 2008-05-26 Gary Dismukes <dismukes@adacore.com>
598 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
599 init proc entity when there is actual default initialization associated
600 with the component type, to avoid spurious errors on objects of scalar
601 array types that are marked Is_Public when No_Default_Initialization
604 2008-05-26 Thomas Quinot <quinot@adacore.com>
606 * rtsfind.ads, rtsfind.adb:
607 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
608 (Check_RPC): Support per-PCS-kind API versioning.
610 exp_dist.ads, exp_dist.adb:
611 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
612 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
613 library function Get_RACW.
614 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
615 library function Get_Reference.
616 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
617 through an intermediate Any.
618 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
619 going through an intermediate Any.
621 * sem_dist.adb: Minor reformatting.
623 2008-05-26 Javier Miranda <miranda@adacore.com>
625 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
626 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
627 (Is_Internal): Adding documentation on internal entities that have
628 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
630 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
631 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
632 Added assertion to force entities with this attribute to have
633 attribute Is_Internal set to True.
634 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
636 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
637 renamed as Derive_Progenitor_Subprograms. In addition, its code is
638 a new implementation.
639 (Add_Interface_Tag_Components): Remove special management of
640 synchronized interfaces.
641 (Analyze_Interface_Declaration): Minor reformating
642 (Build_Derived_Record_Type): Minor reformating
643 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
644 predefined primitive inherited from interface type because the body of
645 internally generated predefined primitives of tagged types are generated
647 (Derive_Subprogram): Avoid generating an internal name if the parent
648 subprogram overrides an interface primitive.
649 (Derive_Subprograms): New implementation that keeps separate the
650 management of tagged types not implementing interfaces, from tagged
651 types that implement interfaces.
652 (Is_Progenitor): New implementation.
653 (Process_Full_View): Add documentation
654 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
655 by call to Derive_Progenitor_Subprograms.
657 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
658 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
659 Skip_Controlling_Formals.
661 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
662 (Check_Conventions): New implementation. Remove local subprogram
663 Skip_Check. Remove formal Search_From of routine Check_Convention.
664 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
665 Skip_Controlling_Formals.
666 (New_Overloaded_Entity): Enable addition of predefined dispatching
670 (Find_Primitive_Covering_Interface): New subprogram.
672 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
673 the task body procedure as a primitive of the corresponding tagged
675 (Check_Operation_From_Private_Type): Avoid adding twice an entity
676 to the list of primitives.
677 (Find_Primitive_Covering_Interface): New subprogram.
678 (Override_Dispatching_Operation): Add documentation.
680 * sem_type.adb (Covers): Minor reformatings
682 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
685 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
686 (Implements_Interface): New subprogram.
687 (Is_Parent): Removed.
688 (Primitive_Names_Match): New subprogram.
689 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
690 (Ultimate_Alias): New subprogram.
692 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
694 Remove special management for synchronized types. Rename formal. Remove
695 internal subprograms Interface_Present_In_Parent and Add_Interface.
696 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
697 on non-record types by code to return false in such case.
698 (Implements_Interface): New subprogram.
699 (Is_Parent): Removed. No special management is now required for
700 synchronized types covering interfaces.
701 (Primitive_Names_Match): New subprogram.
702 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
703 (Ultimate_Alias): New subprogram.
705 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
706 Add internal entities associated with secondary dispatch tables to
707 the list of tagged type primitives that are not interfaces.
708 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
709 (Make_Predefined_Primitive_Specs): Code reorganization to improve
710 the management of predefined equality operator. In addition, if
711 the type has an equality function corresponding with a primitive
712 defined in an interface type, the inherited equality is abstract
713 as well, and no body can be created for it.
715 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
716 exp_util to exp_disp.
717 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
718 an entity corresponds with one of the predefined primitives required
719 to implement interfaces.
720 Update copyright notice.
722 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
723 final check on abstract subprograms all the primitives associated with
724 interface primitives because they must be visible in the public and
726 (Write_DT): Use Find_Dispatching_Type to locate the name of the
727 interface type. This allows the use of this routine, for debugging
728 purposes, when the tagged type is not fully decorated.
729 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
730 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
731 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
732 entity corresponds with one of the predefined primitives required to
733 implement interfaces.
735 * exp_util.adb (Find_Interface_ADT): New implementation
736 (Find_Interface): Removed.
738 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
739 list of interfaces associated with nodes
740 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
742 2008-05-26 Thomas Quinot <quinot@adacore.com>
744 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
745 condition for assignment to temporary.
747 2008-05-26 Ed Schonberg <schonberg@adacore.com>
749 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
750 checks on the upper bound if the index type is a modular type, to
751 prevent wrap-around computations when size is close to upper bound of
754 2008-05-26 Robert Dewar <dewar@adacore.com>
756 * sem_ch3.adb: Minor reformatting
758 2008-05-26 Ed Schonberg <schonberg@adacore.com>
760 * sem_ch12.adb (Remove_Parent): Use specification of instance
761 to retrieve generic parent,
762 to handle properly the case where the instance is a child unit.
763 Add guard to handle properly wrapper packages.
766 2008-05-26 Thomas Quinot <quinot@adacore.com>
768 * sinfo.ads: Minor reformatting
770 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
772 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
773 Generate a tag check when the result subtype of a function, defined by
774 an access definition, designates a specific tagged type.
775 (Make_Tag_Check): New routine.
777 2008-05-26 Arnaud Charlet <charlet@adacore.com>
779 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
781 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
783 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
784 (builtin_decl_for): Likewise.
785 * trans.c (gigi): Likewise.
786 * utils.c (def_builtin_1): Fix formatting.
788 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
790 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
791 Create the statements which map a string name to protected or task
794 * exp_ch9.adb: Add with and use clause for Stringt.
795 Minor code reformatting.
796 (Build_Entry_Names): New routine.
797 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
798 for flag Build_Entry_Names which controls the allocation of the data
799 structure for the string names of entries.
801 * exp_ch9.ads (Build_Entry_Names): New subprogram.
803 * exp_util.adb (Entry_Names_OK): New function.
805 * exp_util.ads (Entry_Names_OK): New function.
807 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
808 enumerations RE_Id and RE_Unit_Table.
810 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
811 (Free_Entry_Names_Array): New routine.
813 * s-taskin.ads: Comment reformatting.
814 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
815 Add component Entry_Names to record Ada_Task_Control_Block.
816 (Free_Entry_Names_Array): New routine.
818 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
819 dynamically allocate an array
820 of string pointers. This structure holds string entry names.
821 (Free_Entry_Names): New routine.
822 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
823 (Set_Entry_Names): New routine.
826 (Create_Task): Add formal Build_Entry_Names. The flag is used to
827 control the allocation of the data structure which stores entry names.
828 (Set_Entry_Name): New routine.
831 Add with and use clause for Ada.Unchecked_Conversion.
832 (Finalize): Deallocate the entry names array.
833 (Free_Entry_Names): New routine.
834 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
835 create an array of string pointers to hold the entry names.
836 (Set_Entry_Name): New routine.
839 Add field Entry_Names to record Protection_Entries.
840 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
841 (Set_Entry_Name): New routine.
843 2008-05-26 Vincent Celier <celier@adacore.com>
846 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
849 (Project_Configuration): New component Shared_Lib_Driver
851 2008-05-26 Ed Schonberg <schonberg@adacore.com>
854 (Cleanup_Scopes): For a protected operation, transfer finalization list
855 to protected body subprogram, to force cleanup actions when needed.
857 2008-05-26 Robert Dewar <dewar@adacore.com>
859 * sem_cat.adb: Minor reformatting
861 * gnatname.adb: Minor reformatting
863 * osint.ads: Minor reformatting
865 * s-carun8.ads: Minor reformatting
867 * g-heasor.ads: Minor comment fix (unit is now pure)
869 2008-05-26 Robert Dewar <dewar@adacore.com>
872 (Expand_Current_Value): Properly type generated integer literal
874 2008-05-26 Sergey Rybin <rybin@adacore.com>
876 * gnat_ugn.texi: Add description for the new gnatcheck rule -
877 Separate_Numeric_Error_Handlers.
879 2008-05-26 Pascal Obry <obry@adacore.com>
881 * sem_aggr.adb: Minor reformatting.
883 2008-05-26 Jose Ruiz <ruiz@adacore.com>
886 (To_Target_Priority): Setting the time slice value to 0 or greater sets
887 the scheduling policy to FIFO within priorities or round-robin
889 Hence, the priority must be set in this case to the one selected by the
892 2008-05-26 Ed Schonberg <schonberg@adacore.com>
895 (Remove_Parent): If the enclosing scope is an instance whose generic
896 parent is declared within some parent scope of the just completed
897 instance, make full views of the entities in that parent visible, when
900 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
902 * mingw32.h (STD_MINGW): Set to true for target w64.
904 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
906 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
907 instead of TREE_STATIC on the ADDR_EXPR.
909 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
911 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
912 (Sloc_to_locus): Do not overwrite known GCC locations when translating
913 GNAT standard locations.
915 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
917 * gigi.h (mark_visited): Declare.
918 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
919 only the topmost node of expressions.
920 (elaborate_expression_1): Look deeper for read-only variables.
921 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
922 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
923 (mark_visited_r): New function.
925 2008-05-23 Vincent Celier <celier@adacore.com>
927 * snames.adb: New standard name Excluded_Source_List_File.
929 * snames.ads: New standard name Excluded_Source_List_File.
931 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
933 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
934 Get excluded sources from
935 file indicated by attribute Excluded_Source_List_File, when present and
936 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
938 2008-05-23 Robert Dewar <dewar@adacore.com>
940 * exp_dist.adb: Minor reformatting
942 2008-05-23 Ed Schonberg <schonberg@adacore.com>
944 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
945 slice, convert it to an indexed component, which is equivalent, more
946 efficient, and usable even if the slice itself is not addressable.
948 2008-05-23 Olivier Hainque <hainque@adacore.com>
950 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
951 convention also allows access to named compiler built-in subprograms
952 such as the GCC __builtin family.
954 2008-05-23 Vincent Celier <celier@adacore.com>
956 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
957 sep. If there are several possibilities, choose the one with the
960 2008-05-23 Vincent Celier <celier@adacore.com>
962 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
963 back end switches when executable specified with --GCC= is same as
964 default, even if there are additional options.
967 Document when the back end switches from the ALI file are taken into
968 account when gnatlink is invoked with --GCC=
970 2008-05-23 Thomas Quinot <quinot@adacore.com>
973 (copy_File): Do not open destination file if source file is unreadable.
975 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
977 * utils.c (handle_type_generic_attribute): Adjust to accept
978 fixed arguments before an elipsis.
980 2008-05-21 Thomas Quinot <quinot@adacore.com>
982 * g-sothco.ads, g-sothco.adb: New files.
984 2008-05-20 Thomas Quinot <quinot@adacore.com>
986 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
988 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
989 Add missing "with" of Ada.Unchecked_Conversion
991 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
992 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
993 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
994 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
995 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
996 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
997 Move common code out of GNAT.Sockets.Thin implementations and into
999 New constant SIZEOF_fd_set
1000 New flag Has_Sockaddr_Len
1001 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1003 * g-stsifd-sockets.adb
1004 (Create): Remove call to Set_Length; use Set_Family to set the family
1005 and (on appropriate platforms) length fields in struct sockaddr.
1007 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
1008 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
1009 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1010 Move common code out of GNAT.Sockets.Thin implementations and into
1013 * g-socket.ads, g-socket.adb:
1014 Move common code out of GNAT.Sockets.Thin implementations and into
1016 (Connect_Socket, Accept_Socket): Provide new versions of these two
1017 routines that operate with a user specified timeout.
1018 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1019 this is now handled automatically by Set_Family on platforms that
1023 Move common code out of GNAT.Sockets.Thin implementations and into
1025 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1026 this constant to 0 (not -1) because we use it to initialize an
1027 unsigned_char value.
1028 Align values for numeric constants only.
1029 Handle the case of systems that do not support AF_INET6.
1030 New constant SIZEOF_fd_set
1031 New flag Has_Sockaddr_Len
1032 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1034 * gsocket.h: New flag Has_Sockaddr_Len
1035 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1037 2008-05-20 Santiago Uruena <uruena@adacore.com>
1039 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1041 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1043 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1044 the underlying issue with malloc/free has been fixed. Remove associated
1047 Related to PR ada/24533
1049 2008-05-20 Robert Dewar <dewar@adacore.com>
1051 * ali.adb: Correct casing of ASCII.NUL
1053 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1056 2008-05-20 Robert Dewar <dewar@adacore.com>
1057 Gary Dismukes <dismukes@adacore.com>
1059 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1060 overflow if result converted to wider integer type.
1061 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1062 discriminated types when discriminant checks are suppressed.
1064 2008-05-20 Vincent Celier <celier@adacore.com>
1066 * cstand.adb (Print_Standard): Issue the correct Size clause for type
1067 Wide_Wide_Character.
1069 2008-05-20 Tristan Gingold <gingold@adacore.com>
1071 * decl.c: Do not emit a variable for a object that has an address
1072 representation clause whose value is known at compile time.
1073 When a variable has an address clause whose value is known at compile
1074 time, refer to this variable by using directly the address instead of
1075 dereferencing a pointer.
1077 2008-05-20 Robert Dewar <dewar@adacore.com>
1080 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1081 subtypes, always False for non-modular types.
1082 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1083 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1084 for Shared_Storage package.
1085 (Is_RACW_Stub_Type): New entity flag.
1088 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1089 case where we have a modular type with a non-binary modules.
1090 Comments reformattings.
1092 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1095 2008-05-20 Javier Miranda <miranda@adacore.com>
1098 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1099 tests did not covered the case in which the type of the aggregate has
1100 no progenitors but some its parents has progenitors.
1102 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1103 Hristian Kirtchev <kirtchev@adacore.com>
1106 (Expand_N_Object_Declaration): Correct the condition which triggers the
1107 generation of a call to Displace when initializing a class-wide object.
1108 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1109 when Frontend_Layout_On_Target is true to ensure that they're available
1110 for calling when a record variant size function is built in Layout.
1112 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1114 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1115 procedure for a derived type retrieve the discriminant values from the
1116 parent using the corresponding discriminant.
1117 (Expand_N_Assignment_Statement): Skip generation of implicit
1118 if-statement associated with controlled types if we are
1119 compiling with restriction No_Finalization.
1121 2008-05-20 Vincent Celier <celier@adacore.com>
1123 * prj.adb (Hash (Project_Id)): New function
1124 (Project_Empty): Add new component Interfaces_Defined
1126 * prj.ads (Source_Data): New component Object_Linked
1127 (Language_Config): New components Object_Generated and Objects_Linked
1128 (Hash (Project_Id)): New function
1129 (Source_Data): New Boolean components In_Interfaces and
1130 Declared_In_Interfaces.
1131 (Project_Data): New Boolean component Interfaces_Defined
1134 New project level attribute Object_Generated and Objects_Linked
1135 Add new project level attribute Interfaces
1137 * prj-dect.adb: Use functions Present and No throughout
1138 (Parse_Variable_Declaration): If a string type is specified as a simple
1139 name and is not found in the current project, look for it also in the
1140 ancestors of the project.
1143 Replace procedure Make with procedures Initialize, Process and Finalize
1144 to implement H414-023: process different directories with different
1146 Use functions Present and No throughout
1149 Replace procedure Make with procedures Initialize, Process and Finalize
1152 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1153 the language configuration.
1154 (Process_Project_Level_Array_Attributes): Process new attributes
1155 Object_Generated and Object_Linked.
1156 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1157 False, to indicate that the erreor/warning is a continuation.
1158 (Check): Call Report_No_Sources with Contnuation = True after the first
1160 (Error_Msg): Process successively contnuation character and warning
1162 (Find_Explicit_Sources): Check that all declared sources have been found
1163 (Check_File): Indicate in hash table Source_Names when a declared source
1165 (Check_File): Set Other_Part when found
1166 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1167 to the naming scheme have been found. For Ada, report an error if an
1168 exception has not been found. Otherwise, disregard the exception.
1169 (Check_Interfaces): New procedure
1170 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1172 (Check): In multi-language mode, call Check_Interfaces
1173 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1174 for an excluded source.
1175 (Remove_Source): A source replacing a source in the interfaces is also
1178 * prj-pars.adb: Use function Present
1180 * prj-part.adb: Use functions Present and No throughout
1181 (Parse_Single_Project): Set the parent project for child projects
1182 (Create_Virtual_Extending_Project): Register project with no qualifier
1183 (Parse_Single_Project): Allow an abstract project to be extend several
1184 times. Do not allow an abstract project to extend a non abstract
1187 * prj-pp.adb: Use functions Present and No throughout
1188 (Print): Take into account the full associative array attribute
1191 * prj-proc.adb: Use functions Present and No throughout
1192 (Expression): Call itself with the same From_Project_Node for the
1193 default value of an external reference.
1195 * prj-strt.adb: Use functions Present and No throughout
1196 (Parse_Variable_Reference): If a variable is specified as a simple name
1197 and is not found in the current project, look for it also in the
1198 ancestors of the project.
1200 * prj-tree.ads, prj-tree.adb (Present): New function
1202 Use functions Present and No throughout
1203 (Parent_Project_Of): New function
1204 (Set_Parent_Project_Of): New procedure
1206 * snames.ads, snames.adb:
1207 Add new standard names Object_Generated and Objects_Linked
1209 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1211 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1212 and the derived type are of the same kind.
1213 (Expand_Call): Generate type conversions for actuals of
1214 record or array types when the parent and the derived types differ in
1215 size and/or packed status.
1217 2008-05-20 Javier Miranda <miranda@adacore.com>
1218 Ed Schonberg <schonberg@adacore.com>
1220 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1221 generating dispatch tables of locally defined tagged types statically.
1222 Remove implicit if-statement that is no longer required.
1223 (Expand_Dispatching_Call): If this is a call to an instance of the
1224 generic dispatching constructor, the type of the first argument may be
1225 a subtype of Tag, so always use the base type to recognize this case.
1227 2008-05-20 Thomas Quinot <quinot@adacore.com>
1230 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1231 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1232 assigning NULL into the result, to avoid a spurious warning.
1233 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1235 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1237 (Build_From_Any_Function, Build_To_Any_Function,
1238 Build_TypeCode_Function): For a type that has user-specified stream
1239 attributes, use an opaque sequence of octets as the representation.
1241 2008-05-20 Kevin Pouget <pouget@adacore.com>
1243 * exp_smem.ads, exp_smem.adb: Construction of access and assign
1244 routines has been replaced by an instantiation of
1245 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1246 shared variable declaration.
1247 Calls to access and assign routines have been replaced by calls to
1248 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1249 instantiated package.
1251 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1252 It identifies the new generic package added in s-shasto.
1254 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1255 is instantiated for each shared passive variable. It provides
1256 supporting procedures called upon each read or write access by the
1260 For this runtime unit (always compiled in GNAT mode), we allow
1261 stream attributes references for limited types for the case where
1262 shared passive objects are implemented using stream attributes,
1263 which is the default in GNAT's persistent storage implementation.
1265 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1268 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1269 convention from its base type, do not set the type to that of integer,
1270 because it may inherit a size clause.
1271 Warn on a size clause with a size different
1272 from that of Integer, if the type has convention C.
1274 2008-05-20 Vincent Celier <celier@adacore.com>
1277 (Scan_Args): Rewrite to take into account new switch --and to separate
1278 arguments into sections.
1279 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1280 section, then Finalize.
1282 2008-05-20 Tristan Gingold <gingold@adacore.com>
1284 * init.c: Enable stack probing on ppc-linux.
1286 * tracebak.c: Add symbolic traceback for ppc-linux.
1288 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1290 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1293 (common-tools): New rule, to avoid parallel build failure on gnat tools.
1294 Reenable parallel builds on this Makefile.
1296 * Make-lang.in: Update dependencies.
1298 2008-05-20 Robert Dewar <dewar@adacore.com>
1300 * opt.ads (Treat_Restrictions_As_Warnings): New switch
1302 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1303 Treat_Restrictions_As_Warnings.
1305 * switch-c.adb: Recognize new switch -gnatr
1307 * usage.adb: Add line for -gnatr
1309 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1312 (P_Access_Definition): Change the error message when parsing "access
1313 all" in Ada 95 mode. The message no longer forces the user to recompile
1314 in 05 mode only to discover that anonymous access types are not allowed
1317 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1320 (P_Protected): Update the error message on missing "-gnat05" switch when
1321 using interfaces in conjunction with protected types. Remove the
1322 incorrect error message associated with the presence of "private" after
1325 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1327 * sem_aggr.adb: Update comments.
1328 Improve previous change for PR ada/17985
1330 2008-05-20 Thomas Quinot <quinot@adacore.com>
1333 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1334 the visible part of the spec of a remote types unit.
1335 (Validate_Remote_Access_Object_Type_Declaration):
1336 New local subprogram Is_Valid_Remote_Object_Type, replaces
1337 Is_Recursively_Limited_Private.
1338 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1339 non-controlling formals (and the return type, even though this is not
1340 explicit in the standard) must support external streaming.
1341 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1342 as above for of RAS types and RCI subprograms. (The return type is not
1344 Update comments related to RACWs designating limited interfaces per
1345 ARG ruling on AI05-060.
1347 * sem_util.ads, sem_util.adb
1348 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1349 Is_Remote_Call_Interface to identify RACW types in a stable and
1350 consistent way. We used to rely in this predicate on the privateness of
1351 the designated type and its ancestors, but depending on the currently
1352 visible private parts, this caused false negatives. We now uniformly
1353 rely on checks made at the point where the RACW type is declared.
1354 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1356 2008-05-20 Javier Miranda <miranda@adacore.com>
1357 Ed Schonberg <schonberg@adacore.com>
1358 Hristian Kirtchev <kirtchev@adacore.com>
1361 (Analyze_Object_Declaration): Fix over-conservative condition
1362 restricting use of predefined assignment with tagged types that have
1364 (Analyze_Object_Declaration): Relax the check regarding deferred
1365 constants declared in scopes other than packages since they can be
1366 completed with pragma Import.
1367 Add missing escaping of all-caps word 'CPP' in error messages.
1368 (Build_Discriminated_Subtype): Do not inherit representation clauses
1369 from parent type if subtype already carries them, because they are
1370 inherited earlier during derivation and already include those that may
1371 come from a partial view.
1373 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1374 Check the declarations of a subprogram body for proper deferred
1375 constant completion.
1377 * sem_ch7.ads, sem_ch7.adb
1378 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1380 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1381 Thomas Quinot <quinot@adacore.com>
1384 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1385 F is a parameterless function that returns an array, and S is a subtype
1387 (Analyze_Call): Insert dereference when the prefix is a parameterless
1388 function that returns an access to subprogram and the call has
1390 Reject a non-overloaded call whose name resolves to denote
1391 a primitive operation of the stub type generated to support a remote
1392 access-to-class-wide type.
1394 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1397 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1398 when there is a use clause for the same entity in the context.
1399 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1400 created for a stream attribute of an abstract type or interface type.
1402 2008-05-20 Thomas Quinot <quinot@adacore.com>
1404 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1408 (Add_One_Interp): Ignore any interpretation that is a primitive
1409 operation of an RACW stub type (these primitives are only executed
1410 through dispatching, never through static calls).
1411 (Collect_Interps): When only one interpretation has been found, set N's
1412 Entity and Etype to that interpretation, otherwise Entity and Etype may
1413 still refer to an interpretation that was ignored by Add_One_Interp,
1414 in which case would end up with being marked as not overloaded but with
1415 an Entity attribute not pointing to its (unique) correct interpretation.
1417 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1420 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1421 denotes the whole array of its prefix.
1423 2008-05-20 Robert Dewar <dewar@adacore.com>
1425 * sem_res.adb (Resolve_Op_Not): Warn on double negation
1427 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1430 (Print_Itype): Do not modify the sloc of the component type of a
1431 (packed) array itype, because it is an unrelated type whose source
1432 location is independent of the point of creation of the itype itself.
1434 2008-05-20 Thomas Quinot <quinot@adacore.com>
1436 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1439 2008-05-20 Robert Dewar <dewar@adacore.com>
1440 Vincent Celier <celier@adacore.com>
1442 * vms_data.ads: Add entry for -gnatr
1443 Put GNAT SYNC section in proper alpha order
1444 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1446 * gnat_ugn.texi: Add documentation for new gnatname switch --and
1447 Update the style checks section
1448 Add documentation of -gnatr
1449 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1450 subsection the explanation how compiler checks should be disabled for
1452 Update the list of Ada 95 reserved words used by in the project language
1453 Add documentation for project qualifiers.
1454 Document that abstract projects may be extended by different projects in
1455 the same project tree.
1456 Add documentation for gnatmake switch -d
1458 * ug_words: Add -gnatyy VMS equivalence string.
1459 Add entry for -gnatr
1461 2008-05-20 Bob Duff <duff@adacore.com>
1464 (Set_Handler): Remove code from both of these that implements
1465 RM-D.15(15/2), because it causes a race condition and potential
1467 (Process_Queued_Events): Add comment explaining "exception when others
1468 => null". Add clarifying ".all", even though implicit .all is legal
1471 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1473 * s-winext.ads: Replace representation clause by pragma Pack. Gives
1474 equivalent representation, but has the advantage of allowing
1475 compilation of this file under 64 bits platforms.
1477 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1479 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1482 Don't define dummy implementation of convert_addresses on ppc-linux.
1484 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1487 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1488 if expression is aggregate component.
1490 2008-05-20 Robert Dewar <dewar@adacore.com>
1492 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1493 sem_ch12.adb: Update comments. Minor reformatting.
1497 * s-unstyp.ads: Fixed some typos in comments.
1499 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1501 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1504 * g-socthi-vxworks.ads: Update to latest socket changes.
1506 * a-caldel-vms.adb: Resync with a-caldel spec.
1508 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1511 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1513 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1514 for dummy types pointed to by the converted pointer types.
1516 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
1518 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1519 of records and unions.
1520 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1522 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
1523 Robert Dewar <dewar@adacore.com>
1525 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1526 restrictions to the prefix of 'Old.
1527 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1528 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1531 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
1535 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1536 expression to an integral type with lower precision, use NOP_EXPR
1537 directly in a couple of special cases.
1539 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1540 Ed Schonberg <schonberg@adacore.com>
1542 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1543 constraint expressions.
1545 2008-05-12 Tomas Bily <tbily@suse.cz>
1547 * utils2.c (known_alignment, contains_save_expr_p)
1548 (gnat_mark_addressable): Use CASE_CONVERT.
1549 * decl.c (annotate_value): Likewise.
1550 * trans.c (maybe_stabilize_reference): Likewise.
1551 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1552 * utils.c (rest_of_record_type_compilation): Likewise.
1553 * trans.c (protect_multiple_eval, Attribute_to_gnu)
1554 (protect_multiple_eval): Likewise.
1556 2008-05-08 Andreas Schwab <schwab@suse.de>
1558 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1559 DECL_IS_PURE to DECL_PURE_P.
1561 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
1563 * decl.c (maybe_pad_type): Add ??? comment.
1565 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1567 * decl.c (components_to_record): Zero the alignment of the qualified
1568 union built for the variant part upon creating it.
1570 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1572 * decl.c (maybe_pad_type): Try to get a form of the type with integral
1573 mode even if the alignment is not a factor of the original size. But
1574 make sure to create the inner field with the original size. Reorder.
1575 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1576 record as always addressable.
1577 * utils.c (convert): Deal specially with conversions between original
1578 and packable versions of a record type.
1579 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1580 recognizing an assignment between padded objects.
1582 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1584 * decl.c (make_packable_type): Resize the last component to its RM size
1585 only if it is of an aggregate type.
1586 * trans.c (call_to_gnu): Fix nit in comment.
1587 (gnat_to_gnu): Likewise.
1589 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
1591 * Makefile.in: Adapt sh4-linux target.
1593 2008-04-29 Ed Schonberg <schonberg@adacore.com>
1596 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1597 tagged type by an untagged protected or task type.
1599 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
1600 Tristan Gingold <gingold@adacore.com>
1603 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1604 of aliased objects with an unconstrained nominal subtype.
1605 Cap the promotion to the effective alignment of the word mode.
1607 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1609 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1610 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1611 Use '&&' instead of ';'.
1613 2008-04-24 Olivier Hainque <hainque@adacore.com>
1615 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1616 doesn't require signed arithmetic anymore.
1618 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1620 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1621 (call_to_gnu): Don't set TREE_INVARIANT.
1622 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1624 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
1626 * s-osinte-rtems.adb: Add sigalstack function.
1627 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1628 function. Add Alternate_Stack and Alternate_Stack_Size.
1629 Add missing process_shared field to pthread_condattr_t
1630 and change ss_low_priority to int from timespec.
1632 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
1634 * i-forbla.adb: Link against -llapack and -lblas by default
1635 instead of the private -lgnalasup.
1637 2008-04-21 Olivier Hainque <hainque@adacore.com>
1639 Access to most C builtins from Ada
1640 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1641 (handle_pure_attribute, handle_novops_attribute,
1642 handle_nonnull_attribute, handle_sentinel_attribute,
1643 handle_noreturn_attribute, handle_malloc_attribute,
1644 handle_type_generic_attribute): New attribute handlers, from C fe.
1645 (gnat_internal_attribute_table): Map the new handlers.
1646 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1647 (init_gigi_decls): ... here.
1648 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1649 Move to a section dedicated to builtins processing.
1650 (build_void_list_node, builtin_type_for_size): New functions.
1651 (def_fn_type, get_nonnull_operand): Likewise.
1652 (install_builtin_elementary_type, install_builtin_function_types,
1653 install_builtin_attributes): Likewise.
1654 (fake_attribute_handler): Fake handler for attributes we don't
1656 (def_builtin_1): New function, worker for DEF_BUILTIN.
1657 (install_builtin_functions): New function.
1658 (gnat_install_builtins): Move to the builtins processing section.
1659 Now calling the newly introduced installers.
1661 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1663 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1664 constant objects, but not exceptions.
1665 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1667 * utils.c (create_var_decl_1): Likewise.
1668 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1669 the type when copying to padded object and the source is a constructor.
1671 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1673 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1674 alignment, reset it to zero if it would end up not being greater
1675 than that of the type.
1677 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1679 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1680 the padded type has a variable size.
1682 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1684 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1685 target pointer mechanism as soon as the size is not constant.
1687 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1689 * gigi.h (create_var_decl_1): Declare.
1690 (create_var_decl): Turn into a macro invoking create_var_decl_1.
1691 (create_true_var_decl): Likewise.
1692 * utils.c (create_var_decl_1): Make global and reorder parameters.
1693 (create_var_decl): Delete.
1694 (create_true_var_decl): Likewise.
1696 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
1698 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1700 * fe.h (Debug_Flag_Dot_A): Delete.
1701 * debug.adb (-gnatd.a): Update documentation.
1703 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1705 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1706 "not null" parameter.
1708 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1710 * g-socket.adb: Add a message "IPv6 not supported" to the
1711 Socket_Error exception.
1713 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
1716 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1717 the type is known instead of the underlying type.
1719 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1722 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1723 procedure for a derived type retrieve the discriminant values from
1724 the parent using the corresponding discriminant.
1726 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
1727 Gary Dismukes <dismukes@adacore.com>
1730 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1731 which is not an entity (and hence not a package).
1732 (End_Use_Package): Ditto.
1734 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1737 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1738 protected operation that matches the signature, not only an entry, a
1739 regular subprogram or a literal.
1741 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1743 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1744 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1745 if a size or alignment is specified. Do not take into account
1746 alignment promotions for the computation of the object's size.
1747 <type>: Call maybe_pad_type only if a size or alignment is specified.
1748 (maybe_pad_type): Really reuse the RM_Size of the original type if
1750 * trans.c (Attribute_to_gnu): Fix a couple of nits.
1751 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1752 statements. Use the padded view of the type when copying between
1753 padded objects of the same underlying type.
1755 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1757 * vms_data.ads: Fix typo in constant.
1758 * gen-soccon.c: Fix typo in error string.
1759 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1761 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1762 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1763 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1764 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1765 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1766 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1767 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1768 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1769 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1770 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1771 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1772 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1773 sinfo.ads: Fix typos in comments.
1775 2008-04-14 Robert Dewar <dewar@adacore.com>
1777 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1778 to every non-object and change error message.
1780 2008-04-14 Robert Dewar <dewar@adacore.com>
1782 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1783 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1786 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1789 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1790 apply pragma Linker_Section on type.
1792 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1795 * sem_prag.adb (Error_Pragma_Ref): New.
1796 (Process_Convention): Specialized message for non-local
1797 subprogram renaming. Detect the problem in homonyms as well.
1799 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1802 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1803 * sem_ch12.adb (Instantiate_Object): Use it.
1804 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1805 storage pool denotes a variable as per RM 13.11(15).
1807 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1809 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1810 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1812 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
1815 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1816 line endings even on non-Unix platforms.
1818 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1821 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1822 renaming information.
1824 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
1827 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1830 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1832 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1833 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1834 snames.ads, sprint.adb, stand.ads, stringt.ads,
1835 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1836 switch.ads, sysdep.c, table.adb, table.ads,
1837 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1838 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1839 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1840 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1841 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1842 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1845 * sem_ch10.adb, sem_ch10.ads,
1846 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1847 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1848 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1849 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1850 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1851 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1852 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1853 sem_warn.ads: Fix comment typos.
1855 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1856 s-soflin.ads, s-stalib.ads, s-stausa.adb,
1857 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1858 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1859 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1860 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1861 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1862 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1863 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1864 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1865 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1866 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1867 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1868 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1869 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1870 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1871 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1872 sem_cat.adb, sem_cat.ads: Fix comment typos.
1874 2008-04-12 Joel Sherrill <joel@oarcorp.com>
1877 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1879 2008-04-12 Arnaud Charlet <charlet@adacore.com>
1881 * s-linux-hppa.ads: Fix syntax errors.
1883 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1885 * gnat_ugn.texi: Fix typos.
1886 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
1887 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
1888 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
1889 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
1890 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
1891 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
1892 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1893 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
1894 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
1895 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
1896 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
1897 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
1898 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
1899 s-osinte-darwin.ads, s-osinte-freebsd.ads,
1900 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
1901 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
1902 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
1903 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
1904 s-parame-hpux.ads, s-parame-vms-alpha.ads,
1905 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
1906 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
1907 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
1908 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
1909 s-rident.ads: Fix comment typos.
1911 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
1914 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
1915 environment if generic instance is a top-level one.
1917 2008-04-09 Doug Rupp <rupp@adacore.com>
1919 * decl.c (validate_size): Set minimum size for fat pointers same as
1920 access types. Code clean ups.
1922 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
1923 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
1925 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
1927 * s-crtl.ads (malloc32) New function, alias for malloc
1928 (realloc32) New function, alias for realloc
1930 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
1932 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
1933 allocator size is 32 and default pointer size is 64.
1934 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
1935 lhs type if smaller, whatever the modes.
1937 * gigi.h (malloc32_decl): New macro definition
1939 * utils.c (init_gigi_decls): New malloc32_decl
1940 Various code clean ups.
1942 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1943 Task_Address vice System.Address.
1945 * s-taspri-vms.ads: Import System.Aux_DEC
1946 (Task_Address): New subtype of System.Aux_DEC.Short_Address
1947 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
1949 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1950 Task_Address vice System.Address.
1952 * s-inmaop-vms.adb: Import System.Task_Primitives
1953 (To_Address): Unchecked convert to Task_Address vice System.Address
1955 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
1957 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
1958 (To_Address) Unchecked convert to Task_Address vice System.Address
1960 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
1962 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
1964 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1966 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
1967 (fdesc_type_node): Define.
1968 (null_fdesc_node): Likewise.
1969 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
1970 uses descriptors for vtables and the type comes from a dispatch table,
1971 return the descriptor type.
1972 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
1973 uses descriptors for vtables and the type comes from a dispatch table,
1974 build a descriptor in the static case and copy the existing one in the
1976 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
1977 the type is a pointer-to-subprogram coming from a dispatch table,
1978 return the null descriptor.
1979 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
1980 vtables, the source type is the descriptor type and the target type
1981 is a pointer type, first build the pointer.
1982 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
1983 build the descriptor type and the null descriptor.
1985 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1987 * decl.c (prepend_attributes): Fix typo.
1988 * trans.c (Pragma_to_gnu): Likewise.
1989 * utils.c (gnat_genericize): Likewise.
1991 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1992 Richard Kenner <kenner@adacore.com>
1994 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
1995 * decl.c (gnat_to_gnu_entity): Adjust for above change.
1996 <E_Record_Type>: Try to get a better form of the component for
1997 packing, even if it has an integral mode.
1998 <E_Record_Subtype>: Likewise.
1999 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2000 exception suppressing the final conversion between record types.
2002 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2004 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2005 alignment for space, promote the alignment of non-scalar variables with
2006 no size and alignment.
2007 * gigi.h (gnat_types_compatible_p): Declare.
2008 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2009 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
2010 * utils.c (gnat_types_compatible_p) : New predicate.
2011 (convert): Use it throughout to test for cases where a mere view
2012 conversion is sufficient.
2013 * utils2.c (build_binary_op): Minor tweaks.
2014 (build_unary_op): Likewise.
2016 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2018 * decl.c (adjust_packed): Expand comment.
2020 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2022 * s-tasuti.ads: Use Task_Address instead of System.Address.
2024 * makeutl.adb (Path_Or_File_Name): New function
2026 * nlists.ads, itypes.ads: Update comments.
2028 * s-crtl.ads (malloc32, realloc32): New functions.
2030 * s-auxdec.ads (Short_Address_Size): New constant.
2032 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2034 * s-ststop.ads, s-ststop.adb: New file.
2036 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2039 2008-04-08 Pascal Obry <obry@adacore.com>
2041 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2042 (Stop_Bits_Number): New type.
2043 (Parity_Check): Likewise.
2044 (Set): Add parameter to set the number of stop bits and
2045 the parity. Parameter timeout is now a duration instead
2048 * g-sercom-linux.adb:
2049 Implement the stop bits and parity support for GNU/Linux.
2050 Fix handling of timeout, it must be given in tenth of seconds.
2052 * g-sercom-mingw.adb:
2053 Implement the stop bits and parity support for Windows.
2054 Use new s-win32.ads unit instead of declaring Win32 services
2055 directly into this body.
2056 Update handling of timeout as now a duration.
2058 * s-win32.ads, s-winext.ads: New files.
2060 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2061 Arnaud Charlet <charlet@adacore.com>
2063 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2065 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2066 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2068 * s-osinte-lynxos-3.ads,
2069 (Alternate_Stack): Remove when not needed. Simplify declaration
2071 (Alternate_Stack_Size): New constant.
2073 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2074 'Unrestricted_Access.
2076 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2077 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2078 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2079 s-osinte-solaris.ads, s-osinte-vms.ads
2080 (SA_ONSTACK): New constant.
2081 (stack_t): New record type.
2082 (sigaltstack): New imported function.
2083 (Alternate_Stack): New imported variable.
2084 (Alternate_Stack_Size): New constant.
2086 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2088 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2089 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2090 s-taspri-vms.ads (Task_Address): New subtype of System.Address
2091 (Task_Address_Size): New constant size of System.Address
2092 (Alternate_Stack_Size): New constant.
2094 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2095 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2096 Establish the alternate stack if the platform makes use of n alternate
2097 signal stack for stack overflows.
2098 (Create_Task): Take into account the alternate stack in the stack size.
2099 (Initialize): Save the address of the alternate stack into the ATCB for
2100 the environment task.
2101 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2103 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2105 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2107 * s-intman-posix.adb:
2108 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2109 alternate signal stack for stack overflows.
2111 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2112 x86-64, adjust the saved value of the stack pointer if the signal was
2113 raised by a stack checking probe.
2114 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2115 stack and only for SIGSEGV.
2116 (Linux section): Likewise on x86 and x86-64.
2118 (__gnat_map_signal): Now static.
2119 (__gnat_error_handler): Not static any more.
2120 (__gnat_adjust_context_for_raise): New function. Signal context
2121 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2122 propagation circuitry.
2123 (__gnat_error_handler): Second argument of a sigaction handler is a
2124 pointer, not an int, and is unused.
2125 Adjust signal context before mapping to exception.
2126 Install signal handlers for LynxOS case.
2128 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2129 (Task_Id): Set size to Task_Address_Size
2130 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2131 (To_Address): Unchecked convert to Task_Address vice System.Address
2133 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2134 address into the ATCB if the platform makes use of an alternate signal
2135 stack for stack overflows.
2136 (Free_Task): Add call to Finalize_Attributes_Link.
2137 Add argument Relative_Deadline to pass the value specified for
2138 the task. This is not yet used for any target.
2140 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2141 the value specified for the task.
2143 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2145 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2146 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2147 s-vxwext-rtp.adb): New files.
2149 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2150 Minor updates to accomodate changes above.
2152 2008-04-08 Pascal Obry <obry@adacore.com>
2154 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2155 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2156 Use new s-win32.ads unit instead of declaration
2157 from s-osinte-mingw.ads.
2159 * s-osinte-mingw.ads:
2160 Move all non tasking based interface to s-win32.ads.
2162 * s-osprim-mingw.adb:
2163 Remove duplicated declarations and use s-win32.ads
2166 2008-04-08 Vincent Celier <celier@adacore.com>
2167 Arnaud Charlet <charlet@adacore.com>
2169 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2170 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2171 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2172 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2173 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2175 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2176 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2177 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2178 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2179 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2180 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2181 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2182 mlib-tgt-specific-mingw.adb: New names.
2185 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2187 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2188 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2189 Minor updates for VMS
2191 * gnatbl.c: Removed.
2193 2008-04-08 Thomas Quinot <quinot@adacore.com>
2195 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2196 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2197 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2198 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2199 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2200 ASCII.NUL throughout.
2202 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2203 Matthew Heaney <heaney@adacore.com>
2205 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2208 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
2209 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2210 to convention for non-RM specs.
2211 Add descriptive header, and documented each operation
2212 document each operation
2214 2008-04-08 Robert Dewar <dewar@adacore.com>
2215 Bob Duff <duff@adacore.com>
2216 Gary Dismukes <dismukes@adacore.com>
2217 Ed Schonberg <schonberg@adacore.com>
2219 * alloc.ads: Add entries for Obsolescent_Warnings table
2221 * einfo.ads, einfo.adb: Minor reformatting.
2222 (Is_Discriminal): New subprogram.
2223 (Is_Prival): New subprogram.
2224 (Is_Protected_Component): New subprogram.
2225 (Is_Protected_Private): Removed.
2226 (Object_Ref, Set_Object_Ref): Removed.
2227 (Prival, Set_Prival): Change assertion.
2228 (Privals_Chain, Set_Privals_Chain): Removed.
2229 (Prival_Link, Set_Prival_Link): New subprogram.
2230 (Protected_Operation, Set_Protected_Operation): Removed.
2231 (Protection_Object, Set_Protection_Object): New subprogram.
2232 (Write_Field17_Name): Remove case for Object_Ref.
2233 (Write_Field20_Name): Add case for Prival_Link.
2234 (Write_Field22_Name): Remove case for Protected_Operation,
2236 Add case for Protection_Object.
2237 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2239 (Overlays_Constant): New flag
2240 (Is_Constant_Object): New predicate
2241 (Is_Standard_Character_Type): New predicate
2242 (Optimize_Alignment_Space): New flag
2243 (Optimize_Alignment_Time): New flag
2244 (Has_Postconditions): New flag
2245 (Obsolescent_Warrning): Field removed
2246 (Spec_PPC_List): New field
2247 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2248 subprograms to get and set the relative deadline associated to a task.
2250 * exp_attr.adb (May_Be_External_Call): Account for the case where the
2251 Access attribute is part of a named parameter association.
2252 (Expand_Access_To_Protected_Op): Test for the attribute occurring
2253 within an init proc and use that directly as the scope rather than
2254 traversing up to the protected operation's enclosing scope. Only apply
2255 assertion on Is_Open_Scopes in the case the scope traversal is done.
2256 For the init proc case use the address of the first formal (_init) as
2257 the protected object reference.
2258 Implement Invalid_Value attribute
2259 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2260 contents of the dispatch table there is no need to duplicate the
2261 itypes associated with record types (i.e. the implicit full view
2263 Implement Enum_Val attribute
2264 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2265 within _Postconditions procedure
2266 (Expand_N_Attribute_Reference, case Result): Implement new attribute
2268 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2269 a return statement calls a function that is not available in
2270 configurable runtime.
2271 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2272 (Expand_Non_Function_Return): Generate call to _Postconditions proc
2273 (Expand_Simple_Function_Return): Ditto
2275 * frontend.adb: Add call to Sem_Aux.Initialize
2277 * sem_aux.ads, sem_aux.adb: New file.
2279 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2280 Add new Pragma_Relative_Deadline.
2281 Add support for pragmas Check and Check_Policy
2283 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2284 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2285 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2286 missing check because they are not allowed in CPP tagged types.
2287 Add Sure parameter to Note_Possible_Modification calls
2288 Add implementation of Invalid_Value attribute
2289 Implement new attribute Has_Tagged_Values
2290 Implement Enum_Val attribute
2291 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2292 generated attributes.
2293 (Analyze_Attribute, case Result): If prefix of the attribute is
2294 overloaded, it always resolves to the enclosing function.
2295 (Analyze_Attribute, case Result): Properly deal with analysis when
2296 Postconditions are not active.
2297 (Resolve_Attribute, case Result): Properly deal with appearence during
2298 preanalysis in spec.
2299 Add processing for attribute Result
2301 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2303 (Analyze_Subprogram_Body): Install private_with_clauses when the body
2305 (Check_Inline_Pragma): recognize an inline pragma that appears within
2306 the subprogram body to which it applies.
2307 (Analyze_Function_Return): Check that type of the expression of a return
2308 statement in a function with a class-wide result is not declared at a
2309 deeper level than the function.
2310 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2311 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2312 user- defined operators.
2313 (Install_Formals): Moved to spec to allow use from Sem_Prag for
2314 analysis of precondition/postcondition pragmas.
2315 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2316 Last_Formal, along with lots of comments on what this is about
2317 (Analyze_Subprogram_Body): Fix case where we move entities from the
2318 spec to the body when there are no body entities (now possible with
2319 precondition and postcondition pragmas).
2320 (Process_PPCs): New procedure
2321 (Analyze_Subprogram_Body): Add call to Process_PPCs
2323 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2325 (Pop_Scope): Restore Check_Policy_List on scope exit
2326 (Push_Scope): Save Check_Policy_List on scope entry
2327 Change name In_Default_Expression => In_Spec_Expression
2328 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2329 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2330 (Analyze_Object_Renaming): Allow 'Reference as object
2331 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2332 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2333 of restriction identifier.
2334 Add Sure parameter to Note_Possible_Modication calls
2336 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2337 Don't check for primitive operations when calling Rep_Item_Too_Late.
2338 (Process_Import_Or_Interface): Do not place flag on formal
2340 (Analyze_Pragma, case Export): If the entity is a deferred constant,
2341 propagate information to full view, which is the one elaborated by the
2343 (Make_Inline): the pragma is effective if it applies to an internally
2344 generated subprogram declaration for a body that carries the pragma.
2345 (Analyze_Pragma, case Optimize_Alignment): Set new flag
2346 Optimize_Alignment_Local.
2347 (Analyze_PPC_In_Decl_Part): New procedure
2348 (Get_Pragma_Arg): Moved to outer level
2349 (Check_Precondition_Postcondition): Change to allow new visibility
2350 rules for package spec
2351 (Analyze_Pragma, case Check_Policy): Change placement rules to be
2352 same as pragma Suppress/Unsuppress.
2353 Change name In_Default_Expression => In_Spec_Expression
2354 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2355 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2356 (Check_Precondition_Postcondition): Do proper visibility preanalysis
2357 for the case of these pragmas appearing in the spec.
2358 (Check_Enabled): New function
2359 (Initialize): New procedure
2360 (Tree_Read): New procedure
2361 (Tree_Write): New procedure
2362 (Check_Precondition_Postcondition): New procedure
2363 Implement pragmas Check and Check_Policy
2364 Merge Assert processing with Check
2366 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2367 New warning flag -gnatw.e
2369 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2370 returning whether a task (or main procedure) has a pragma
2372 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2373 (or main procedure) has a pragma Relative_Deadline.
2374 Add Next_Pragma field to N_Pragma node
2375 (PPC_Enabled): New flag
2376 (Next_Pragma): Now used for Pre/Postcondition processing
2378 * snames.h, snames.ads, snames.adb: New standard name
2380 Add entry for 'Invalid_Value attribute
2381 Add entry for new attribute Has_Tagged_Values
2382 Add entry for Enum_Val attribute
2383 Add new standard names Aggregate, Configuration and Library.
2386 Add Pragma_Precondition
2387 Add Pragma_Postcondition
2388 Add Attribute_Result
2389 New standard name Archive_Builder_Append_Option
2390 (Preset_Names): Add _relative_deadline and relative_deadline definitions
2391 There was also a missing non_preemptive_within_priorities.
2392 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2394 Add support for pragmas Check and Check_Policy
2396 * tree_gen.adb: Call Sem_Aux.Tree_Write
2398 * tree_in.adb: Call Sem_Aux.Tree_Read
2400 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2403 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2406 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2407 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2409 (Expand_Pragma_Check): New procedure
2411 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2414 * sinfo.adb (PPC_Enabled): New flag
2416 2008-04-08 Robert Dewar <dewar@adacore.com>
2417 Gary Dismukes <dismukes@adacore.com>
2418 Javier Miranda <miranda@adacore.com>
2419 Ed Schonberg <schonberg@adacore.com>
2421 * fe.h: Remove global Optimize_Alignment flag, no longer used
2423 * layout.adb: Test Optimize_Alignment flags rather than global switch
2425 * lib.ads, lib.adb: New OA_Setting field in library record
2427 * lib-load.adb: New OA_Setting field in library record
2429 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2430 units mentioned in limited_with_ clauses in the ali file, with an
2432 New Ox fields in U line
2434 * opt.adb: New flag Optimize_Alignment_Local
2435 (Check_Policy_List[_Config]): New flags
2437 * opt.ads (Invalid_Value_Used): New flag
2438 New switch Optimize_Alignment_Local
2439 (Warn_On_Parameter_Order): New flag
2440 (Check_Policy_List[_Config]): New flags
2442 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2443 limited_with clauses.
2444 New data structures for Optimize_Alignment
2446 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2448 (Check_Consistent_Optimize_Alignment): Rework for new structure
2449 (Check_Consistent_Restrictions): Fix incorrect error message
2451 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2452 created class-wide type (to the Parent field of the specific type).
2453 (Install_Siblings): Handle properly private_with_clauses on subprogram
2454 bodies and on generic units.
2455 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2456 illegal limited_with_clause that names a non-existent package.
2457 (Check_Body_Required): Determine whether a unit named a limited_with
2458 clause needs a body.
2459 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2460 Capture Optimize_Alignment settings to set new OA_Setting field in
2462 (Build_Limited_Views): Include task and protected type declarations.
2464 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2465 case of a possible constant redeclaration where the current object is
2466 an entry index constant.
2467 (Analyze_Object_Declaration): Generate an error in case of CPP
2468 class-wide object initialization.
2469 (Analyze_Object_Declaration): Add extra information on warnings for
2470 declaration of unconstrained objects.
2471 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2472 conflicts with the setting of Stored_Constraint in the case where the
2473 access type entity has already been created as an E_Incomplete_Type due
2474 to a limited with clause.
2475 Use new Is_Standard_Character_Type predicate
2476 (Analyze_Object_Declaration): Apply access_constant check only after
2477 expression has been resolved, given that it may be overloaded with
2478 several access types.
2479 (Constant_Redeclaration): Additional legality checks for deferred
2480 constant declarations tha involve anonymous access types and/or null
2481 exclusion indicators.
2482 (Analyze_Type_Declaration): Set Optimize_Alignment flags
2483 (Analyze_Subtype_Declaration): Ditto
2484 (Analyze_Object_Declaration): Ditto
2485 (Analyze_Object_Declaration): Don't count tasks in generics
2486 Change name In_Default_Expression => In_Spec_Expression
2487 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2488 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2489 (Process_Discriminants): Additional check for illegal use of default
2490 expressions in access discriminant specifications in a type that is not
2492 (Check_Abstract_Overriding): If an inherited function dispaches on an
2493 access result, it must be overridden, even if the type is a null
2495 (Derive_Subprogram): The formals of the derived subprogram have the
2496 names and defaults of the parent subprogram, even if the type is
2497 obtained from the actual subprogram.
2498 (Derive_Subprogram): In the presence of interfaces, a formal of an
2499 inherited operation has the derived type not only if it descends from
2500 the type of the formal of the parent operation, but also if it
2501 implements it. This is relevant for the renamings created for the
2502 primitive operations of the actual for a formal derived type.
2503 (Is_Progenitor): New predicate, to determine whether the type of a
2504 formal in the parent operation must be replaced by the derived type.
2506 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2507 predicate recursive to handle components that have a user-defined
2508 Initialize procedure. Handle controlled derived types whose ancestor
2509 has a user-defined Initialize procedured.
2510 (Note_Possible_Modification): Add Sure parameter, generate warning if
2511 sure modification of constant
2512 Use new Is_Standard_Character_Type predicate
2513 (Find_Parameter_Type): when determining whether a protected operation
2514 implements an interface operation, retrieve the type of the formal from
2515 the entity when the formal is an access parameter or an
2516 anonymous-access-to-subprogram.
2517 Move Copy_Parameter_List to sem_util, for use when building stubbed
2519 (Has_Access_Values): Tagged types now return False
2520 (Within_HSS_Or_If): New procedure
2521 (Set_Optimize_Alignment_Flags): New procedure
2522 Change name In_Default_Expression => In_Spec_Expression
2523 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2524 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2526 2008-04-08 Tristan Gingold <gingold@adacore.com>
2528 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2530 2008-04-08 Tristan Gingold <gingold@adacore.com>
2534 * cuintp.c: Fix 16 bits issue for AVR.
2535 On AVR, integer is 16 bits, so it can't be used to do math with
2537 So use long_integer instead.
2539 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2541 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2542 System.OS_Primitives.
2543 Change type of various constants, parameters and local variables from
2544 Time to representation type OS_Time.
2545 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2546 Remove the declaration of constant Mili_F from several routines. New
2547 body for internal package Conversions_Operations.
2548 (Time_Of): Add default parameters for several formals.
2550 * a-caldel.adb: Minor reformatting
2552 * a-calend.ads, a-calend.adb: New body for internal package
2553 Conversions_Operations.
2554 (Time_Of): Add default parameters for several formals.
2556 * Makefile.rtl: Add a-ststop
2557 Add Ada.Calendar.Conversions to the list of runtime files.
2560 * a-calcon.adb, a-calcon.ads: New files.
2562 2008-04-08 Jose Ruiz <ruiz@adacore.com>
2563 Tristan Gingold <gingold@adacore.com>
2565 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2566 (Install_Restricted_Handlers): New procedure
2567 which is a simplified version of Install_Handlers that does not store
2568 previously installed.
2570 * s-interr-vxworks.adb: Fix ACATS cxc3001
2571 On VxWorks interrupts can't be detached.
2572 (Install_Restricted_Handlers): New procedure.
2574 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2577 2008-04-08 Olivier Hainque <hainque@adacore.com>
2579 * s-intman-vxworks.ads, s-intman-vxworks.adb
2580 (Map_And_Raise_Exception): Remove. Was an import of only part of the
2581 required services already implemented elsewhere.
2582 (Notify_Exception): Delete body, import __gnat_error_handler instead.
2583 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2584 argument passed to the handler, which we need for ZCX propagation
2587 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2589 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2591 * g-timsta.adb, g-timsta.ads: New files.
2593 2008-04-08 Robert Dewar <dewar@adacore.com>
2595 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2596 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2597 (Raise_Exception_Always): Fix documentation accordingly
2599 2008-04-08 Robert Dewar <dewar@adacore.com>
2601 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2604 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2607 2008-04-08 Javier Miranda <miranda@adacore.com>
2608 Robert Dewar <dewar@adacore.com>
2609 Ed Schonberg <schonberg@adacore.com>
2611 * a-tags.adb (Register_Interface_Offset): New subprogram.
2612 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2613 (To_Predef_Prims_Table_Ptr): Removed.
2614 (Acc_Size): Removed.
2615 (To_Acc_Size): Removed.
2616 (Parent_Size): Modified to the call the subprogram returning the size of
2617 the parent by means of the new TSD component Size_Func.
2619 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2620 (DT_Offset_To_Top_Offset): New constant value that is used to generate
2621 code referencing the Offset_To_Top component of the dispatch table's
2623 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2624 use of 'address to initialize dispatch table slots.
2625 (Size_Func): New component of the TSD. Used by the run-time to call the
2626 size primitive of the tagged type.
2628 * checks.adb (Apply_Access_Check): Avoid check when accessing the
2629 Offset_To_Top component of a dispatch table.
2630 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2631 deferred constant declaration. do not add a null expression, to prevent
2632 spurious errors when full declaration is analyzed.
2633 (Apply_Discriminant_Check): If both discriminant constraints share a
2634 node which is not static but has no side effects, do not generate a
2635 check for that discriminant.
2636 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2637 subexpr, since the prefix of an attribute is a name.
2639 * checks.ads: Fix nit in comment.
2641 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2642 and body of predefined primitives in case of CPP tagged type
2644 (Freeze_Type): Deal properly with no storage pool case
2645 (Make_Predefined_Primitive_Specs): Generate specification of abstract
2646 primitive Deep_Adjust if a nonlimited interface is derived from a
2648 (Build_Dcheck_Functions): Create discriminant-checking functions only
2649 for variants that have some component(s).
2650 (Build_Slice_Assignment): In expanded code for slice assignment, handle
2651 properly the case where the slice bounds extend to the last value of the
2652 underlying representation.
2653 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2654 (Is_Variable_Size_Record): An array component has a static size if
2655 index bounds are enumeration literals.
2657 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2658 an external tag has been specified for the type.
2659 (Building_Static_DT): Add missing support for private types.
2660 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2661 to the entity associated with the parent of Typ. This is done to
2662 avoid wrong access when the parent is a private type.
2663 (Expand_Interface_Conversion): Improve error message when the
2664 configurable runtime has no support for dynamic interface conversion.
2665 (Expand_Interface_Thunk): Add missing support to interface types in
2666 configurable runtime.
2667 (Expand_Dispatching_Call): remove obsolete code.
2668 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2669 ensure that all subtypes and aggregates associated with dispatch
2670 tables have the attribute Is_Dispatch_Table_Entity set to true.
2671 (Register_Primitive): Rename one variable to improve code reading.
2672 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2673 of the pointer to the 'size primitive in the TSD.
2675 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2676 (RE_Offset_To_Top_Ptr): New entity.
2677 (RE_Register_Interface_Offset): New entity.
2678 (RE_Set_Dynamic_Offset_To_Top): New entity.
2679 (RE_Set_Offset_To_Top): Removed entity.
2680 (RE_Prim_Ptr): New entity
2681 (RE_Size_Func): New entity
2682 (RE_Size_Ptr): New entity
2683 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2684 (Ada_Dispatching_Child): Define this new subrange.
2685 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2686 RE_Time_Span, and RE_Time_Span_Zero).
2687 (RE_Unit_Table): Add new required run-time calls
2689 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2692 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2693 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2694 initializes the Offset_To_Top component of a dispatch table.
2695 (Build_Predef_Prims): Removed.
2696 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2698 (Build_Set_Size_Function): New subprogram.
2700 * exp_ch13.adb: Do not generate storage variable for storage_size zero
2701 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2703 2008-04-08 Robert Dewar <dewar@adacore.com>
2705 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2706 computing Fore when Exp > 0
2708 2008-04-08 Robert Dewar <dewar@adacore.com>
2710 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2712 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2713 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2715 * fmap.adb: Remove Big_String declarations (now in Types)
2716 (No_Mapping_File): New Boolean global variable
2717 (Initialize): When mapping file cannot be read, set No_Mapping_File to
2719 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2720 tables were empty before adding entries, open the mapping file
2721 with Truncate = True, instead of delete/re-create.
2723 * fname-sf.adb: Remove Big_String declarations (now in Types)
2725 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2726 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2729 * table.ads: Add for Table_Ptr'Storage_Size use 0
2731 * types.ads: Add Big_String declarations
2732 Add Size_Clause of zero for big pointer types
2734 2008-04-08 Vincent Celier <celier@adacore.com>
2736 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2737 (Usage): Add line for switch --subdirs=
2738 Add new switch -eL, to follow symbolic links when processing project
2741 * gnatcmd.adb: Process switches -eL and --subdirs=
2742 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2743 Program_Name to get proper tool names when AAMP_On_Target is set.
2744 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2745 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2746 Osint.Program_Name).
2748 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2749 (Usage): Add lines for switches -eL and --subdirs=
2751 * makeusg.adb: Add line for switch --subdirs=
2754 (Source_Data): New Boolean component Compiled, defaulted to True
2755 (Empty_File_Name: New global variable in private part, initialized in
2756 procedure Initialize.
2757 (Subdirs_Option): New constant string
2758 (Subdirs): New String_Ptr global variable
2759 (Language_Config): New component Include_Compatible_Languages
2760 (Project_Qualifier): New type for project qualifiers
2761 (Project_Data): New component Qualifier
2762 (Project_Configuration): New component Archive_Builder_Append_Option
2764 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2765 another imported project indicate the name of this imported project.
2766 (Check_File): When a unit is in two project files, indicate the project
2767 names and the paths of the source files for each project.
2768 (Add_Source): Set Compiled to False if compiler driver is empty. Only
2769 set object, dependency and switches file names if Compiled is True.
2770 (Process_Compiler): Allow the empty string for value of attribute Driver
2771 (Get_Directories): When Subdirs is not null and Object_Dir is not
2772 specified, locate and create if necessary the actual object dir.
2773 (Locate_Directory): When Subdirs is not empty and Create is not the
2774 empty string, locate and create if necessary the actual directory
2775 as a subdirectory of directory Name.
2776 (Check_Library_Attributes.Check_Library): Allow a project where the only
2777 "sources" are header files of file based languages to be imported by
2778 library projects, in multi-language mode (gprbuild).
2779 (Check_Library_Attributes.Check_Library): In multi-language mode
2780 (gprbuild), allow a library project to import a project with no
2781 sources, even when this is not declared explicitly.
2782 (Check_If_Externally_Built): A virtual project extending an externally
2783 built project is also externally built.
2784 (Check_Library_Attributes): For a virtual project extending a library
2785 project, inherit the library directory.
2786 (Process_Project_Level_Array_Attributes): Process new attribute
2787 Inherit_Source_Path.
2788 For projects with specified qualifiers "standard", "library" or
2789 "abstract", check that the project conforms to the qualifier.
2790 (Process_Project_Level_Simple_Attributes): Process new attribute
2791 Archive_Builder_Append_Option.
2793 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2794 (Normalize_Compiler_Switches): Only keep compiler switches that are
2795 passed to gnat1 by the gcc driver and that are stored in the ALI file
2797 Do not take into account switc -save-temps
2799 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2800 gprmake is called with -eL.
2801 (Scan_Arg): Recognize switch -eL
2802 (Usage): Add line for switch -eL
2804 * prj.adb (Initialize): Initialize Empty_File_Name
2805 (Project_Empty): New component Qualifier
2807 * prj-attr.ads, prj-attr.adb: New project level attribute
2808 Inherit_Source_Path.
2809 New project level attribute Archive_Builder_Append_Option
2811 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2813 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2814 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2815 upward compatibility.
2817 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2818 each Trying ..." on different lines.
2819 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2820 is "configuration" when not in configuration. Fail when in configuration
2821 when a specified qualifier is other than "configuration".
2823 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2824 full associative array together.
2825 (Recursive_Process): Put the project qualifier in the project data
2827 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2828 (Set_Project_Qualifier_Of): New procedure
2830 2008-04-08 Robert Dewar <dewar@adacore.com>
2832 * errout.ads: Update comments for new handling of info: messages
2834 * erroutc.adb (Matches): New procedure
2835 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2836 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2837 info messages as well as style messages.
2839 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2841 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2843 (Check_A_Call): Special "info: " warnings now have ? in the text
2844 (Elab_Warning): Use info message in static case
2846 2008-04-08 Ed Schonberg <schonberg@adacore.com>
2848 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2849 whether an array aggregate with static bounds and scalar components
2850 should be expanded into a static constant.
2852 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2853 Ed Schonberg <schonberg@adacore.com>
2854 Robert Dewar <dewar@adacore.com>
2856 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2857 Has_Stream_Attribute_ Definition when checking for available stream
2858 attributes on parameters of a limited type in Ada 2005. Necessary for
2859 proper recognition of visible stream attribute clauses.
2860 (Has_Stream_Attribute_Definition): If the type is derived from a
2861 private type, then use the derived type's underlying type for checking
2862 whether it has stream attributes.
2863 (Validate_Object_Declaration): The check for a user-defined Initialize
2864 procedure applies also to types with controlled components or a
2865 controlled ancestor.
2866 Reject an object declaration in a preelaborated unit if the type is a
2867 controlled type with an overriding Initialize procedure.
2868 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2869 checking when the parent of a dereference is a selected component and
2870 the name has not been analyzed.
2872 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2873 prefixes that are invalid explicit dereferences of remote
2874 access-to-class-wide values, first checking whether the selected
2875 component is a prefixed form of call to a tagged operation.
2876 (Analyze_Call): Remove code that issues an error for limited function
2877 calls in illegal contexts, as we now support all of the contexts that
2878 were forbidden here.
2879 Allow a function call that returns a task.and appears as the
2880 prefix of a selected component.
2881 (Analyze_Reference): Give error message if we try to make a 'Reference
2882 for an object that is atomic/aliased without its type having the
2883 corresponding attribute.
2884 (Analyze_Call): Remove condition checking for attributes to allow
2885 calls to functions with inherently limited results as prefixes of
2886 attributes. Remove related comment about Class attributes.
2887 (Analyze_Selected_Component): If the prefix is a remote type, check
2888 whether this is a prefixed call before reporting an error.
2889 (Complete_Object_Operation): If the controlling formal is an access to
2890 variable reject an actual that is a constant or an access to one.
2891 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2892 primitive operations from base type.
2894 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
2896 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2897 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
2898 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2899 (Expand_N_Slice): Test for prefix that is a build-in-place function call
2900 and call Make_Build_In_Place_Call_In_Anonymous_Context.
2901 (Analyze_Call): Remove code that issues an error for limited function
2902 calls in illegal contexts, as we now support all of the contexts that
2903 were forbidden here.
2904 New calling sequence for Get_Simple_Init_Val
2905 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
2906 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
2908 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2909 Ed Schonberg <schonberg@adacore.com>
2910 Robert Dewar <dewar@adacore.com>
2912 * exp_ch2.adb: Minor reformatting.
2913 (Expand_Entry_Index_Parameter): Set the type of the identifier.
2914 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
2915 (Expand_Protected_Component): New routine.
2916 (Expand_Protected_Private): Removed.
2917 Add Sure parameter to Note_Possible_Modification calls
2919 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
2920 generated subprogram declaration must inherit the overriding indicator
2921 from the instantiation node.
2922 (Validate_Access_Type_Instance): If the designated type of the actual is
2923 a limited view, use the available view in all cases, not only if the
2924 type is an incomplete type.
2925 (Instantiate_Object): Actual is illegal if the formal is null-excluding
2926 and the actual subtype does not exclude null.
2927 (Process_Default): Handle properly abstract formal subprograms.
2928 (Check_Formal_Package_Instance): Handle properly defaulted formal
2929 subprograms in a partially parameterized formal package.
2930 Add Sure parameter to Note_Possible_Modification calls
2931 (Validate_Derived_Type_Instance): if the formal is non-limited, the
2932 actual cannot be limited.
2933 (Collect_Previous_Instances): Generate instance bodies for subprograms
2936 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
2938 Add Sure parameter to Note_Possible_Modification calls
2939 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
2940 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
2941 constant overlaid by variable and issue warning.
2942 Use new Is_Standard_Character_Type predicate
2943 (Analyze_Record_Representation_Clause): Check that the specified
2944 Last_Bit is not less than First_Bit - 1.
2945 (Analyze_Attribute_Definition_Clause, case Address): Check for
2946 self-referential address clause
2948 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
2949 detection mechanism when the lhs is a prival.
2950 (Analyze_Assignment): Call Check_Unprotected_Access to detect
2951 assignment of a pointer to protected data, to an object declared
2952 outside of the protected object.
2953 (Analyze_Loop_Statement): Check for unreachable code after loop
2954 Add Sure parameter to Note_Possible_Modication calls
2955 Protect analysis from previous syntax error such as a scope mismatch
2957 (Analyze_Assignment_Statement): The assignment is illegal if the
2958 left-hand is an interface.
2960 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
2961 violation of restriction No_Implicit_Conditionals
2962 Add Sure parameter to Note_Possible_Modication calls
2963 Use new Is_Standard_Character_Type predicate
2964 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
2965 call as operator. Fixes problems (e.g. validity checking) which
2966 come from the result looking as though it does not come from source).
2967 (Resolve_Call): Check case of name in named parameter if style checks
2969 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
2970 from the checking that such calls should not occur from an entry body.
2971 (Resolve_Call): If the return type of an Inline_Always function
2972 requires the secondary stack, create a transient scope for the call
2973 if the body of the function is not available for inlining.
2974 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
2975 that are actuals for in-out formals.
2976 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2977 primitive operations from base type.
2978 (Analyze_Selected_Component): If the context is a call to a protected
2979 operation the parent may be an indexed component prior to expansion.
2980 (Resolve_Actuals): If an actual is of a protected subtype, use its
2981 base type to determine whether a conversion to the corresponding record
2983 (Resolve_Short_Circuit): Handle pragma Check
2985 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
2986 Use new Is_Standard_Character_Type predicate
2987 (Eval_Relational_Op): Catch more cases of string comparison
2989 2008-04-08 Robert Dewar <dewar@adacore.com>
2990 Gary Dismukes <dismukes@adacore.com>
2992 * s-rident.ads: Add No_Default_Initialization restriction
2995 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
2996 (Set_TSS): Handle No_Default_Initialization case
2998 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
2999 No_Default_Initialization
3000 (Expand_N_Subprogram_Body): Remove redundant initialization of out
3001 parameters when Normalize_Scalars is active.
3002 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3003 Fix casing error in formal parameter name in call
3004 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3005 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3006 dispatching call on VM targets.
3008 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3009 Thomas Quinot <quinot@adacore.com>
3011 * exp_ch7.adb (Find_Final_List): Change the test for generating a
3012 selected component from an access type's Associated_Final_Chain to
3013 check for the presence of that field, rather than assuming it exists
3014 for all named access types.
3015 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3016 procedure to call at the end of the generated cleanup procedure.
3017 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3018 and an At_End_Proc already exists in the handled sequence of statements
3019 for which cleanup actions are being expanded, the original cleanup
3020 action must be preserved.
3022 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3023 Ed Schonberg <schonberg@adacore.com>
3024 Robert Dewar <dewar@adacore.com>
3025 Gary Dismukes <dismukes@adacore.com>
3027 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3028 Build_Unprotected_Subprogram_Body): Generate debug info for
3029 declarations related to the handling of private data in task and
3031 (Debug_Private_Data_Declarations): New subprogram.
3032 (Install_Private_Data_Declarations): Remove all debug info flagging.
3033 This is now done by Debug_Private_Data_Declarations at the correct
3035 (Build_Simple_Entry_Call): If the task name is a function call, expand
3036 the prefix into an object declaration, and make the surrounding block a
3038 (Build_Master_Entity): An internal block is a master if it wraps a call.
3039 Code reformatting, update comments. Code clean up.
3040 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3041 (Replicate_Entry_Formals): If the formal is an access parameter or
3042 anonymous access to subprogram, copy the original tree to create new
3043 entities for the formals of the subprogram.
3044 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3045 for tasks to store the value passed using pragma Relative_Deadline.
3046 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3047 run-time call to create a task.
3048 (Build_Wrapper_Spec): If the controlling argument of the interface
3049 operation is an access parameter with a non-null indicator, use the
3050 non-null indicator on the wrapper.
3052 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3053 present, which it may not be in the case where the type entity is an
3054 incomplete view brought in by a limited with.
3055 (Analyze_Task_Type): Only retrieve the full view when present, which it
3056 may not be in the case where the type entity is an incomplete view brought
3057 in by a limited with.
3058 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3059 private components of a protected type, to prevent the generation of freeze
3060 nodes for which there is no proper scope of elaboration.
3062 * exp_util.ads, exp_util.adb
3063 (Remove_Side_Effects): If the expression is a function call that returns a
3064 task, expand into a declaration to invoke the build_in_place machinery.
3065 (Find_Protection_Object): New routine.
3066 (Remove_Side_Effects): Also make a copy of the value
3067 for attributes whose result is of an elementary type.
3068 (Silly_Boolean_Array_Not_Test): New procedure
3069 (Silly_Boolean_Array_Xor_Test): New procedure
3070 (Is_Volatile_Reference): New function
3071 (Remove_Side_Effects): Use Is_Volatile_Reference
3072 (Possible_Bit_Aligned_Component): Handle slice case properly
3074 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3075 case test to Exp_Util
3076 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3078 2008-04-08 Thomas Quinot <quinot@adacore.com>
3080 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3082 (Add_RACW_Features): When processing an RACW in another unit than the
3083 main unit, set Body_Decls to No_List to indicate that the bodies of
3084 the type's TSS must not be generated.
3085 (GARLIC_Support.Add_RACW_Read_Attribute,
3086 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3087 Body_Decls is No_List.
3088 (PolyORB_Support.Add_RACW_Read_Attribute,
3089 PolyORB_Support.Add_RACW_Write_Attribute,
3090 PolyORB_Support.Add_RACW_From_Any,
3091 PolyORB_Support.Add_RACW_To_Any,
3092 PolyORB_Support.Add_RACW_TypeCode): Same.
3093 (Transmit_As_Unconstrained): New function.
3094 (Build_Ordered_Parameters_List): Use the above to order parameters.
3095 (GARLIC_Support.Build_General_Calling_Stubs):
3096 Use the above to determine which parameters to unmarshall using 'Input
3097 at the point where their temporary is declared (as opposed to later on
3099 (PolyORB_Support.Build_General_Calling_Stubs):
3100 Use the above to determine which parameters to unmarshall using From_Any
3101 at the point where their temporary is declared (as opposed to later on
3102 with an assignment).
3104 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3106 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3107 an Input function for an access type, do not perform default
3108 initialization on the local variable that receives the value, to
3109 prevent spurious warnings when the type is null-excluding.
3111 2008-04-08 Robert Dewar <dewar@adacore.com>
3112 Ed Schonberg <schonberg@adacore.com>
3114 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3116 (Size_Known): Generic formal scalar types have known at compile
3117 time size, so remove check.
3118 Fix casing error in formal parameter name in call
3119 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3120 recheck its overriding indication.
3122 2008-04-08 Vincent Celier <celier@adacore.com>
3124 * gnat1drv.adb: Send all messages indicating an error to standard error
3126 2008-04-08 Robert Dewar <dewar@adacore.com>
3128 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3129 (List_Applicable_Restrictions): Do not list existing restrictions
3131 2008-04-08 Thomas Quinot <quinot@adacore.com>
3133 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3134 add a pointer to generic sockets literature
3135 do not mention that the given example is "typical" usage.
3136 Remove obsolete comment about multicast not being supported on Windows.
3137 (Connect_Socket): Make Server mode IN rather than IN OUT
3138 since this formal is never modified.
3140 2008-04-08 Robert Dewar <dewar@adacore.com>
3142 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3143 the declaration for some different entity.
3144 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3145 list is precent (following the parent subtype indication), display
3146 appropriate "and" keyword.
3148 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3149 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3150 Add notes on use of Parent field of an Itype
3152 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3153 Robert Dewar <dewar@adacore.com>
3154 Gary Dismukes <dismukes@adacore.com>
3156 * lib-xref.adb (Is_On_LHS): Remove dead code
3157 (Output_Overriden_Op): If the overridden operation is itself inherited,
3158 list the ancestor operation, which is the one whose body or absstract
3159 specification is actually being overridden. For source navigation
3162 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3163 operation is primitive for the type.
3164 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3165 an inherited private subprogram, set properly the Overridden_Operation
3166 attribute, for better cross-reference information.
3167 (Analyze_Package_Specification): Do late analysis of spec PPCs
3168 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3169 properly the full view and underlying full views of a private type in a
3170 child unit, whose full view is derived from a private type in a parent
3171 unit, and whose own full view becomes visible in the child body.
3173 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3174 primitive operation after the type has been frozen, add an explicit
3175 reference to the type and the operation, because other primitive
3176 references have been emitted already.
3177 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3178 dispatching call on VM targets.
3180 2008-04-08 Vincent Celier <celier@adacore.com>
3181 Thomas Quinot <quinot@adacore.com>
3183 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3184 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3185 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3186 (Insert_Project_Sources): Take into account index in multi-unit source
3188 After building a library project, delete all temporary files.
3189 (Initialize): Reset current output after parsing project file.
3190 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3191 of library projects that are externally built.
3192 Put file name in error and inform messages if -df is used
3193 (Display): If invoked with -d7, do not display path names, but only
3196 * makeutl.ads (Path_Or_File_Name): New function
3197 (Path_Or_File_Name): New function
3199 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3201 * Make-lang.in: Disable warnings during first stage of bootstrap
3203 Update dependencies.
3205 2008-04-08 Vincent Celier <celier@adacore.com>
3207 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3208 case to decide if ALI object file is included in library.
3209 (Build_Library): Never attempt to build a library if the project is
3212 2008-04-08 Thomas Quinot <quinot@adacore.com>
3214 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3215 (No_List) is defined to return Empty.
3217 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3219 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3222 (Read_Default_Search_Dirs): Do not consider spaces as path separators
3223 because spaces may be part of legal paths.
3225 2008-04-08 Robert Dewar <dewar@adacore.com>
3227 * par-ch11.adb (P_Exception_Handler): Check indentation level for
3230 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3232 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3233 in a type declaration, if this is not an interface declaration or
3234 private type extension.
3236 2008-04-08 Vincent Celier <celier@adacore.com>
3238 * prj-util.adb (Executable_Of): New String parameter Language. When
3239 Ada_Main is False and Language is not empty, attempt to remove the body
3240 suffix or the spec suffix of the language to get the base of the
3241 executable file name.
3242 (Put): New Boolean parameter Lower_Case, defauilted to False. When
3243 Lower_Case is True, put the value in lower case in the name list.
3244 (Executable_Of): If there is no executable suffix in the configuration,
3245 then do not modify Executable_Extension_On_Target.
3247 * prj-util.ads (Executable_Of): New String parameter Language,
3248 defaulted to the empty string.
3249 (Put): New Boolean parameter Lower_Case, defauilted to False
3251 2008-04-08 Robert Dewar <dewar@adacore.com>
3253 * scng.adb (Scan_Identifier): Handle case of identifier starting with
3254 wide character using UTF-8 encoding.
3256 2008-04-08 Javier Miranda <miranda@adacore.com>
3258 * sem.adb (Analyze): Consider case in which we analyze an empty node
3259 that was generated by a call to a runtime function that is not
3260 available under the configurable runtime.
3262 * sem.ads (Inside_Freezing_Actions): New flag.
3263 (Save_Check_Policy_List): New field in scope stack entry
3265 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3266 Robert Dewar <dewar@adacore.com>
3268 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3269 the ancestor part of an extension aggregate for a limited type.
3270 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3271 enumeration index bounds.
3272 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3273 when array is too short.
3274 (Check_Expr_OK_In_Limited_Aggregate): Move function
3275 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3277 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3278 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3279 component associations.
3280 (Check_Non_Limited_Type): Moved to outer level and renamed.
3281 (Resolve_Record_Aggregate): In an extension aggregate, an association
3282 with a box initialization can only designate a component of the
3283 extension, not a component inherited from the given ancestor
3285 * sem_case.adb: Use new Is_Standard_Character_Type predicate
3287 2008-04-08 Robert Dewar <dewar@adacore.com>
3289 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3291 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3292 Properly handle case where Aft > Scale and input number is less than
3295 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3297 * s-stoele.ads, s-soflin.ads: Move the location of
3298 Dummy_Communication_Block from System.Storage_Elements to
3301 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3302 emulate Communication_Block in certain scenarios.
3304 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3306 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3308 Add new subtype S_WWC, unchecked conversion routines From_WWC and
3310 (I_WWC, O_WWC): New routines for input and output of
3311 Wide_Wide_Character.
3313 2008-04-08 Robert Dewar <dewar@adacore.com>
3315 * stringt.adb (Write_String_Table_Entry): Handle wide characters
3318 2008-04-08 Robert Dewar <dewar@adacore.com>
3320 * styleg.adb (Check_Comment): Allow special char after -- in
3321 non-end-of-line case
3323 2008-04-08 Robert Dewar <dewar@adacore.com>
3325 * stylesw.adb: Implement -gnaty + - y options
3326 (Set_GNAT_Style_Check_Options): Includ I in style check string
3328 * stylesw.ads: Add comments for new style switch options
3330 2008-04-08 Sergey Rybin <rybin@adacore.com>
3332 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3333 to the set of the GNAT components needed by ASIS.
3335 2008-04-08 Bob Duff <duff@adacore.com>
3337 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3339 2008-04-08 Tristan Gingold <gingold@adacore.com>
3341 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3342 Improve error message generation.
3344 2008-04-08 Vincent Celier <celier@adacore.com>
3346 * a-direct.adb (Start_Search): Check for Name_Error before checking for
3347 Use_Error, as specified in the RM. Check if directory is open and raise
3348 Use_Error if it is not.
3350 2008-04-08 Vincent Celier <celier@adacore.com>
3351 Robert Dewar <dewar@adacore.com>
3353 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3354 AAMP_On_Target is set.
3356 * vms_data.ads: Add NOxxx to style check switch list
3357 Add entry COMPONENTS for -gnatVe
3358 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3360 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3361 Add qualifiers for gnatmetric coupling options
3362 Add note that -gnata enables all checks
3363 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3364 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3365 New warning flag -gnatw.e
3367 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3368 Add entry for -gnatyN (forgotten before)
3369 Line for new warning switch -gnatw.p
3370 New warning flag -gnatw.e
3372 * gnat_ugn.texi: Add documentation fpr project file switch -aP
3373 Document -gnaty - + y
3374 Replace occurences of "package specification" with "package spec"
3375 Define preprocessing symbols in documentation of gnatprep
3376 Clarify reason for distinguishing overflow checking
3377 Add documentation for project-aware tool switches -eL and --subdirs=
3378 Complete list of configuration pragmas
3379 Specify that, even when gnatmake switch -x is used, mains on the command
3380 line need to be sources of project files.
3381 Editing of gnatcheck/gnatmetric doc.
3382 Add documentation for -gnatw.p/-gnatw.P
3383 Add missing documentation for -fno-inline-functions.
3384 Add documentation for -gnatw.e
3386 * gnat_rm.texi: Add documentation for No_Default_Initialization
3387 Replace occurences of "package specification" with "package spec"
3388 Document use of * in Warnings Off string
3389 Update documentation of alignment/component clauses.
3390 Add documentation for Invalid_Value
3391 Document new consistency rule for Optimize_Alignment
3392 Add documentation for Precondition and Postcondition pragmas
3393 Add documentation for Check and Check_Policy pragmas
3394 Document new Enum_Val attribute
3395 Remove requirement for static string in pragma Assert
3396 Add documentation on GNAT.Time_Stamp
3398 * ug_words: add entry for -gnatVe
3399 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3400 Add entry for -gnatw.e
3402 * debug.adb: Add missing documentation for d.a flag
3403 Document new -gnatd.a switch.
3404 Add documentation for new gnatmake debug switch -df
3406 2008-04-08 Thomas Quinot <quinot@adacore.com>
3408 * gen-soccon.c: Bump year in copyright notices.
3410 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3412 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3414 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3417 2008-04-08 Robert Dewar <dewar@adacore.com>
3418 Bob Duff <duff@adacore.com>
3420 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3421 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3423 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3425 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3427 * g-trasym.ads: Minor comment improvements
3429 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3431 * a-sequio.ads, a-direio.ads: improve message for tagged type
3433 * a-strunb.ads: Minor reformatting
3435 * a-tifiio.adb: Minor reformatting
3437 * atree.adb (Fix_Parents): Use clearer names for formals
3438 Cleanup and simplify code
3439 Use named notation in calls
3441 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3444 * uintp.adb: Used named notation for some confusing calls
3446 * bindusg.adb: Minor change in one line of output
3448 * cstand.adb: Minor reformatting of src representation of Standard
3450 * a-assert.ads: Add comment.
3452 * g-decstr.adb: Fix bad indentation
3454 * expander.ads, expander.adb: Code clean up.
3456 * sem_dist.ads: Minor comment improvement
3458 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3459 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3461 * i-cstrin.adb: Fix casing error in formal parameter name in call
3463 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3465 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3466 mentioned in limited_with_clauses to do create semantic dependencies
3467 even though they appear in the ali file.
3469 2008-04-08 Emmanuel Briot <briot@adacore.com>
3471 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3473 (Get_Configuration): New subprogram.
3475 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3476 These optional parameters help preserve the casing of the project's name
3477 when pretty-printing.
3479 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
3480 Arnaud Charlet <charlet@adacore.com>
3482 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3483 then use __gnat_set_exit_status to report the returned status code.
3485 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3486 messages on .NET, since some constructs of the language are not
3489 * gnatlink.adb (Gnatlink): In case the command line is too long for the
3490 .NET linker, gnatlink now concatenate all .il files and pass this to
3493 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3494 Xavier Grave <grave@ipno.in2p3.fr>
3496 * Makefile.in: Add make ifeq define for mips/mipsel support.
3497 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
3498 system-linux-mips.ads: New files.
3500 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3502 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3503 detect systems using GNU libc.
3509 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3511 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
3512 constant constant for sysconf call.
3513 (bit_field): New packed boolean type used by cpu_set_t.
3514 (cpu_set_t): New type corresponding to the C type with
3515 the same name. Note that on the Ada side we use a bit
3516 field array for the affinity mask. There is not need
3517 for the C macro for setting individual bit.
3518 (pthread_setaffinity_np): New imported routine.
3519 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3522 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3524 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3526 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3528 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3529 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3530 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3531 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3532 Return by Depressed Stack Pointer.
3534 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3536 * decl.c (is_variable_size): Do not unconditionally return false
3537 on non-strict alignment platforms.
3539 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3541 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3542 used to process all the variants of the specified type.
3543 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3544 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
3545 (rest_of_type_decl_compilation): Likewise.
3546 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3548 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3550 * gigi.h (insert_block): Kill.
3551 * utils.c (insert_block): Kill.
3553 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3555 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3556 type has self-referential size, get the size from the initializing
3557 expression directly if it is also a constant whose nominal type
3558 has self-referential size.
3560 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3563 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3566 * env.c: Always include crt_externs.h if __APPLE__ is defined.
3567 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3569 2008-04-01 Andreas Jaeger <aj@suse.de>
3571 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3574 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3576 * g-table.adb, g-tasloc.adb, g-traceb.ads,
3577 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3578 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3579 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3580 gnatlink.adb, gnatmem.adb, gprep.adb,
3581 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3582 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3583 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3584 lib-xref.ads, lib.adb, link.c, live.ads,
3585 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3586 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3587 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3588 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3589 namet.adb, namet.h, nlists.adb, nlists.ads,
3590 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3591 osint-c.ads, osint.adb, osint.ads, output.ads,
3592 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3593 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3594 par-endh.adb, par-labl.adb, par-prag.adb,
3595 par-sync.adb, par-tchk.adb, par-util.adb,
3596 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3597 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3598 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3599 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3601 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
3603 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3604 size if it has overflowed.
3606 2008-03-31 Olivier Hainque <hainque@adacore.com>
3607 Eric Botcazou <ebotcazou@adacore.com>
3609 * utils2.c (find_common_type): Document assumption on t1/t2 vs
3610 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3612 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3614 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3615 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3616 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3617 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3618 exp_tss.ads, exp_util.adb, exp_util.ads,
3619 exp_vfpt.adb, freeze.adb, freeze.ads,
3620 frontend.adb, g-alleve.adb, g-altcon.adb,
3621 g-altive.ads, g-alveop.ads, g-alvevi.ads,
3622 g-arrspl.adb, g-busorg.ads, g-calend.adb,
3623 g-calend.ads, g-casuti.ads, g-cgideb.adb,
3624 g-comlin.adb, g-comlin.ads, g-curexc.ads,
3625 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3626 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3627 g-dyntab.adb, g-encstr.ads, g-excact.ads,
3628 g-except.ads, g-expect.ads, g-heasor.adb,
3629 g-hesora.adb, g-hesorg.adb, g-htable.ads,
3630 g-locfil.ads, g-md5.adb, g-md5.ads,
3631 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3632 g-pehage.adb, g-pehage.ads, g-regexp.adb,
3633 g-regexp.ads, g-regpat.adb, g-regpat.ads,
3634 g-soccon-aix.ads, g-soccon-darwin.ads,
3635 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3636 g-soccon-hpux.ads, g-soccon-irix.ads,
3637 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3638 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3639 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3640 g-soccon-solaris.ads, g-soccon-tru64.ads,
3641 g-soccon-vms.ads, g-soccon-vxworks.ads,
3642 g-soccon.ads, g-socket.adb, g-socket.ads,
3643 g-socthi-mingw.adb, g-socthi-vms.adb,
3644 g-socthi-vxworks.adb, g-soliop-mingw.ads,
3645 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3646 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3649 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
3651 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3652 if the procedure is imported.
3654 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3656 * adaint.c: Fix warnings.
3658 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3660 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3662 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3664 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3665 Fix problem of status check for null file
3667 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3669 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3670 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3671 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3672 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3673 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3676 2008-03-26 Thomas Quinot <quinot@adacore.com>
3679 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3680 Get_Socket_Option): Add support for Receive_Packet_Info.
3682 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3683 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3684 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3685 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3686 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3687 new constants SO_REUSEPORT and IP_PKTINFO
3689 2008-03-26 Robert Dewar <dewar@adacore.com>
3691 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3692 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3693 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3694 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3695 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3696 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3697 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3698 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3699 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3700 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3701 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3702 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3703 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3704 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3705 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3706 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3707 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3708 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3709 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3710 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3711 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3712 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3713 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3714 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3715 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3716 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3717 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3718 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3719 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3720 s-tasloc.adb: Minor reformatting.
3722 Remove "used for" sections from comments.
3724 2008-03-26 Robert Dewar <dewar@adacore.com>
3726 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3727 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3728 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3729 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3730 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3731 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3732 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3733 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3734 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3735 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3736 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3737 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3738 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3739 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3740 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3741 double spaced if it fits on one line and otherwise single spaced.
3743 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3745 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
3746 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3747 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3748 or task info if the thread could not be created.
3750 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3752 * gnatvsn.ads (Library_Version): Bump to 4.4.
3753 (Current_Year): Bump to 2008.
3755 2008-03-26 Robert Dewar <dewar@adacore.com>
3757 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3759 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3761 * debug.adb: Add debug flags d.r and d.v
3762 Add debug flag .T (Optimize_Alignment (Time))
3763 Add debug flag .S (Optimize_Alignment (Space))
3765 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3766 depending on setting of relevant debug flags.
3767 Replace use of Warnings_Off by Has_Warnings_Off
3768 (Freeze_Entity): In circuit for warning on suspicious convention
3769 actuals, do not give warning if subprogram has same entity as formal
3770 type, or if subprogram does not come from source.
3771 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3772 if Optimize_Alignment set to Space.
3774 * frontend.adb: Add call to Sem_Warn.Initialize
3775 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3776 Reset Optimize_Alignment mode from debug switches .S and .T
3778 * layout.adb (Layout_Composite_Object): Rewritten for
3779 Optimize_Aligment pragma.
3781 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3784 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3786 * par-prag.adb (N_Pragma): Chars field removed, use Chars
3787 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3788 this change. Add entry for pragma Optimize_Alignment
3790 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3791 (Pragma_Identifier (..
3792 instead, adjustments throughout to accomodate this change.
3793 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3794 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3795 Add implementation of pragma Optimize_Alignment
3797 2008-03-26 Vincent Celier <celier@adacore.com>
3799 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3800 Improve memory usage to avoid use of stack.
3802 2008-03-26 Robert Dewar <dewar@adacore.com>
3804 * a-teioed.ads: Correct value of Default_Fill
3806 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3808 2008-03-26 Robert Dewar <dewar@adacore.com>
3810 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3811 with Current_Output (introduce Self).
3813 2008-03-26 Robert Dewar <dewar@adacore.com>
3815 * checks.adb (Ensure_Valid): Capture valid status if possible
3818 2008-03-26 Robert Dewar <dewar@adacore.com>
3820 * stand.ads: Deal with reordering of package standard declarations
3822 * cstand.adb: Put package Standard declarations in proper order
3824 2008-03-26 Robert Dewar <dewar@adacore.com>
3826 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3827 (Pragma_Identifier (.. instead.
3828 (OK_To_Reorder_Components): New flag
3829 (Has_Entries): Code cleanup.
3830 (Warnings_Off_Used): New flag
3831 (Warnings_Off_Used_Unmodified): New flag
3832 (Warnings_Off_Used_Unreferenced): New flag
3833 (Has_Warnings_Off): New function
3834 (Has_Unmodified): New function
3835 (Has_Unreferenced): New function
3836 (Is_Trivial_Subprogram): New flag
3837 (Is_Static_Dispatch_Table_Entity): New attribute.
3838 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3839 (more consistent with other similar names)
3840 (Access_Subprogram_Type): New classification function
3842 2008-03-26 Robert Dewar <dewar@adacore.com>
3844 * errout.ads: Document new !! insertion sequence
3846 * errout.adb (N_Pragma): Chars field removed, use Chars
3847 (Pragma_Identifier (.. instead.
3848 Replace use of Warnings_Off by Has_Warnings_Off
3849 (Error_Msg_Internal): Don't delete warning ending in !!
3851 2008-03-26 Robert Dewar <dewar@adacore.com>
3853 * par.adb (Check_No_Right_Paren): Removed no longer used
3855 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3856 (Pragma_Identifier (.. instead.
3858 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3860 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3861 par-ch4.adb: Minor improvements in error recovery and messages.
3863 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3866 * par-ch9.adb: Minor improvements in error recovery and messages
3867 (P_Protected): Better error recovery for "protected type x;"
3869 * par-util.adb: Minor improvements in error recovery and messages
3870 (Check_No_Right_Paren): Removed no longer used
3872 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3874 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3875 that the prefix of an attribute is the type of the aggregate being
3878 2008-03-26 Javier Miranda <miranda@adacore.com>
3879 Robert Dewar <dewar@adacore.com>
3881 * exp_attr.adb (N_Pragma): Chars field removed.
3882 (Expand_N_Attribute_Reference): If the designated type associated with
3883 attribute 'Unrestricted_Access is a subprogram entity then replace it
3884 by an E_Subprogram_Type itype.
3885 Implement attribute Old
3887 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
3889 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
3891 New_Internal_Entity by call to Create_Itype to centralize calls
3892 building itypes, ad propagate the convention of the designated
3893 subprogram. In addition, disable the machinery cleaning constant
3894 indications from all entities in current scope when 'Unrestricted_Access
3895 corresponds with a node initializing a dispatch table slot.
3896 (Analyze_Attribute): Parameterless attributes returning a string or a
3897 type will not be called with improper arguments, so we can remove junk
3898 code that was dealing with this case.
3899 Implement attribute Old
3901 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
3902 Add entry for pragma Optimize_Alignment
3903 New standard names Sync and Synchronize
3905 2008-03-26 Robert Dewar <dewar@adacore.com>
3906 Arnaud Charlet <charlet@adacore.com>
3908 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
3910 (No_Exception_Propagation_Active): New function.
3911 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3912 Update comments, and review all uses of No_Exception_Propagation, which
3913 are now correct and in sync with what gigi expects.
3915 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
3917 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3918 Update comments, and review all uses of No_Exception_Propagation, which
3919 are now correct and in sync with what gigi expects.
3921 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3923 * sem_ch3.adb (Access_Definition): If the access type is the return
3924 result of a protected function, create an itype reference for it
3925 because usage will be in an inner scope from the point of declaration.
3926 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
3927 OK_To_Reorder_Components.
3928 (Make_Index): If an overloaded range includes a universal integer
3929 interpretation, resolve to Standard.Integer.
3930 (Analyze_Subtype_Indication): Copy Convention to subtype
3931 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
3932 limited an synchronized progenitors in type declaration and private
3933 extension declarations.
3935 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
3936 protected subprogram body, determine proper scope from subprogram
3939 2008-03-26 Robert Dewar <dewar@adacore.com>
3941 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
3944 2008-03-26 Gary Dismukes <dismukes@adacore.com>
3946 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
3947 of a heap allocator for a limited unconstrained function return when
3948 resstriction No_Allocators is active.
3949 (Analyze_Allocator): The restriction No_Allocators is now only checked
3950 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3952 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
3953 of a heap allocator for a limited unconstrained function return when
3954 resstriction No_Allocators is active.
3955 (Analyze_Allocator): The restriction No_Allocators is now only checked
3956 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3957 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
3958 operands are fixed-point types, the universal_fixed predefined operation
3959 is used, regardless of whether the operand type (s) have a primitive
3960 operation of the same name.
3962 2008-03-26 Javier Miranda <miranda@adacore.com>
3964 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
3965 Is_Static_Dispatch_Table
3966 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
3967 to Exchange_Declarations to exchange the private and full-view. Bug
3968 found working in this issue.
3969 (Expand_Dispatching_Call): Propagate the convention of the subprogram
3970 to the subprogram pointer type.
3971 (Make_Secondary_DT): Replace generation of Prim'Address by
3972 Address (Prim'Unrestricted_Access)
3973 (Make_DT): Replace generation of Prim'Address by
3974 Address (Prim'Unrestricted_Access)
3975 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
3976 simple call form for single entry.
3977 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
3978 tables of predefined primitives).
3979 (Make_Secondary_DT): Add support to handle access to dispatch tables of
3980 predefined primitives.
3981 (Make_Tags): Add entities to Access_Dispatch_Table associated with
3982 access to dispatch tables containing predefined primitives.
3984 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
3985 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3987 (Register_Predefined_DT_Entry): Updated to handle the new contents
3988 of attribute Access_Disp_Table (pointers to dispatch tables containing
3989 predefined primitives).
3991 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
3993 (Find_Interface_ADT): Updated to skip the new contents of attribute
3994 Access_Dispatch_Table (pointers to dispatch tables containing predefined
3997 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
3999 (Set_Convention): Use new function Is_Access_Subprogram_Type
4000 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4001 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4004 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4005 expanded code avoiding calls to Build_Predef_Prims.
4006 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4007 call to Build_Get_Predefined_Prim_Op_Address.
4009 2008-03-26 Javier Miranda <miranda@adacore.com>
4011 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4012 subprogram Corresponding_Runtime_Package to know the runtime package
4013 that will provide support to a given protected type.
4015 * exp_ch9.adb (Add_Private_Declarations,
4016 Build_Protected_Subprogram_Call,
4017 Build_Protected_Entry, Build_Simple_Entry_Call,
4018 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4019 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4020 cleanup using the new centralized subprogram Corresponding_Runtime
4021 Package to know the runtime package that provides support to
4022 a given protected type.
4024 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4026 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4027 assignment is within the initialization procedure for a packed array,
4028 and Initialize_Scalars is enabled, compile right-hand side with checks
4029 off, because the value is purposely out of range.
4031 2008-03-26 Vincent Celier <celier@adacore.com>
4033 * gnatcmd.adb: Add processing for GNAT SYNC
4035 * vms_conv.ads: (Command_Type): Add command Sync
4037 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4039 * vms_data.ads: Add entries for -gnatw.w
4040 Add qualifier for gnatstub --header-file option
4041 Add switches for GNAT SYNC
4043 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4044 (Add_Package_Name): New procedure
4045 (Package_Name_List): New function
4046 (Initialize): Add known package names to the list
4047 (Register_New_Package): Add the new package name to the list
4049 2008-03-26 Robert Dewar <dewar@adacore.com>
4051 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4052 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4053 Raise_Exception by "raise with" construct.
4055 2008-03-26 Pascal Obry <obry@adacore.com>
4057 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4058 supported platforms.
4060 * Makefile.rtl: Add g-sercom.o.
4062 * impunit.adb: Add g-sercom.adb.
4064 * s-crtl.ads (open): New routine.
4068 * s-osinte-mingw.ads (BYTE): New type.
4070 (OVERLAPPED): Likewise.
4071 (GENERIC_READ): New constant.
4072 (GENERIC_WRITE): Likewise.
4073 (OPEN_EXISTING): Likewise.
4074 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4076 (CreateFile): New routine.
4077 (WriteFile): Likewise.
4078 (ReadFile): Likewise.
4079 (CloseHandle): Move next to the other file oriented routines.
4081 * g-sercom.ads: New unit.
4083 * g-sercom.adb: Default implementation, calls to this unit will raise
4084 a program error exception.
4086 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4087 GNU/Linux implementations.
4089 2008-03-26 Robert Dewar <dewar@adacore.com>
4091 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4093 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4094 unchecked conversion for different conventions only for subprogram
4097 2008-03-26 Vincent Celier <celier@adacore.com>
4099 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4100 to check if the specified object file is correct.
4102 2008-03-26 Thomas Quinot <quinot@adacore.com>
4104 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4105 Comes_From_Source to exclude primitives from being checked. We want to
4106 exclude predefined primitives only, so use the appropriate specific
4107 predicate. Also, flag a formal parameter of an anonymous
4108 access-to-subprogram type as illegal for a primitive operation of a
4109 remote access to class-wide type.
4111 2008-03-26 Vincent Celier <celier@adacore.com>
4113 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4114 known, check if it may be a missspelling of a known package name. In
4115 not verbose, not mode, issue warnings only if the package name is a
4116 possible misspelling.
4117 In verbose mode, always issue a warning for a not known package name,
4118 plus a warning if the name is a misspelling of a known package name.
4120 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4121 limited withs or limited withs are parse during one call.
4122 (Parse_Single_Project): Post parse context clause in two passes: non
4123 limited withs before current project and limited withs after current
4126 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4127 project with the name With_Name, even if it is only extended indirectly.
4128 (Recursive_Process): Process projects in order: first single withs, then
4129 current project, then limited withs.
4131 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4132 project with the name With_Name, even if it is only extended indirectly.
4134 2008-03-26 Robert Dewar <dewar@adacore.com>
4136 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4138 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4140 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4141 a generic subprogram that is imported, do not attempt to compile
4144 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4145 imported, do not generate a raise_program_error for the non-existent
4147 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4148 perform minimal name resolution on the generic to avoid spurious
4150 (Find_Actual_Type): the designated type of the actual in a child unit
4151 may be declared in a parent unit without being an actual.
4153 2008-03-26 Robert Dewar <dewar@adacore.com>
4155 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4156 * sinfo.ads, sinfo.adb (From_At_End): New flag
4158 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4160 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4161 operations that have an interface parameter.
4162 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4163 Don't treat No_Return call as raise.
4165 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4166 non-primitive interface primitives to access parameters, not to all
4167 parameters of an access type.
4169 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4171 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4172 declarations of a parent unit are made visible when compiling a child
4173 instance, the parent is not a hidden open scope, even though it may
4174 contain other pending instance.
4176 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4177 hidden open scope for some child instance, it does affect the
4178 visibility status of other stach entries.
4179 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4180 renamed as an object of a specific type.
4182 2008-03-26 Robert Dewar <dewar@adacore.com>
4184 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4185 recursion and raise SE directly.
4186 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4187 set for formal type for IN mode parameter.
4189 2008-03-26 Robert Dewar <dewar@adacore.com>
4191 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4192 (Initialize): New procedure
4193 (Output_Warnings_Off_Warnings): New procedure
4194 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4195 (Output_Non_Modifed_In_Out_Warnings): Ditto
4196 (Warn_On_Unreferenced_Entity): Ditto
4198 2008-03-26 Vincent Celier <celier@adacore.com>
4200 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4203 2008-03-26 Matthew Heaney <heaney@adacore.com>
4205 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
4206 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4207 Marked with clauses as private, and controlled operations as overriding
4209 2008-03-26 Robert Dewar <dewar@adacore.com>
4211 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4213 2008-03-26 Robert Dewar <dewar@adacore.com>
4215 * back_end.adb, back_end.ads: Minor reformatting
4217 * bindgen.adb: Minor clarification of comments
4219 * fname.ads: Minor comment fixes
4221 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4222 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4224 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4225 xsnames.adb: Remove warnings off pragma no longer needed
4227 * a-catizo.ads, a-calari.ads, a-calfor.adb,
4228 a-calfor.ads: Fix header.
4230 2008-03-26 Tristan Gingold <gingold@adacore.com>
4232 * init.c: Do not adjust pc for HPARITH on alpha/vms.
4234 2008-03-26 Robert Dewar <dewar@adacore.com>
4236 * lib-xref.adb: (OK_To_Set_Reference): New function
4237 (Generate_Reference): Don't set referenced from occurrence in Warnings,
4238 Unmodified, or Unreferenced pragma
4240 2008-03-26 Robert Dewar <dewar@adacore.com>
4242 * alloc.ads: Add entries for Warnings_Off_Pragmas table
4244 2008-03-26 GNAT Script <nobody@adacore.com>
4246 * Make-lang.in: Makefile automatically updated
4248 2008-03-26 Robert Dewar <dewar@adacore.com>
4250 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4251 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4252 removed, use Chars (Pragma_Identifier (.. instead, adjustments
4253 throughout to accomodate this change.
4255 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4257 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4258 Einfo.Set_Needs_Debug_Info)
4260 2008-03-26 Robert Dewar <dewar@adacore.com>
4262 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4263 Add description for the new gnatstub option '--header-file'
4264 clarification of -gnatwz/-gnatwZ
4265 Add a "Irix-Specific Considerations" section to document the need to
4266 set LD_LIBRARY_PATH when using the default shared runtime library.
4267 Added documentation for both gcov and gprof.
4269 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4270 messages that are not suppressed when clients are compiled.
4271 Add documentation of s-pooglo s-pooloc
4272 Document the new GNAT.Serial_Communications API.
4273 Add documentation for 'Old attribute
4274 Add description of pragma Optimize_Alignment
4276 * ug_words: Add entries for -gnatw.w -gnatw.W
4278 * usage.adb: Add line for -gnatw.w (warn on warnings off)
4280 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
4283 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4285 * decl.c (maybe_pad_type): Avoid padding an integral type when
4286 bumping its alignment is sufficient.
4288 2008-03-25 Arnaud Charlet <charlet@adacore.com>
4290 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4291 Fix wrong formatting (lines too long)
4293 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4295 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4296 a-calend-vms.adb, a-calend.adb, a-calend.ads,
4297 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4298 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4299 a-cohama.ads, a-comlin.ads, a-coorse.adb,
4300 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4301 a-except-2005.ads, a-except.adb, a-except.ads,
4302 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4303 a-exextr.adb, a-filico.ads, a-finali.ads,
4304 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4305 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4306 a-sequio.ads, a-strbou.ads, a-strfix.adb,
4307 checks.adb, exp_ch3.adb, exp_ch4.adb,
4308 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4309 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4310 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4311 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4312 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4314 2008-03-24 Robert Dewar <dewar@adacore.com>
4316 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4317 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4318 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4319 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4320 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4321 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4322 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4323 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4324 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4325 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4326 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4327 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4328 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4329 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4330 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4331 double spaced if it fits on one line and otherwise single spaced.
4333 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4335 PR documentation/15479
4336 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4337 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4338 (doc/gnat_ugn.info): Renamed from ...
4339 (doc/gnat_ugn_unw.info): ... this.
4340 (doc/gnat_ugn.dvi): Renamed from ...
4341 (doc/gnat_ugn_unw.dvi): ... this.
4342 (doc/gnat_ugn.pdf): Renamed from ...
4343 (doc/gnat_ugn_unw.pdf): ... this.
4344 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4346 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4347 unconditionally to gnat_ugn.info. Fix cross references to the
4348 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
4349 and GNU make manuals to be proper texinfo links.
4350 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4352 2008-03-21 Olivier Hainque <hainque@adacore.com>
4354 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4355 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4357 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
4359 * trans.c (addressable_p): Add notes on addressability issues.
4361 2008-03-21 Olivier Hainque <hainque@adacore.com>
4362 Ed Schonberg <schonberg@adacore.com>
4364 * trans.c (addressable_p): Accept COND_EXPR when both arms
4366 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4367 (call_to_gnu): Do not use name reference in the error message
4368 for a misaligned by_reference_parameter. The actual may be a
4371 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4373 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4375 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4377 * gnat_rm.texi (Implementation Defined Characteristics)
4378 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4380 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4381 (Switches for gnatchop, Installing a library): Likewise.
4383 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
4385 * trans.c (emit_range_check): Do not emit the check if the base type
4386 of the expression is the type against which its range must be checked.
4388 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4390 * decl.c (maybe_pad_type): Use value_factor_p.
4392 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4394 * lang.opt (nostdlib): Move around.
4395 * misc.c (gnat_handle_option): Fix formatting.
4396 (gnat_dwarf_name): Move around.
4397 * trans.c (Case_Statement_to_gnu): Fix formatting.
4398 (gnat_to_gnu): Likewise.
4399 * utils.c (aggregate_type_contains_array_p): Likewise.
4400 (create_subprog_decl): Likewise.
4402 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4404 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4405 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4407 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4409 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4410 BIGGEST_ALIGNMENT when capping the alignment of records with
4411 strict alignment and size clause.
4413 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4415 * lang-specs.h: Pass -gnatwa if -Wall is passed.
4416 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4417 and -Wuninitialized.
4418 (gnat_post_options): Clear warn_unused_parameter.
4420 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4422 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4423 aligned bit-fields, bumping the alignment of the record type if deemed
4425 (value_factor_p): Return false instead of 0.
4427 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4429 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4430 for scalar types with small alignment.
4432 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4434 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4435 from that of the front-end's end label.
4436 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4437 from that of the loop label.
4439 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4441 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4442 comment for the packed array type case.
4443 * utils.c (build_template): Use a loop to strip padding or
4444 containing records for justified modular types.
4446 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4448 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4449 large alignments specified for types.
4450 (validate_alignment): Minor cleanup.
4452 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4454 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4455 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4456 the component for packing, if possible, as well as if a component
4457 size clause is specified.
4458 <E_Record_Subtype>: For an array type used to implement a packed
4459 array, get the component type from the original array type.
4460 Try to get a smaller form of the component for packing, if possible,
4461 as well as if a component size clause is specified.
4462 (round_up_to_align): New function.
4463 (make_packable_type): Add in_record parameter.
4464 For a padding record, preserve the size. If not in_record and the
4465 size is too large for an integral mode, attempt to shrink the size
4466 by lowering the alignment.
4467 Ditch the padding bits of the last component.
4468 Compute sizes and mode manually, and propagate the RM size.
4469 Return a BLKmode record type if its size has shrunk.
4470 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4471 Use Original_Array_Type to retrieve the type in case of an error.
4472 Adjust call to make_packable_type.
4473 (gnat_to_gnu_field): Likewise.
4474 (concat_id_with_name): Minor tweak.
4475 * trans.c (larger_record_type_p): New predicate.
4476 (call_to_gnu): Compute the nominal type of the object only if the
4477 parameter is by-reference. Do the conversion actual type -> nominal
4478 type if the nominal type is a larger record.
4479 (gnat_to_gnu): Do not require integral modes on the source type to
4480 avoid the conversion for types with identical names.
4481 (addressable_p): Add gnu_type parameter. If it is specified, do not
4482 return true if the expression is not addressable in gnu_type.
4483 Adjust recursive calls.
4484 * utils.c (finish_record_type): Remove dead code.
4486 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4489 * decl.c (maybe_pad_type): Avoid padding an integral type when
4490 bumping its alignment is sufficient.
4492 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4494 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4495 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4497 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4498 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4499 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4500 code output strings.
4501 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4502 system-vms_64.ads: Fix typos in ada source code comments.
4503 * sinfo-cn.adb: Remove incomplete sentence.
4505 PR documentation/15479
4506 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4508 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4511 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4513 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4516 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4517 that underlying type is present.
4519 2008-02-26 Tom Tromey <tromey@redhat.com>
4521 * misc.c (internal_error_function): Remove test of
4522 USE_MAPPED_LOCATION.
4523 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4524 (Sloc_to_locus): Remove old location code.
4526 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4528 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4529 `i.e.' by adding comma or `@:' as appropriate.
4530 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4531 plain characters `C', use `@samp{C}'.
4532 * gnat_ugn.texi (File Naming Rules, About gnatkr)
4533 (Krunching Method): Likewise.
4535 * gnat_ugn.texi (Conventions): List environment variables and
4536 metasyntactic variables.
4537 (Compiling Programs): Fix notation of metasyntactic variables.
4538 Add @file where appropriate. Use @file for file extensions,
4540 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4541 instead of @file, @env instead of @code.
4543 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4545 PR documentation/15479
4546 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4547 and `...' with `@dots{}' or `@enddots{}'.
4549 PR documentation/15479
4550 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4551 use @command instead of @code, @option instead of @samp or @code,
4552 @code instead of @var, @samp instead of @file.
4554 PR documentation/15479
4555 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4556 in Makefile rules, by using `&&' rather than `;'.
4558 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4560 PR documentation/15479
4561 * gnat_ugn.texi: In non-code, avoid space before colon.
4562 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4563 (Examples of gnatxref Usage): Use @command{vi} instead of
4565 (Character Set Control): Do not use @code for UTF-8.
4566 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
4568 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4570 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
4572 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4575 * env.c: Add __rtems__ to if defined.
4576 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
4577 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4578 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
4579 pragma Convention as required.
4580 * gsocket.h: Make compile in and out of RTS.
4581 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
4582 Use g-soccon-rtems.ads.
4583 * g-soccon-rtems.ads, system-rtems.ads: New files.
4585 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4588 * Make-lang.in (gnat1): Add $(GMPLIBS).
4590 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
4592 * decl.c (components_to_record): Improve comment.
4594 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
4596 * decl.c (components_to_record): Do not reuse the empty union type
4597 if there is a representation clause on the record.
4598 * trans.c (addressable_p): Return true for INTEGER_CST.
4600 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
4602 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4603 in pointer arithmetics.
4604 * utils2.c (build_allocator): Likewise.
4606 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
4608 * utils.c (build_function_stub): Properly build the call expression.
4610 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
4612 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4613 before converting the expression to the type of the object.
4614 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4615 Stabilize constructors for special wrapping types.
4617 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
4619 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4620 when necessary. Merge some conditional statements. Update comments.
4621 Rename unchecked_convert_p local variable to suppress_type_conversion.
4622 Do not suppress conversions in the In case.
4623 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4624 into account on non strict-alignment platforms.
4626 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4628 * utils.c (aggregate_type_contains_array_p): New predicate.
4629 (create_field_decl): In a packed record, force byte alignment
4630 for fields without specified position that contain an array.
4632 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4634 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4636 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
4639 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4641 (bit_field): New packed boolean type used by cpu_set_t.
4642 (cpu_set_t): New type corresponding to the C type with
4643 the same name. Note that on the Ada side we use a bit
4644 field array for the affinity mask. There is not need
4645 for the C macro for setting individual bit.
4646 (pthread_setaffinity_np): New imported routine.
4648 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
4651 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4652 on OpenBSD as is done on other BSD systems.
4655 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4656 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4660 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4664 * init.c (__gnat_error_handler, __gnat_install_handler,
4665 __gnat_init_float): Define for OpenBSD.
4667 * initialize.c (__gnat_initialize): Define for OpenBSD.
4669 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
4672 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4673 instead of mktemp() or tmpnam() on NetBSD.
4675 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
4677 * trans.c (call_to_gnu): Make the temporary for non-addressable
4678 In parameters passed by reference.
4679 (addressable_p): Return true for STRING_CST and CALL_EXPR.
4681 2007-12-19 Robert Dewar <dewar@adacore.com>
4683 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
4684 Add pragma Warnings (Off) for unassigned IN OUT arguments
4686 * sem_warn.adb (Output_Reference): Suppress messages for internal names
4687 (Check_References): Extensive changes to tune up warnings
4688 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4689 (Has_Pragma_Unmodifed_Check_Spec): New function
4690 (Check_References): Implement pragma Unmodified
4691 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4693 * par-prag.adb: Dummy entry for pragma Unmodified
4695 * sem_prag.adb: Implement pragma Unmodified
4697 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4698 (Proc_Next_Component_Or_Discriminant): Fix typo.
4701 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4703 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4704 because the former already takes care of discarding the result.
4705 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4708 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4710 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
4712 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4713 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4714 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4715 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4716 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4717 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4718 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4719 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4720 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4721 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4722 (Dynamic_Trampolines_Used): Delete.
4724 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4725 Turn on stack probing mechanism on LynxOS.
4727 2007-12-19 Bob Duff <duff@adacore.com>
4729 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4730 the resulting tail recursion by hand. This prevents running out of
4731 memory on deeply nested concatenations, since Field2 is where the left
4732 operand of concatenations is stored.
4733 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4734 clarify that it can only return OK or Abandon.
4736 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4737 operand by iteration, in order to avoid running out of memory on
4738 deeply-nested concatenations. Use the Parent pointer to get back up the
4740 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4741 Resolve_Op_Concat_Rest): New procedures split out of
4742 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4745 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4746 Traverse_Func, because the former already takes care of discarding the
4749 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4750 because the former already takes care of discarding the result.
4751 (Remove_Warning_Messages): Use appropriate subtype for Status and
4754 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4756 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4757 discriminants forces expansion of the aggregate into assignments.
4758 (Init_Record_Controller): If the type of the aggregate is untagged and
4759 is not inherently limited, the record controller is not limited either.
4761 2007-12-19 Robert Dewar <dewar@adacore.com>
4763 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4764 handling compile time known size of record or array (case of front end
4765 layout active, e.g. in GNAAMP).
4767 2007-12-19 Javier Miranda <miranda@adacore.com>
4769 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4770 that forces the construction of static dispatch tables in case of
4773 2007-12-19 Robert Dewar <dewar@adacore.com>
4775 * exp_ch9.adb (Null_Statements): Moved to library level
4776 (Trivial_Accept_OK): New function
4777 (Expand_Accept_Declaration): Use Trivial_Accept_OK
4778 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4780 2007-12-19 Robert Dewar <dewar@adacore.com>
4782 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4783 in complex case where array is Volatile.
4785 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4787 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4788 properly the Ada2005 rules concerning when the current instance of a
4789 record type is aliased.
4791 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4793 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4795 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4797 (P_Variant_Part): Cleaner patch for parenthesized discriminant
4799 2007-12-19 Vincent Celier <celier@adacore.com>
4801 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4802 package is not known
4804 * prj-attr.ads (Unknown_Package): New constant
4805 Do not crash when an unknown package is in several projects
4807 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4810 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4811 existing package Language_Processing.
4813 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4814 Gary Dismukes <dismukes@adacore.com>
4815 Samuel Tardieu <sam@rfc1149.net>
4817 PR ada/15803, ada/15805
4818 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4819 illegal access subtypes when there is a constrained partial view.
4820 (Check_For_Premature_Usage): New procedure inside
4821 Access_Subprogram_Declaration for checking that an access-to-subprogram
4822 type doesn't reference its own name within any formal parameters or
4823 result type (including within nested anonymous access types).
4824 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4825 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4826 context is an access_to_variable, the expression cannot be an
4829 2007-12-19 Bob Duff <duff@adacore.com>
4831 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4832 (Analyze_Concatenation): Use iteration instead of recursion in order
4833 to avoid running out of stack space for deeply nested concatenations.
4835 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4836 Gary Dismukes <dismukes@adacore.com>
4838 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4839 whose renamed entity is a subprogram that requires overriding.
4840 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4841 issuing an error for premature usage and issue a message that says
4842 'type' rather than 'object'.
4844 2007-12-19 Gary Dismukes <dismukes@adacore.com>
4847 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4848 presence of a statically tagged operand (Present (Static_Tag)) with
4849 test for Indeterm_Ancestor_Call when determining whether to propagate
4850 the static tag to tag-indeterminate operands (which forces dispatching
4852 (Check_Controlling_Formals): Ada2005, access parameters can have
4854 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4855 not insert subprogram in list of primitive operations if already there.
4857 2007-12-19 Tristan Gingold <gingold@adacore.com>
4859 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4862 2007-12-19 Thomas Quinot <quinot@adacore.com>
4864 Part of PR ada/33688
4865 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4866 datagram info on Linux.
4868 2007-12-19 Vincent Celier <celier@adacore.com>
4870 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4871 that the source path name is always found in the dependencies.
4873 2007-12-19 Robert Dewar <dewar@adacore.com>
4875 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4876 Fix name of Wide_Wide_Latin_1/9 file names
4877 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4878 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4879 Add missing documentation for Ada.Command_Line.Response_File
4880 Update list of warning letters for Warnings pragma
4881 Add documentation for pragma Unmodified
4883 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
4885 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4887 2007-12-17 Arnaud Charlet <charlet@adacore.com>
4889 * s-vxwork-alpha.ads: Removed, no longer used.
4891 2007-12-15 Jakub Jelinek <jakub@redhat.com>
4893 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
4895 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
4898 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
4899 mlib-tgt-specific.adb.
4901 2007-12-13 Bob Duff <duff@adacore.com>
4903 * trans.c (Attribute_to_gnu): Check for violations of the
4904 No_Implicit_Dynamic_Code restriction. This checking used to be done in
4905 the front end, but is moved here so we can make it more accurate.
4907 2007-12-13 Pascal Obry <obry@adacore.com>
4909 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
4910 version is provided for older GNU/Linux distribution not
4911 supporting thread affinity sets.
4913 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
4915 (bit_field): New packed boolean type used by cpu_set_t.
4916 (cpu_set_t): New type corresponding to the C type with
4917 the same name. Note that on the Ada side we use a bit
4918 field array for the affinity mask. There is not need
4919 for the C macro for setting individual bit.
4920 (pthread_setaffinity_np): New imported routine.
4922 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
4924 (Create_Task): Set the processor affinity mask if information
4927 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
4929 2007-12-13 Robert Dewar <dewar@adacore.com>
4931 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4932 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
4933 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
4934 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
4935 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
4936 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
4937 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
4938 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
4939 for subprogram pointers.
4941 * g-ctrl_c.adb: New file.
4943 * g-ctrl_c.ads (Install_Handler): New body.
4945 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
4946 instead of obsolete function Is_Always_Inlined.
4947 (Freeze_Entity): check for tagged type in imported C subprogram
4948 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
4949 (Freeze_Entity): check for convention Ada subprogram pointer in
4950 imported C subprogram.
4951 (Freeze_Fixed_Point_Type): In the case of a base type where the low
4952 bound would be chopped off and go from negative to zero, force
4953 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
4954 bound) so that the size computation for the base type will take
4955 negative values into account.
4957 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
4958 Bob Duff <duff@adacore.com>
4959 Tristan Gingold <gingold@adacore.com>
4961 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4962 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4963 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4964 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4965 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4966 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4967 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4968 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
4969 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4970 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
4971 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
4972 (Always_Compatible_Rep): New flag to control trampolines globally.
4973 (Dynamic_Trampolines_Used): New flag for implementing the
4974 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
4975 and not yet set correctly for some targets).
4977 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
4978 Simply indirectly call s-stchop when a task is created.
4981 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
4982 appears as an argument (entries A) in an ALI file.
4984 * fe.h (Stack_Check_Limits): Declare new target parameter.
4985 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
4987 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
4988 This variable is declared in C to be sure not subject to elaboration
4990 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
4993 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
4994 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
4996 * s-stchop.ads: Add comments.
4998 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
4999 limit method of stack checking.
5001 * s-stchop-limit.ads: New file.
5003 2007-12-13 Robert Dewar <dewar@adacore.com>
5005 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
5006 a-cihama.adb, g-awk.adb,
5007 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5010 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5012 * sem.adb: Update handling of assigned value/unreferenced warnings
5014 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5016 * lib-xref.ads: Improve documentation for k xref type
5019 Update handling of assigned value/unreferenced warnings
5020 (Generate_Reference): Warning for reference to entity for which a
5021 pragma Unreferenced has been given should be unconditional.
5022 If the entity is a discriminal, mark the original
5023 discriminant as referenced.
5025 * sem_warn.ads, sem_warn.adb
5026 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5027 no entities referenced in package
5028 (Check_One_Unit): Don't give message about no entities referenced in
5029 a package if a pragma Unreferenced has appeared.
5030 Handle new warning flag -gnatw.a/-gnatw.A
5031 Update handling of assigned value/unreferenced warnings
5033 * atree.h: Add flags up to Flag247
5034 (Flag231): New macro.
5036 2007-12-13 Jose Ruiz <ruiz@adacore.com>
5038 * adaint.h: (__gnat_plist_init): Not defined for RTX.
5040 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5043 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5044 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5045 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5046 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5049 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5051 * sysdep.c (winflush_function for RTX): Procedure that does nothing
5052 since we only have problems with Windows 95/98, which are not
5054 (__gnat_ttyname): Return the empty string on Nucleus, just as
5057 2007-12-13 Robert Dewar <dewar@adacore.com>
5059 * a-textio.adb, a-textio.ads:
5060 Extensive changes to private part for wide character encoding
5062 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5063 (Look_Ahead): Fix mishandling of encoded sequences
5064 Move declaration of Wch_Con to private part (should not be visible)
5066 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5067 UTF-8. Probably this is never used, but if it is, brackets is
5070 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5071 setting wide character encoding for no main program case and when
5072 encoding is specified using -W?
5073 Initialize stack limit of environment task if stack limit method of
5074 stack checking is enabled.
5075 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5076 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5077 (Get_Main_Unit_Name): New function.
5078 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5079 (Gen_Output_File): Set Bind_Main_Program to True for .NET
5081 * bindusg.adb: Add line for -Wx switch
5083 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5085 Add new useful constant WC_Longest_Sequences
5087 * switch-b.adb: Clean up handling of -Wx switch
5088 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5090 * switch-c.adb: -gnatg activates warning on assertion errors
5091 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5093 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5095 2007-12-13 Robert Dewar <dewar@adacore.com>
5096 Ed Schonberg <schonberg@adacore.com>
5098 * a-ngcoty.adb: New pragma Fast_Math
5100 * opt.adb: New pragma Fast_Math
5103 Add Implemented_By_Entry to the list of pragmas which do not require any
5105 (Favor_Top_Level): New pragma.
5106 New pragma Fast_Math
5108 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5109 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5110 Expand_Allocator_Expression): Take into account VM_Target
5111 (Expand_Attribute, case 'Identity): Handle properly the case where
5112 the prefix is a task interface.
5113 New pragma Fast_Math
5115 * par.adb (Next_Token_Is): New function
5116 (P_Pragma): Add Skipping parameter
5117 (U_Left_Paren): New procedure
5118 (U_Right_Paren): New procedure
5119 New pragma Fast_Math
5121 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5123 New pragma Fast_Math
5125 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5126 Implemented_By_Entry.
5127 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5128 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5129 items, since it can apply to more than one overloadable entity. Set
5130 new flag Has_Pragma_Inline_Always for Inline_Always case.
5131 (Analyze_Pragma, case Complex_Representation): Improve error message.
5132 (Analyze_Pragma, case Assert): When assertions are disabled build the
5133 rewritten code with Sloc of expression rather than pragma, so new
5134 warning about failing is not deleted.
5135 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5136 protected types and update error message to reflect that. Test whether
5137 the protected type is allowed for the pragma (an error is issued if the
5138 type has any entries, or components that do not have preelaborable
5140 New pragma Fast_Math
5141 (Analyze_Pragma, case No_Return): Handle generic instance
5143 * snames.h, snames.ads, snames.adb:
5144 Add new predefined name for interface primitive _Disp_Requeue.
5145 New pragma Fast_Math
5147 * a-tags.ads, a-tags.adb: New calling sequence for
5148 String_To_Wide_[Wide_]String
5149 (Secondary_Tag): New subprogram.
5151 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5153 New calling sequence for String_To_Wide_[Wide_]String
5154 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5155 the use of the secondary stack for image routines.
5157 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5158 calling sequence for String_To_Wide_[Wide_]String
5160 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5162 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5163 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5165 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5166 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5167 to improve error recovery
5169 * par-util.adb (Next_Token_Is): New function
5170 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5172 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5173 semicolon if missing
5174 (P_Pragma): Implement new Skipping parameter
5175 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5176 Fix location of flag for unrecognized pragma message
5178 * par-tchk.adb (U_Left_Paren): New procedure
5179 (U_Right_Paren): New procedure
5181 2007-12-13 Geert Bosch <bosch@adacore.com>
5184 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5185 the second or later Scaled_Divide would omit leading zeroes,
5186 resulting in too few digits produced and a Layout_Error as result.
5187 (Put): Initialize Pos.
5189 2007-12-13 Robert Dewar <dewar@adacore.com>
5191 atree.ads, atree.adb (Flag231..Flag247): New functions
5192 (Set_Flag231..Set_Flag247): New procedures
5193 (Basic_Set_Convention): Rename Set_Convention to be
5194 Basic_Set_Convention
5195 (Nkind_In): New functions
5196 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5198 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5200 of obsolete function Is_Always_Inlined
5201 (Register_Predefined_DT_Entry): Initialize slots of the second
5202 secondary dispatch table.
5203 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5204 (Expand_N_Function_Call): Remove special provision for stack checking.
5206 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5207 Include _Disp_Requeue in the list of predefined operations.
5208 (Find_Interface_ADT): Modified to fulfill the new specification.
5209 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5211 * par-ch4.adb, nlists.ads, nlists.adb:
5212 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5214 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5215 Fix location of flag for unrecognized pragma message
5217 * sem_ch7.adb: Use Nkind_In
5219 2007-12-13 Vincent Celier <celier@adacore.com>
5222 Indicate what flags are used by the Project Manager, gprbuild and
5224 (Opt.Follow_Links_For_Dirs): New flag
5225 (Warn_On_Assertion_Failure): New flag
5226 (Wide_Character_Encoding_Method_Specified): New flag
5227 (Suppress_All_Inlining): New switch set by -fno-inline
5228 (Real_VMS_Target): New flag
5229 New pragma Fast_Math
5231 2007-12-13 Robert Dewar <dewar@adacore.com>
5233 * back_end.adb: Recognize -fno-inline
5235 2007-12-13 Robert Dewar <dewar@adacore.com>
5237 * checks.adb: Fix optimization problem with short-circuited form
5239 2007-12-13 Bob Duff <duff@adacore.com>
5241 * clean.adb (Usage): Add line for -aP
5242 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5243 with a parameter "procedure Usage", instead of passing a pointer to a
5244 procedure. This is to eliminate trampolines (since the Usage procedure
5245 is often nested in a main procedure, and it would be inconvenient to
5248 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5249 to be generic, with a parameter "procedure Callback (...)", instead of
5250 passing a pointer to a procedure. This is to eliminate trampolines
5251 (since the Callback procedure is usually nested).
5253 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
5254 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5255 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5257 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5258 Use the generic Heap_Sort_G instead of Heap_Sort_A.
5260 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5262 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5263 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5264 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5265 (Renamed_In_Spec): New flag
5266 (Has_Pragma_Inline_Always): New flag
5267 Add missing doc for pragma Obsolescent_Warning
5268 Add missing doc for 17 additional unused flags (230-247)
5269 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5270 Alphabetize with clauses.
5271 Separate Is_Thunk and Has_Thunks flags
5272 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5273 (Related_Interface): Renamed to Related_Type.
5274 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5275 (Set_Is_Flag): Restrict the assertion.
5277 2007-12-13 Vincent Celier <celier@adacore.com>
5279 * errout.adb (Output_Source_Line): Do not keep a trailing space after
5280 the source line number if the source line is empty.
5282 2007-12-13 Geert Bosch <bosch@adacore.com>
5284 * eval_fat.adb (Decompose_Int): Handle argument of zero.
5285 (Compose): Remove special casing of zero.
5286 (Exponent): Likewise.
5287 (Fraction): Likewise.
5288 (Machine): Likewise.
5289 (Decompose): Update comment.
5291 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5293 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5294 limited ancestor part, initialize controllers of enclosing record
5295 before expanding ancestor aggregate.
5296 (Gen_Assign): If a component of the aggregate is box-initialized, add
5297 code to call Initialize if the component is controlled, and explicit
5298 assignment of null if the component is an access type.
5300 Handle properly aggregates for limited types that appear in object
5301 declarations when the aggregate contains controlled values such as
5303 When expanding limited aggregates into individual components, do not
5304 call Adjust on controlled components that are limited.
5306 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5308 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5310 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5312 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5313 predefined primitive _Disp_Requeue.
5314 (Make_Predefined_Primitive_Specs): Create the spec for predefined
5315 primitive _Disp_Requeue.
5316 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5317 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5318 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5319 an interface type. In case of limited interfaces we now declare all the
5320 predefined primitives associated with synchronized interfaces as
5322 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5324 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5325 tagged type is an interface type and there is no user-defined equality
5327 Add also bodies of predefined primitives associated with synchronized
5329 (Freeze_Record_Type): Do not build bodies of predefined primitives of
5330 interface types because they are now defined abstract.
5331 Add missing documentation.
5332 (Expand_Record_Controller): Update occurrence of Related_Interface
5334 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5335 (Expand_N_Object_Declaration): Take into account VM_Target when handling
5336 class wide interface object declaration.
5337 (Expand_Previous_Access_Type): Do not create a duplicate master entity
5338 if the access type already has one.
5339 (Expand_N_Object_Declaration): Defend against attempt to validity check
5340 generic types. Noticed for -gnatVcf specified with previous errors.
5342 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5344 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5345 Expand_Allocator_Expression): Take into account VM_Target
5347 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5348 secondary stack when VM_Target /= No_VM
5350 2007-12-13 Javier Miranda <miranda@adacore.com>
5351 Ed Schonberg <schonberg@adacore.com>
5353 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5354 Is_Complation_Unit by Is_Library_Level_Entity in the code
5355 that decides if the static dispatch tables need to be built.
5356 (Wrap_Transient_Declaration): Do not generate a finalization call if
5357 this is a renaming declaration and the renamed object is a component
5358 of a controlled type.
5360 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5362 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5363 In the case where the renamed subprogram is a dereference, call
5364 Force_Evaluation on the prefix.
5366 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5367 Ed Schonberg <schonberg@adacore.com>
5369 * exp_ch9.adb (Expand_N_Asynchronous_Select,
5370 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5371 comment reformatting.
5372 (Set_Privals): Inherit aliased flag from formal. From code reading.
5373 (Build_Simple_Entry_Call): Out parameters of an access type are passed
5374 by copy and initialized from the actual. This includes entry parameters.
5375 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5376 and Ada 2005 models of requeue.
5377 (Null_Statements): Still connsider do-end block null if it contains
5378 Unreferenced and Warnings pragmas.
5379 (Expand_N_Accept_Statement): Do not optimize away null do end if
5380 dispatching policy is other than defaulted.
5381 (Expand_N_Timed_Entry_Call): When the triggering statement is a
5382 dispatching call, manually analyze the delay statement.
5383 (Find_Parameter_Type): Move subprogram to Sem_Util.
5385 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5386 Javier Miranda <miranda@adacore.com>
5388 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5389 _Disp_Requeue occupies dispatch table slot number 15. Move
5390 _Disp_Timed_Select to slot 16.
5391 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5392 generate the spec and body of _Disp_Reqeueue.
5393 (Make_DT): Build and initialize the second dispatch table.
5394 Handle initialization of RC_Offset when the parent
5395 is a private type with variable size components.
5396 (Make_Secondary_DT): Complete documentation. Add support to
5397 initialize the second dispatch table.
5398 (Make_Tags): Generate the tag of the second dispatch table.
5399 (Register_Primitive): Add support to register primitives in the
5400 second dispatch table.
5402 2007-12-13 Pascal Obry <obry@adacore.com>
5404 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5405 Windows. This signal is used by gnatmake to kill child processes for
5408 2007-12-13 Javier Miranda <miranda@adacore.com>
5410 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5411 support for generic dispatching constructor calls in which we need to
5412 locate the tag of a secondary dispatch table associated with an
5413 interface type to properly dispatch the call.
5414 (Expand_N_Attribute_Reference [case Address],
5415 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5416 handling of VM targets.
5418 2007-12-13 Robert Dewar <dewar@adacore.com>
5419 Ed Schonberg <schonberg@adacore.com>
5421 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5424 * ug_words: Add entries for -gnatw.a -gnatw.A
5426 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5427 literal is a subtype with non-static constraints, use the base type of
5428 the context as the base of the string subtype, to prevent type
5430 (Resolve_Actuals): If the actual is an entity name, generate a
5431 reference before the actual is resolved and expanded, to prevent
5432 spurious warnings on formals of enclosing protected operations.
5433 (Analyze_Overloaded_Selected_Component): If type of prefix if
5434 class-wide, use visible components of base type.
5435 (Resolve_Selected_Component): Ditto.
5436 (Resolve_Short_Circuit): Detect case of pragma Assert argument
5437 evaluating to False, and issue warning message.
5439 * usage.adb: Add lines for -gnatw.a and -gnatw.A
5441 2007-12-13 Emmanuel Briot <briot@adacore.com>
5443 * g-calend.ads (No_Time): New constant, to represent an uninitialized
5446 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5448 (Month_Name_To_Number): New subprogram
5450 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5451 letter to upper-case.
5453 2007-12-13 Robert Dewar <dewar@adacore.com>
5454 Ed Schonberg <schonberg@adacore.com>
5456 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5458 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5459 context is a limited view, use non-limited view when available. If the
5460 non-limited view is an unconstrained array, this enforces consistency
5461 requirements in 3.10.2 (27).
5462 (Layout_Type): For an access type whose designated type is a limited
5463 view, examine its declaration to determine if it is an unconstrained
5464 array, and size the access type accordingly.
5465 (Layout_Type): Do not force 32-bits for convention c subprogram
5466 pointers in -gnatdm mode, only if real vms target.
5468 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5469 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5470 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5471 violations of the No_Implicit_Dynamic_Code restriction.
5472 (Resolve_Attribute, case 'Access): If designated type of context is a
5473 limited view, use non-limited view when available. If the non-limited
5474 view is an unconstrained array, this enforces consistency requirements
5476 (Layout_Type): For an access type whose designated type is a limited
5477 view, examine its declaration to determine if it is an unconstrained
5478 array, and size the access type accordingly.
5480 2007-12-13 Vincent Celier <celier@adacore.com>
5482 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5483 object directory of main project does not exist.
5484 On VMS, correctly set then environment variable for the source
5487 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5489 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5490 set to True this procedure will create the value of type REG_EXPAND_SZ.
5491 It was only possible to create REG_SZ values before.
5493 2007-12-13 Robert Dewar <dewar@adacore.com>
5495 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5496 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5497 namet-sp.adb, namet-sp.ads: New files.
5499 * g-speche.adb: Use generic routine in g-spchge
5501 * s-wchcnv.ads, s-wchcnv.adb:
5502 Minor code cleanup (make formal type consistent with spec)
5504 * namet.adb: Update comments.
5506 * par-endh.adb (Evaluate_End_Entry): Use new
5507 Namet.Sp.Is_Bad_Spelling_Of function
5509 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5511 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5512 ancestor is an access type initialized with a box, set its type
5513 explicitly, for use in subsequent expansion.
5514 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5517 2007-12-13 Robert Dewar <dewar@adacore.com>
5519 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5522 2007-12-13 Robert Dewar <dewar@adacore.com>
5524 * inline.adb (Back_End_Cannot_Inline): Use new flag
5525 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5527 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5528 Has_Pragma_Inline_Always instead.
5529 of obsolete function Is_Always_Inlined
5530 (Build_Body_To_Inline): Same change
5531 (Cannot_Inline): Same change
5532 Do not give warning on exception raise in No_Return function
5534 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5535 component has two inconsistent component clauses in the same record
5536 representation clause, favor the message that complains about
5537 duplication rather than inconsistency.
5539 (Record_Representation_Clause): Do not warn on missing component
5540 clauses for inherited components of a type extension.
5541 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5542 an overloadable item if it is a pragma that can apply to multiple
5543 overloadable entities (e.g. Inline) because a pragma cannot be on
5544 more than one chain at a time.
5545 (Validate_Unchecked_Conversion): Add code to warn on unchecked
5546 conversion where one of the operands is Ada.Calendar.Time.
5547 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5548 For now, ignore Component_Size clause on VM targets, as done for
5551 2007-12-13 Emmanuel Briot <briot@adacore.com>
5552 Vincent Celier <celier@adacore.com>
5554 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5556 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5558 (Hash): Move instantiation of System.HTable.Hash from spec to body
5559 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5560 systems, since we do not need to recompute the Name_Id for the canonical
5562 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5563 as a parameter. This parameter is in fact always "ada" in all calls, and
5564 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5565 while loading a project with 40000 files
5567 * prj-attr.adb: Fix name of attribute Dependency_Driver
5568 Change the kind of indexing for attribute Root
5570 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5571 variables already declared, in case constructions.
5573 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5574 Current_Object_Path_File to No_Path.
5576 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5577 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5579 * prj-makr.adb: new parameter Current_Dir
5581 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5582 Ada sources when language is not Ada.
5583 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5584 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5585 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5586 (Locate_Directory): Always resolve links when computing Canonical_Path
5587 (Look_For_Sources): Make sure that Name_Buffer contains the file name
5588 in Source_Files before checking for the presence of a directory
5590 Optimize calls to Name_Find when on case sensitive systems.
5591 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5593 (Prj.Nmsc.Check): new parameter Current_Dir
5594 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5595 cannot be empty and the spec suffix cannot be the same as the body or
5597 (Get_Unit): When a file name can be of several unit kinds (spec, body or
5598 subunit), always consider the longest suffix.
5599 (Check_Configuration): Do not issue an error if there is no compiler
5600 for a language. Just issue a warning and ignore the sources for the
5602 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5604 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5605 (Unit_Exceptions): New hash table
5606 (Check_Naming_Schemes): Check if a file that could be a unit because of
5607 the naming scheme is not in fact a source because there is an exception
5609 (Look_For_Sources): Put the unit exceptions in hash table
5611 (Get_Unit_Exceptions): Give initial value No_Source to local variable
5612 Other_Part to avoid exception when code is compiled with validity
5614 (Get_Sources_From_File): Check that there is no directory information
5616 (Look_For_Sources): Check that there is no directory information in the
5617 list of file names in Source_Files.
5618 (Look_For_Sources): In multi-language mode, do not allow exception file
5619 names that are excluded.
5620 (Excluded_Sources_Htable): New hash table
5621 (Search_Directories.Check_File): New procedure to simplify
5623 (Search_Directories): Do not consider excluded sources
5624 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5626 (Get_Exceptions): Set component Lang_Kind of Source_Data
5627 (Get_Unit_Exceptions): Ditto
5628 (Search_Directories): Ditto
5630 * prj-pars.adb: new parameter Current_Dir
5632 * prj-part.ads, prj-part.adb:
5633 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5634 (Opt.Follow_Links_For_Dirs): New flag
5635 (Project_Path_Name_Of): Cache information returned by this routine as
5636 Locate_Regular_File is a costly routine. The code to output a log
5637 information and the effective call to Locate_Regular_File is now
5638 factorized into a routine (code clean-up).
5639 (Parse, Parse_Single_Project): new parameter Current_Dir
5640 When main project file cannot be found, indicate in the error
5641 message the project path that was used to do the search.
5643 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5644 (Prj.Proc.Process*): new parameter Current_Dir
5646 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5648 2007-12-13 Bob Duff <duff@adacore.com>
5650 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5651 procedure to be called from the back end to check the
5652 No_Implicit_Dynamic_Code restriction.
5654 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5656 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5657 Fixes another case where RTE_Available_Call was ignored instead of being
5661 * rtsfind.ads: Add new entries.
5663 2007-12-13 Robert Dewar <dewar@adacore.com>
5665 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5666 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5668 * scn.adb: Implement BOM recognition
5670 2007-12-13 Thomas Quinot <quinot@adacore.com>
5671 Ed Schonberg <schonberg@adacore.com>
5673 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5674 subprogram body that acts as its own spec may not have a non-private
5675 WITH clause on a private sibling.
5676 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5677 child unit is a renaming, create an implicit with_clause on that
5678 parent, and not on the unit it renames, to prevent visibility errors
5679 in the current unit.
5681 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5683 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5684 renaming declaration, use the Slocs of the formal parameters from the
5685 declaration of the formal subprogram when creating the formal parameter
5686 entities in the renaming declaration.
5687 (Analyze_Formal_Type_Declaration): Change the placement of the error
5688 message concerning illegal known discriminants. It is now posted on the
5689 type rather than on the first discriminant. This change ensures early
5691 (Freeze_Subprogram_Body): If the generic subprogram is nested within
5692 the package body that contains the instance, do not generate an
5693 out-of-place freeze node for the enclosing package.
5694 (Collect_Previous_Instantiations): Ignore internal instantiations
5695 generated for formal packages.
5696 (Validate_Derived_Type_Instance): Add a check that when a formal
5697 derived type is Known_To_Have_Preelab_Init then the actual type must
5698 have preelaborable initialization, and issue an error when this
5699 condition is violated.
5701 2007-12-13 Robert Dewar <dewar@adacore.com>
5703 * s-imenne.adb, s-imenne.ads: New files.
5705 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5706 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
5707 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
5708 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
5709 s-imgwch.ads: New calling sequence for Image routines to avoid sec
5712 2007-12-13 Javier Miranda <miranda@adacore.com>
5713 Ed Schonberg <schonberg@adacore.com>
5715 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5716 generation of spurious error if parent is an interface type; caused
5717 because predefined primitive bodies will be generated later by
5719 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5721 (Derive_Subprograms): Handle derivations of predefined primitives
5722 after all the user-defined primitives to ensure that they are
5723 found in proper order in instantiations.
5724 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5725 of Related_Interface to Related_Type.
5726 (Record_Type_Declaration): Minor reordering of calls to decorate the
5727 Tag component because the entity must have set its Ekind attribute
5728 before setting its Is_Tag attribute.
5729 (Analyze_Subtype_Declaration): In the case of subtypes with
5730 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5732 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5733 Ed Schonberg <schonberg@adacore.com>
5735 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5736 statement to the list of contexts where a selected component with a
5737 concurrent tagged type prefix should yield a primitive operation.
5738 (Find_Primitive_Operation): Handle case of class-wide types.
5739 (Analyze_Overloaded_Selected_Component): If type of prefix is
5740 class-wide, use visible components of base type.
5741 (Resolve_Selected_Component): Ditto.
5742 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5743 formal of a generic subprogram. find candidate interpretations by
5744 scanning the list of generic formal declarations.:
5745 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5746 type from a limited_with_clause, and the full view is available, use it
5747 for subsequent semantic checks.
5748 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5749 (Find_Primitive_Operation): New function.
5750 (Analyze_Overloaded_Selected_Component): insert explicit dereference
5751 only once if several interpretations of the prefix yield an access type.
5752 (Try_Object_Operation): Code and comment cleanup.
5753 (Analyze_Selected_Component): Reorder local variables. Minot comment and
5754 code reformatting. When the type of the prefix is tagged concurrent, a
5755 correct interpretation might be available in the primitive and
5756 class-wide operations of the type.
5758 2007-12-13 Robert Dewar <dewar@adacore.com>
5759 Ed Schonberg <schonberg@adacore.com>
5761 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5762 renaming entry as subprogram using rename-as-body if subprogram spec
5764 (Use_One_Type): The clause is legal on an access type whose designated
5765 type has a limited view.
5766 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5767 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5768 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5769 operation denoted by a selected component.
5770 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5771 it can be an expression, possibly overloaded, that returns a task or
5774 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5775 Gary Dismukes <dismukes@adacore.com>
5777 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5778 requeue statement is dispatching. Do not emit an error when the name is
5779 not an entry and the context is a dispatching select. Add code to
5780 perform subtype conformance between the formals of the current entry
5781 and those of the target interface primitive.
5782 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5783 Timed_Entry_Call): Analyze the triggering statement as the first step of
5784 the processing. If this is a dispatching select, postpone the analysis
5785 of all select statements until the Expander transforms the select. This
5786 approach avoids generating duplicate identifiers after the Expander has
5787 replicated some of the select statements. In case the Expander is
5788 disabled, perform regular analysis.
5789 (Check_Triggering_Statement): New routine.
5790 (Analyze_Requeue): Exclude any interpretations that are not entries when
5791 checking overloaded names in a requeue. Also test type conformance for
5792 matching interpretations rather than requiring subtype conformance at
5793 that point to conform with the RM's resolution rule for requeues.
5795 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5797 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5798 inherited operation is a defaulted tag-indeterminate call, and there is
5799 a statically tagged actual, use the static tag as a controlling actual
5800 for the defaulted actual.
5802 2007-12-13 Geert Bosch <bosch@adacore.com>
5804 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5805 context, so do not call Check_Non_Static_Context.
5807 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5809 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5810 whether formal E is an entity which may have parameters.
5812 2007-12-13 Bob Duff <duff@adacore.com>
5813 Javier Miranda <miranda@adacore.com>
5814 Robert Dewar <dewar@adacore.com>
5816 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5817 (Set_Convention): New procedure to set the Convention flag, and in
5818 addition make sure the Favor_Top_Level flag is kept in sync (all
5819 foreign-language conventions require Favor_Top_Level = True).
5820 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5822 (Collect_Interfaces_Info): Minor update to handle the two secondary
5823 dispatch tables. Update occurrence of Related_Interface to Related_Type.
5824 (Generate_Parent_Ref): Add parameter to specify entity to check
5825 (Is_Preelaborable_Expression): Allow the name of a discriminant to
5826 initialize a component of a type with preelaborable initialization.
5827 This includes the case of a discriminal used in such a context.
5828 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5829 latest Ada 2005 rules about renaming and 'Access of
5830 discriminant-dependent components.
5831 (Check_Nested_Access): Add handling when there are no enclosing
5832 subprograms (e.g. case of a package body).
5833 (Find_Parameter_Type): Factor routine from several other compiler files.
5834 Remove routine from Find_Overridden_Synchronized_Primitive.
5836 2007-12-13 Thomas Quinot <quinot@adacore.com>
5838 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5839 an invalid access to an uninitialized slot in the
5840 Source_File_Index_Table.
5842 2007-12-13 Thomas Quinot <quinot@adacore.com>
5844 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5846 2007-12-13 Bob Duff <duff@adacore.com>
5848 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5849 access-to-subprogram types in this package.
5851 2007-12-13 Olivier Hainque <hainque@adacore.com>
5853 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5854 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5855 Stack_Overlay_Address and document that we are using an internal
5857 (Byte_Size, Unsigned_32_Size): Remove, now useless.
5858 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5859 consistently throughout the various implementation pieces.
5861 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5862 overlay we are using to fill the stack area with patterns.
5863 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5864 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5865 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5867 2007-12-13 Robert Dewar <dewar@adacore.com>
5869 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5871 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5874 (Create_Task): Take into account tasks created by foreign threads.
5875 Code clean up: use constants instead of hard coded values.
5877 2007-12-13 Robert Dewar <dewar@adacore.com>
5879 * styleg.adb (Check_Comment): More liberal rules for comment placement
5881 2007-12-13 Olivier Hainque <hainque@adacore.com>
5883 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
5884 of Procedure Value instead of Frame Pointer as the invocation
5885 identifier associated with the instruction pointer in each traceback
5888 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
5889 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
5890 Pointer as the invocation identifier passed to tbk$symbolize.
5892 * s-traent-vms.ads, s-traent-vms.adb
5893 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
5894 Procedure Value instead of Frame Pointer as the invocation identifier
5895 passed to tbk$symbolize.
5897 2007-12-13 Robert Dewar <dewar@adacore.com>
5899 * tbuild.ads, tbuild.adb:
5900 Fix location of flag for unrecognized pragma message
5902 2007-12-13 Robert Dewar <dewar@adacore.com>
5904 * treepr.ads, treepr.adb: (pl): implement use of positive value
5907 2007-12-13 Robert Dewar <dewar@adacore.com>
5909 * xeinfo.adb: Remove warnings
5910 * xnmake.adb: Remove warnings
5911 * xsinfo.adb: Remove warnings
5912 * xtreeprs.adb: Remove warnings
5913 * xsnames.adb: Remove warnings
5915 * a-ngcoar.adb: Fix typo.
5916 * s-interr.adb: Minor reformatting
5917 * env.c: Minor reformatting.
5918 * g-bytswa.adb: Minor reformatting.
5919 * g-rannum.ads: Minor documentation improvements
5920 * s-tasinf-mingw.adb: Minor header fix
5921 * a-clrefi.adb: Minor reformatting
5922 * g-sttsne.ads: Minor documentation improvement
5923 * g-sttsne-locking.ads: Minor documentation improvement
5924 * g-soliop-solaris.ads: Minor documentation improvement
5925 * g-soliop-mingw.ads: Minor documentation improvement
5926 * g-soliop.ads: Minor documentation improvement
5927 * exp_aggr.ads: Minor reformatting
5928 * debug.adb: Add documentation for the gprbuild debug flags
5929 * exp_ch2.adb: Use Nkind_In to simplify code throughout
5930 * exp_pakd.adb: Minor reformatting
5932 * g-altive.ads, g-alleve.adb: Remove assertions.
5933 Add comment about minor differences between targets regarding
5934 floating-point operations.
5936 * g-thread.adb: Remove pragma unreferenced.
5937 * lib.ads: Minor reformatting
5938 * par-ch9.adb: Minor reformatting of error messages
5939 * sem_case.adb: Minor reformatting
5940 * s-fileio.adb: Minor reformattinng
5941 * s-vmexta.ads: Minor typo
5943 Take into account 'Success' value as per new GNAT warning.
5945 2007-12-13 Vincent Celier <celier@adacore.com>
5947 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
5950 2007-12-13 Robert Dewar <dewar@adacore.com>
5951 Bob Duff <duff@adacore.com>
5953 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
5954 Document that suffixes may be terminations of each others
5955 Add doc for -gnatw.a and -gnatw.A
5956 Document gnatbind -Wx switch
5957 Document BOM recognition
5958 Document pragma Implemented_By_Entry.
5961 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
5962 Add doc for pragma Unreferenced suppressing no entities referenced msg
5963 Add documentation of GNAT.Directory_Operations.Iteration
5964 Add documentation of GNAT.Random_Numbers
5965 Add documentation for pragma Shared.
5966 Correct documentation for Bit_Order
5967 Add documentation for the Pool_Address attribute.
5968 Fix and improve documentation of pragma machine_attribute.
5969 New pragma Fast_Math
5970 Document BOM recognition
5972 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
5973 Add /Wide_Character_Encoding for binder
5974 Add qualifier for the new gnatpp option --no-separate-loop-then
5976 2007-12-13 Matthew Heaney <heaney@adacore.com>
5978 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
5979 which generic formal operations are called for each operation.
5981 2007-12-13 Olivier Hainque <hainque@adacore.com>
5983 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
5984 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
5986 2007-12-13 Emmanuel Briot <briot@adacore.com>
5988 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
5989 Reference_Dir unless we actually need it.
5991 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5992 Tristan Gingold <gingold@adacore.com>
5994 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
5997 a-calend-vms.adb: Remove pragma warning off and add pragma
6000 2007-12-13 Robert Dewar <dewar@adacore.com>
6002 * impunit.adb: Add entries for missing units
6004 * Makefile.rtl: Add new run-time units.
6006 * Make-lang.in: Update dependencies.
6008 2007-12-13 Bob Duff <duff@adacore.com>
6010 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6011 types, set Can_Use_Internal_Rep appropriately, based on
6012 Always_Compatible_Rep_On_Target.
6014 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6015 Arnaud Charlet <charlet@adacore.com>
6017 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6018 it to the front end and setting the aamp_target environment variable
6019 to the switch's argument to ensure that gnaampbind and gnaamplink will
6020 take the specified library into account.
6021 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6022 target, since the CIL compiler supports an "object" file (.il files).
6024 2007-12-13 Vincent Celier <celier@adacore.com>
6026 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6027 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6029 2007-12-13 Geert Bosch <bosch@adacore.com>
6031 * s-parame-vxworks.adb:
6032 Update comments to reflect usage of this package by Nucleus.
6034 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6036 * i-vxwork.ads: Kill new warning on Convention C, since changing the
6037 spec would break code.
6039 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6041 * system-vxworks-alpha.ads: Removed.
6043 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
6045 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6047 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
6050 * sem_ch3.adb (Designates_T): New function.
6051 (Mentions_T): Factor reusable part of the logic into Designates_T.
6052 Consider non-access parameters and access and non-access result.
6053 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6054 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6056 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6058 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
6061 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6062 the new implementation of target-specific calls.
6064 2007-12-07 Olivier Hainque <hainque@adacore.com>
6066 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6067 the designated full view, only follow a second level Full_View link
6068 for Non_Limited_Views of from_limited_with references.
6070 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
6073 * sem_ch6.adb (Process_Formals): Prevent an access type formal
6074 to be initialized with an access to constant object.
6076 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6077 when an access to constant is used to initialize an access
6081 * a-direct.adb (Compose): Containing_Directory can be an empty string.
6083 2007-12-07 Olivier Hainque <hainque@adacore.com>
6086 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6087 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6088 this is from an alignment clause on the GNAT entity.
6089 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6090 to distinguish the case where we set it from the type's alignment.
6091 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6092 whether this alignment was set from an explicit alignment clause.
6094 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6096 * decl.c (make_packable_type): Revert last change.
6097 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6098 * utils.c (finish_record_type): Retrieve the real name of the type.
6100 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6102 * trans.c (lvalue_required_p): Take base node directly instead
6103 of its parent. Rename second parameter to 'gnu_type'.
6104 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6105 <N_Slice>: Likewise.
6106 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6107 Adjust calls to lvalue_required_p.
6109 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6112 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6113 parameters of an entry call.
6115 2007-12-03 Robert Dewar <dewar@adacore.com>
6116 Samuel Tardieu <sam@rfc1149.net>
6119 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6120 of variables declared in a library-level package.
6122 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6124 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6125 of Empty_String'Unchecked_Access.
6127 * Makefile.in: Add support for sh4-linux.
6129 * system-linux-sh4.ads: New file.
6131 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6134 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6135 and its argument must not be free()ed.
6137 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6139 * decl.c (make_packable_type): Retrieve the real name of the type.
6140 (maybe_pad_type): Simplify similar code.
6142 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6145 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6146 than an identifier is used after "case" in a variant_part.
6149 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6150 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6151 attribute name or not depending on the new map.
6153 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6154 returning a string or a type will not be called with improper
6157 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6159 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6162 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6163 Signal an error when attribute argument is a fixed-point value of
6167 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6168 a derived ordinary fixed point type.
6170 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6171 RM_Size when a Small clause is found.
6173 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6176 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6177 Pass 'false' for the new allocate_struct_function parameter.
6178 * utils.c (build_function_stub): Likewise.
6180 2007-11-25 Richard Guenther <rguenther@suse.de>
6182 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6183 (gnat_poplevel): Likewise.
6185 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6187 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6188 strict alignment, no alignment clause and a known static size, cap
6189 the type alignment to the greatest power of 2 factor of the size.
6190 (gnat_to_gnu_field): If the field has a component clause, is aliased
6191 or of a type with strict alignment, require that its size be equal to
6193 (validate_size): Use the type size as the minimum size for a type with
6196 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6198 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6199 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6200 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6201 Use 'Access instead of 'Unchecked_Access in second and third
6202 arguments of pthread_sigmask.
6204 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
6206 * decl.c (ceil_alignment): New function.
6207 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6208 (make_packable_type): Likewise.
6210 2007-11-22 Olivier Hainque <hainque@adacore.com>
6212 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6213 to fit in 80 columns.
6215 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
6217 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6218 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6220 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
6223 * misc.c (gnat_adjust_rli): Delete.
6224 (gnat_init): Do not initialize the translation code here.
6225 Do not call set_lang_adjust_rli.
6226 * trans.c (init_code_table): Make static.
6227 (gnat_init_stmt_group): Delete.
6228 (gigi): Initialize the translation code entirely here.
6229 Emit debug info for the common types here instead of...
6230 * utils.c (gnat_init_decl_processing): ...here.
6231 * gigi.h (init_code_table): Delete.
6232 (gnat_init_stmt_group): Likewise.
6234 2007-11-16 Olivier Hainque <hainque@adacore.com>
6236 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6237 retrieving an allocator return value from a super-aligned address from
6239 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6240 expect a super-aligned address for a fat or thin pointer.
6242 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
6244 * trans.c (call_to_gnu): Always set the source location on the call
6245 expression. If the function returns-by-target, also set it on the
6248 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
6250 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6251 sections of non-supported Interix target.
6253 * s-osinte-interix.ads: Removed.
6255 * i-cstrin.ads (chars_ptr): Make it a C convention type.
6257 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
6259 * a-tasatt.adb: Add a comment at the beginning of the package
6260 explaining why in general 'Unchecked_Access must be used instead
6263 * sem_prag.adb (Process_Convention): Move the test for the
6264 entity on which the Convention pragma applies down to also
6265 forbid pragma Convention on enumeration literals reached
6268 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
6270 * a-tasatt.adb: Revert previous change for this file as it will
6271 generate an error when this package is instantiated from a
6274 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
6276 * a-tasatt.adb: Type Wrapper should be declared in comment instead
6277 of already declared type Node_Access.
6278 Use 'Access instead of 'Unchecked_Access when applicable. Local
6279 lifetime is the one of the package.
6280 (Set_Value): W is allocated on the heap.
6282 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6284 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6286 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6289 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6291 (elaboration code): Timer_Queue lifetime is the one of the
6294 * tracebak.c (i386 alternative): Remove useless comparaison
6295 which is always false; LOWEST_ADDRESS is 0 and is never greater
6296 than an unsigned integer.
6298 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6299 embedded check for "Ada_Version >= Ada_05".
6301 2007-11-07 Olivier Hainque <hainque@adacore.com>
6303 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6304 craft and expand comment.
6306 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
6308 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6310 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
6312 * misc.c (gnat_handle_option): Replace call to abort with
6313 call to gcc_unreachable.
6314 (gnat_init): Likewise.
6315 (gnat_expand_expr): Likewise.
6316 (fp_prec_to_size): Likewise.
6317 (fp_size_to_prec): Likewise.
6319 2007-10-23 Richard Guenther <rguenther@suse.de>
6322 * tracebak.c: #undef abort after including system.h.
6324 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
6326 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6327 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6329 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6331 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
6333 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6334 Set the protection status of the guard page based on the value of On.
6336 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6338 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6339 (Exit_Task): Pass False to Hide_Yellow_Zone.
6341 2007-10-15 Robert Dewar <dewar@adacore.com>
6343 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6344 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6345 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
6346 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
6347 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
6348 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
6349 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
6350 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
6351 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
6352 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6353 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
6354 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
6355 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
6356 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
6357 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
6358 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6360 Add Unreferenced and Warnings (Off) pragmas for cases of
6361 variables modified calls where they are IN OUT or OUT parameters and
6362 the resulting values are not subsequently referenced. In a few cases,
6363 we also remove redundant code found by the new warnings.
6365 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
6366 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6367 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6368 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6369 warning controlled by -gnatw.o that warns on cases of out parameter
6370 values being ignored.
6372 2007-10-15 Geert Bosch <bosch@adacore.com>
6374 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6376 * expect.c: Initial port to arm-mentor-nucleus.
6377 Use kill for __gnat_kill() on VMS.
6379 2007-10-15 Emmanuel Briot <briot@adacore.com>
6381 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6383 (Xref_Record): Change type for Line, since in the case of a reference to
6384 a predefined entity (as happens for array index types), the line is set
6386 Add support for parsing multiple array index types info, or
6387 multiple inherited interfaces info. This information cannot be stored
6388 in Xref_Entity_Record, which only supports a single instance of Tref_*,
6389 and is therefore stored in the list of references instead. It has a
6390 special treatement later on in tools that use this information.
6392 2007-10-15 Tristan Gingold <gingold@adacore.com>
6394 * debug.adb: Document use of -gnatd.a and -gnatd.I
6396 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6398 2007-10-15 Javier Miranda <miranda@adacore.com>
6400 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6401 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6402 care of access to class-wide interface types plus removal of bizarre
6403 conversion of tagged object to access type (reported by Gary
6404 Dismukes). After this patch there is no need to perform any
6405 additional management on these nodes in Expand_Interface_Actuals.
6407 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6408 that handles use of 'Access and 'Unchecked_Access applied to
6409 actuals covering interface types. Such code is now
6410 centralized in Expand_N_Attribute_Reference.
6412 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6414 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6415 of tagged types whose ultimate ancestor is a CPP type.
6416 (Freeze_Array_Type): For a packed array type, generate an initialization
6417 procedure if the type is public, to handle properly a client that
6418 specifies Normalize_Scalars.
6420 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6422 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6423 inside a generic body, retrieve the full view of the entry family
6424 discrete subtype if available.
6426 2007-10-15 Thomas Quinot <quinot@adacore.com>
6428 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6429 attempt to generate stubs for hidden primitive operations.
6431 2007-10-15 Vincent Celier <celier@adacore.com>
6433 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6434 returning None, used when there is no platform specific body for
6437 2007-10-15 Bob Duff <duff@adacore.com>
6439 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6440 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6441 the generic Heap_Sort_G, in order to avoid trampolines.
6443 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
6444 Jose Ruiz <ruiz@adacore.com>
6446 * vx_stack_info.c: New file.
6448 * i-forbla-unimplemented.ads: New file.
6450 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6451 for unsupported configurations; use it on VMS targets instead of the
6453 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6454 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6455 used by VxWorks targets to have access to task-specific data and be
6456 able to extract the stack boundaries for stack checking.
6457 Use system-vms-ia64.ads on ivms.
6459 * Make-lang.in: Update dependencies.
6461 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6464 2007-10-15 Vincent Celier <celier@adacore.com>
6466 * snames.adb, snames.ads: Add new standard name runtime_library_dir
6468 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6470 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6472 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6473 the source is unknown.
6475 * prj-ext.adb: Spelling error fix
6477 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6478 95 reserved word in its name.
6479 (Process_Project_Level_Array_Attributes): Process new attribute
6480 Runtime_Library_Dir.
6482 * prj-part.adb (Parse_Single_Project): Do not check the name of the
6483 config project against the user project names.
6485 * prj-proc.adb (Expression): In multi-language mode, indexes that do
6486 not include a dot are always case insensitive.
6487 (Process_Declarative_Items): Ditto
6488 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6491 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6492 True, compare both indexes in lower case.
6494 2007-10-15 Robert Dewar <dewar@adacore.com>
6496 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6498 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6500 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6501 association for an access component, add an association with null as
6502 the expression. Remove testing for array subtypes and the setting in
6503 that case of Ctyp to the array component type, which prevented proper
6504 inclusion of an association for null-initialized arrays. Collapse
6505 condition that tests for array subtypes into just a test of
6506 Is_Partially_Initialized_Type (which already covers arrays anyway).
6508 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6510 * sem_ch12.adb: Minor code reformatting.
6511 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6512 find the parent package which may have been hidden by local
6515 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6517 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6518 flag of derived concurrent types, taking into account the flag setting
6519 on the parent subtype and any new set of discriminants.
6521 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6523 * sem_ch4.adb: Minor code and comment reformatting.
6524 (Analyze_Allocator): When the designated type of an unconstrained
6525 allocator is a record with unknown discriminants or an array with
6526 unknown range bounds, emit a detailed error message depending on the
6527 compilation mode and whether the designated type is limited.
6529 2007-10-15 Tristan Gingold <gingold@adacore.com>
6531 * system-vms-ia64.ads: New file.
6533 * system-vms_64.ads: Minor comment fix.
6535 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6537 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6538 body generated for a function with a controlling result that is a null
6539 extension, discard the generated body in favor of the current explicit
6542 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6544 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6545 examining its original form, to handle properly operator calls that
6546 have been rewritten.
6548 2007-10-15 Olivier Hainque <hainque@adacore.com>
6550 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6551 instead of a procedure value in each traceback entry.
6553 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6554 instead of procedure value to TBK$SYMBOLIZE.
6556 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6558 (TB_Entry_For): Account for the PV/FP renaming.
6560 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6562 (Null_TB_Entry): Account for change of component name.
6563 (PV_For): Rename as FP_For.
6565 2007-10-15 Tristan Gingold <gingold@adacore.com>
6567 * trans.c (gnat_to_gnu): Remove the padding structure more often.
6568 This optimize assignment to over-aligned record.
6570 2007-10-15 Emmanuel Briot <briot@adacore.com>
6572 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6575 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6576 type, for dispatching calls.
6578 2007-10-15 Vincent Celier <celier@adacore.com>
6579 Robert Dewar <dewar@adacore.com>
6581 * gnat_ugn.texi: Add documentation for switches --version and --help
6582 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6583 gnatxref, gnatfind, gnatls, and gnatclean.
6585 Mention attribute Excluded_Source_Dirs
6586 Replace obsolescent attribute Locally_Removed_Files with attribute
6587 Excluded_Source_Files.
6588 Improve documentation of -u (gnatbind)
6589 Document how to do reliable stack checking for the environmental task
6592 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6593 Document attribute Excluded_Source_Files and indicate that attribute
6594 Locally_Removed_Files is obsolescent.
6596 2007-10-15 Thomas Quinot <quinot@adacore.com>
6598 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6601 Update documentation to note that OpenVMS 8.3 or later must be used
6602 to generate g-soccon-vms.ads.
6604 * atree.adb: Add ??? comment
6606 * exp_util.adb: Minor reformatting.
6607 Add ??? comment in Kill_Dead_Code.
6609 2007-10-15 Robert Dewar <dewar@adacore.com>
6611 * errout.ads: Comment clarification
6613 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6614 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6616 * lib.ads: Comment update
6618 * init.c: Minor reformatting.
6620 * sem_attr.adb: Minor formatting
6622 * osint-b.ads: Minor reformatting
6624 * sem_ch9.adb: Implement -gnatd.I switch
6626 * g-comlin.adb: (Start): Fix handling of empty command line.
6628 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6629 even when -rules follows the -cargs section.
6631 2007-10-08 Ollie Wild <aaw@google.com>
6633 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6635 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6637 (gnat_eh_runtime_type): Removed.
6638 (gnat_return_tree): New function.
6640 2007-10-08 Ben Elliston <bje@au.ibm.com>
6644 2007-08-31 Ben Elliston <bje@au.ibm.com>
6646 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6647 when compiling for powerpc64-*-linux.
6648 * system-linux-ppc64.ads: New file.
6650 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
6652 Mapped location support
6653 * back_end.adb (Call_Back_End): Pass information about source
6654 files instead of units to gigi.
6655 * gigi.h (struct File_Info_Type): New.
6656 (gigi): Rename and change type of number_units parameter, change
6657 type of file_info_ptr parameter.
6658 * trans.c (number_files): New global variable.
6659 (gigi): Rename and change type of number_units parameter, change
6660 type of file_info_ptr parameter.
6661 If mapped location support is enabled, create the isomorphic mapping
6662 between source files and line maps.
6663 (Sloc_to_locus): If mapped location support is enabled, translate
6664 source location into mapped location.
6665 (annotate_with_node): Rename into set_expr_location_from_node.
6666 Call set_expr_location instead of annotate_with_locus.
6667 (Pragma_to_gnu): Adjust for above change.
6668 (Loop_Statement_to_gnu): Likewise.
6669 (call_to_gnu): Likewise.
6670 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6671 (gnat_to_gnu): Likewise.
6672 (add_stmt_with_node): Likewise.
6673 (add_cleanup): Likewise.
6674 * utils.c (gnat_init_decl_processing): Do not set input_line.
6676 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6678 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6679 (Applicable_Use): Emit a warning when a package tries to use itself.
6680 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6681 is already in use or the package where it is declared is in use or is
6682 declared in the current package.
6683 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6685 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6686 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6687 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6689 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6691 * a-calend-vms.adb, a-calend.adb:
6692 Add a section on leap seconds control along with two entities used to
6693 enable and disable leap seconds support. The array Leap_Second_Times is
6694 now constant and contains hard time values pre-generated. Remove
6695 all elaboration code used to populate the table of leap seconds.
6698 Add entity Leap_Seconds_Support to the list of global run-time variables
6699 along with a comment on its usage and values.
6700 (Gen_Adainit_Ada): Add code to generate the declaration and import of
6701 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6702 or one (enabled) depending on the presence of binder switch "-y".
6703 (Gen_Adainit_C): Add code to generate the declaration of external int
6704 __gl_leap_seconds_support. Set is value to zero (disabled) or one
6705 (enabled) depending on the presence of binder switch "-y".
6707 * init.c: Add __gl_leap_seconds_support to the list of global values
6708 computed by the binder.
6710 2007-09-26 Jerome Guitton <guitton@adacore.com>
6712 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6713 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6714 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6715 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6717 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6719 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6720 function which can be called by the debugger to interrupt the tasks of
6721 an Ada application asynchronously, as needed on VxWorks.
6722 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6724 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6725 renamed from Stop_All_Tasks. Update comments.
6726 (Stop_All_tasks): New function declaration.
6728 2007-09-26 Olivier Hainque <hainque@adacore.com>
6730 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6731 #include <utime.h> and #define GCC_RESOURCE_H before
6732 #include <sys/wait.h>.
6733 Add more protections in __gnat_translate_vms.
6735 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6736 #include <sys/wait.h>.
6738 2007-09-26 Thomas Quinot <quinot@adacore.com>
6739 Sergey Rybin <rybin@adacore.com>
6741 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6743 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6746 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6748 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6751 * sem_dist.ads: Minor comment fix
6753 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6755 2007-09-26 Javier Miranda <miranda@adacore.com>
6756 Eric Botcazou <ebotcazou@adacore.com>
6759 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6760 indirection added to the HT_Link component of the TSD. This is required
6761 to statically allocate the TSD.
6764 Minor reordering of the declarations in the private part. Required to
6765 add a level of indirection to the contents of the TSD component HT_Link.
6766 This is required to statically allocate the TSD.
6768 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6769 Is_Statically_Allocated set from constant objects.
6770 Do not make exported constants created by the compiler volatile.
6771 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6774 * trans.c (Identifier_to_gnu): For constants, unshare initializers
6775 before returning them.
6777 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6778 public part of the package.
6779 (Make_DT): Move HT_Link component out of the TSD record. For this
6780 purpose Make_DT now declares a separate object that stores the
6781 HT_Link value, and initializes the TSD component with the address
6782 of this new object. The addition of this level of indirection is
6783 required to statically allocate the TSD because the TSD cannot
6784 have variable components.
6785 (Expand_Interface_Conversion): Improve the expanded code.
6786 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6788 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6789 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6790 if we are building static dispatch tables then we must not generate
6791 extra code to register the primitive because the dispatch table will
6792 be built at the end of the library package; otherwise we notify that
6793 we cannot build the static dispatch table.
6795 2007-09-26 Robert Dewar <dewar@adacore.com>
6797 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6800 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6801 (Analyze_Record_Representation_Clause): Suppress junk warning for
6802 missing component clause.
6803 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6804 tests for controlled type overlay to composites with controlled
6806 (Analyze_Record_Representation_Clause): Add reference for component name
6808 2007-09-26 Javier Miranda <miranda@adacore.com>
6809 Gary Dismukes <dismukes@adacore.com>
6811 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6812 for thunks associated with interface types.
6814 * einfo.ads: Improve documentatation of Is_Internal
6815 (Is_Thunk): New attribute applicable to subprograms. True for thunks
6816 associated with interface types.
6817 Extensive comment fixes regarding flags that appear in all entities. The
6818 documentation is now consistent for all such flags (there were a number
6819 of errors in the documentation in this regard).
6821 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6823 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6824 of these procedures are passed a function call that already has
6825 build-in-place actuals (testing new flag
6826 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6827 the case where processing continues.
6828 (Expand_Call): If the call is generated from a thunk body then we
6829 propagate the extra actuals associated with the accessibility
6830 level of the access type actuals.
6832 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6833 of each extra formal of a protected operation to reference the
6834 corresponding extra formal of the subprogram denoted by the
6835 operation's Protected_Body_Subprogram.
6837 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6838 N_Function_Call nodes.
6840 2007-09-26 Robert Dewar <dewar@adacore.com>
6842 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6844 * debug.adb: Add d.s flag.
6846 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6848 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6849 debug variable so that it won't be initialized when pragma
6850 Initialize_Scalars is in effect.
6852 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6854 * freeze.adb (Freeze_Entity): Remove check for preelaborable
6855 initialization of a full view. This is moved to
6856 Analyze_Package_Specification.
6858 * sem_ch7.adb (Analyze_Package_Specification): Add check for
6859 preelaborable initialization of a full view in entity loop.
6860 (Uninstall_Declarations): If entity is a use-visible compilation unit,
6861 its child units are use-visible only if they are visible child units.
6863 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6864 whether an expression can be used within a type declaration that
6865 requires preelaborable init.
6866 (Check_Components): Replace inline code that does partial checking for
6867 preelaborable default expressions with call to
6868 Is_Preelaborable_Expression.
6869 (Has_Preelaborable_Initialization): In the case of a generic actual
6870 subtype, (that is, Is_Generic_Actual is True), return the result of
6871 applying Has_Preelaborable_Initialization to the generic actual's base
6874 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6876 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6877 call to Jan_1_Day _Of_Week to optimize its performance.
6878 (Is_Leap): Move the routine to the scope of Week_In_Year.
6879 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6880 weekday on which January 1 falls of Year - 1 and Year + 1. This function
6881 avoids calling Time_Of and Split, thus making it more efficent.
6882 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
6884 * g-calend.ads (Week_In_Year): Change comment to reflect new
6887 2007-09-26 Emmanuel Briot <briot@adacore.com>
6889 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
6890 Command_Line): New types
6891 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
6892 support for defining how switches can be grouped on a command line (as
6893 is the case for -gnatw... for GNAT), and how simple switches can be
6894 used as aliases for more complex switches (-gnatwa is same as
6896 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
6897 (Start, Current_*): New subprograms
6898 Added support for parsing an array of strings in addition to the real
6900 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
6901 be moved from the body to the private part of the spec.
6902 (*): All subprograms now have an extra parameter with default value to
6903 specify which parser should be used. For backward compatibility, it
6904 defaults to parsing the command line of the application. They were also
6905 modified to properly handle cases where each of the argument does not
6906 start at index 1 (which is always true for Ada.Command_Line, but not
6907 when processing any Argument_List).
6908 (Free): New subprogram
6909 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
6910 Argument): New subprograms
6911 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
6912 special characters like ':', '=',... are now handled in a single place,
6913 which makes the code more extensible eventually.
6914 (Getopt, Full_Switch): When the switch was returned as part of the
6915 special character '*', make sure it is prepended by the switch character
6916 ('-' in general), so that the application knows whether "foo" or "-foo"
6917 was specified on the command line.
6919 2007-09-26 Florian Villoing <villoing@adacore.com>
6921 * g-dirope.adb (Remove_Dir): In case we are removing directories
6922 recursively, make sure that if an exception is raised during the
6923 processing, the current working directory is reset to its initial
6924 value before propagating the exception.
6926 2007-09-26 Vincent Celier <celier@adacore.com>
6928 * gnatbind.adb: If there are several ALI files specified and there is
6929 a main program to bind, the first ALI is expected to contain the main
6930 subprogram and the names of the binder generated files will be derived
6931 from the first ALI file name.
6932 (Gnatbind): Fix insertion character in invocation of Error_Msg
6934 2007-09-26 Vincent Celier <celier@adacore.com>
6936 * gnatcmd.adb (Check_Files): Do not include sources that have been
6937 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
6939 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6941 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
6942 information about each of its index types, following the type
6943 reference for its component type.
6945 2007-09-26 Vincent Celier <celier@adacore.com>
6947 * make.adb: (Kill): New procedure (__gnat_kill imported)
6948 (Running_Compile, Outstanding_Compiles): Global variables that
6949 were previously local to procedure Compile_Sources.
6950 (Sigint_Intercepted): Send signal SIGINT to all outstanding
6951 compilation processes.
6953 (Gnatmake): If project files are used, create the mapping of all the
6954 sources, so that the correct paths will be found.
6956 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
6958 2007-09-26 Vincent Celier <celier@adacore.com>
6960 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
6962 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
6963 Replace components Compiler_Min_Options and Binder_Min_Options with
6964 Compiler_Required_Switches and Binder_Required_Switches in record
6966 Remove components Default_Language and Config in Project_Tree_Data,
6969 * prj-attr.adb: New attributes Required_Switches (<language>) in
6970 packages Compiler and Binder.
6972 * prj-nmsc.adb: Major rewrite of the processing of configuration
6973 attributes for gprbuild. No impact on GNAT tools.
6975 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
6976 process configuration attributes: this is done in Prj.Nmsc.Check.
6977 (Recursive_Process): Make a full copy of packages inherited from project
6978 being extended, instead of a shallow copy.
6979 (Process_Project_Tree_Phase_1): New procedure
6980 (Process_Project_Tree_Phase_1): New procedure
6981 (Process): Implementation now uses the two new procedures
6983 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
6984 from the project config, not the tree config that no longer exists.
6986 2007-09-26 Vincent Celier <celier@adacore.com>
6988 * Make-lang.in: Update dependencies..
6990 2007-09-26 Vincent Celier <celier@adacore.com>
6992 * osint.adb, osint.ads: Minor reformatting
6994 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
6996 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6998 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
6999 message to cite use of <> in aggregate component associations rather
7000 than wrongly indicating use of limited aggregates.
7002 2007-09-26 Robert Dewar <dewar@adacore.com>
7004 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7007 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7009 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7010 ancestor of the derived type, the operations are inherited from the
7011 primary dispatch table of the parent.
7012 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7013 when the context is an explicit type conversion.
7015 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7017 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7018 rule for qualified expressions properly, to detect improper conversions
7019 and resolve some cases of overloading.
7021 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7023 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7024 proper kind of reference to the primitive operation, for better source
7026 (Valid_Conversion): A tagged conversion is legal if both operands are
7029 2007-09-26 Robert Dewar <dewar@adacore.com>
7031 * sem_warn.adb (Check_References): Catch more cases of unreferenced
7034 2007-09-26 Vincent Celier <celier@adacore.com>
7036 * snames.adb, snames.ads: Change Include_Option to Include_Switches
7038 2007-09-26 Robert Dewar <dewar@adacore.com>
7040 * s-wchstw.adb: provide messages for run time unit exceptions
7042 * a-witeio.adb: Minor reformatting
7044 * exp_ch13.adb: Minor reformatting
7046 2007-09-26 Sergey Rybin <rybin@adacore.com>
7048 * vms_data.ads: Revise gnatmetric qualifiers.
7049 Add qualified for the new gnatbind option '-y'
7051 * gnat_ugn.texi: Revise the gnatmetric section.
7052 Add entry for new gnatbind option '-y'.
7054 * gnat_rm.texi: Minor spelling correction.
7055 Document restriction on overlaying controlled types
7057 2007-09-26 Vincent Celier <celier@adacore.com>
7059 * makegpr.adb (Link_Executables): Do not fail when the root project has
7060 no sources, but is an extending project.
7062 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
7064 * trans.c: Fix misplaced #define.
7066 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7068 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7069 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7071 2007-09-21 Olivier Hainque <hainque@adacore.com>
7073 * utils.c (type_for_nonaliased_component_p): Return false for
7074 all AGGREGATE_TYPEs.
7076 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
7078 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7079 object covered by 13.3(19) volatile.
7081 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
7085 * utils.c (unchecked_convert): Use a subtype as the intermediate type
7086 in the special VIEW_CONVERT_EXPR case.
7088 2007-09-12 Robert Dewar <dewar@adacore.com>
7090 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7092 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7093 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7094 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7095 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7096 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7097 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7098 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7099 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7100 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7101 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7102 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7103 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7104 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7105 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7106 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7107 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7108 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7109 pragma Compiler_Unit and adds it to relevant library units.
7111 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7113 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7114 a box need not correspond to any component.
7116 2007-09-12 Robert Dewar <dewar@adacore.com>
7118 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7119 the tasking version of the Ada run time when foreign threads are
7120 present and there are no explicit Ada tasks or tasking constructs.
7122 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7124 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7126 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7127 the usage of switch -y.
7129 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7130 when switch -y is present.
7132 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7133 leap seconds in Ada.Calendar and its children.
7135 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7137 * a-extiti.ads (Timer): The discriminant is a "not null access
7138 constant" in the Reference Manual.
7139 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7141 2007-09-12 Robert Dewar <dewar@adacore.com>
7143 * a-swuwha.adb: Remove junk RM header
7145 2007-09-12 Vincent Celier <celier@adacore.com>
7147 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7150 * g-bytswa.ads: Minor reformatting
7152 2007-09-12 Thomas Quinot <quinot@adacore.com>
7154 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7155 Add new constant Thread_Blocking_IO, always True by default, set False
7156 on a per-runtime basis.
7157 (Need_Netdb_Buffer): New constant.
7159 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7161 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7162 Added renames for corresponding functions in System.Partition_Interface.
7164 2007-09-12 Doug Rupp <rupp@adacore.com>
7166 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7169 * s-crtl-vms64.ads: Removed.
7171 2007-09-12 Olivier Hainque <hainque@adacore.com>
7173 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7174 with discriminant constraints, generalize the code for BIT_FIELDs
7175 to PACKED fields of constant size and propagate DECL_PACKED.
7177 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7179 * decl.c (array_type_has_nonaliased_component): New predicate.
7180 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7181 set the TYPE_NONALIASED_COMPONENT flag on the type.
7182 <E_Array_Subtype>: Likewise.
7183 * gigi.h (type_for_nonaliased_component_p): Declare.
7184 * utils.c (type_for_nonaliased_component_p): New predicate.
7185 (create_field_decl): Invoke the above predicate to set the
7186 DECL_NONADDRESSABLE_P flag on the field.
7188 2007-09-11 Javier Miranda <miranda@adacore.com>
7190 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7191 in library level record type entities if we are generating statically
7192 allocated dispatch tables.
7194 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7195 importing/exporting the _tag declaration by new code
7196 importing/exporting the dispatch table wrapper. This change allows us
7197 to statically allocate of the TSD.
7198 (Make_DT.Export_DT): New procedure.
7199 (Build_Static_DT): New function.
7200 (Has_DT): New function.
7202 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7203 True_Constant and Current_Value. Required to statically
7204 allocate the dispatch tables.
7205 (Check_Allocator): Make function iterative instead of recursive.
7206 Also return inner allocator node, when present, so that we do not have
7207 to look for that node again in the caller.
7209 2007-09-11 Jan Hubicka <jh@suse.cz>
7211 * misc.c (gnat_expand_body): Kill.
7212 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7214 2007-09-10 Robert Dewar <dewar@adacore.com>
7216 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7217 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7218 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7219 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7220 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7221 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7222 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7223 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7224 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7225 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7226 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7227 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7228 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7229 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7230 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7231 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7232 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7233 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7234 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7235 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7236 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7237 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7238 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7239 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7240 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7241 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7242 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7243 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7244 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7245 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7246 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7247 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7248 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7249 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7250 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7251 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7252 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7253 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7254 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7255 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7256 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7257 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7258 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7259 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7260 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7261 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7262 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7263 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7264 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7265 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7266 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7267 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7268 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7269 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7270 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7271 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7272 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7273 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7274 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7275 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7276 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7277 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7278 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7279 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7280 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7281 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7282 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7283 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7284 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7285 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7286 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7287 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7288 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7289 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7290 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7291 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7292 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7293 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7294 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7295 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7296 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7297 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7298 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7300 2007-09-10 Emmanuel Briot <briot@adacore.com>
7302 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7305 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
7307 * adaint.c (__gnat_translate_vms): new function.
7309 2007-09-10 Gary Dismukes <dismukes@adacore.com>
7310 Thomas Quinot <quinot@adacore.com>
7312 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7313 create an abstract subprogram in the case of 'Input. For 'Output we now
7314 create a real spec/body when the type is abstract, since it can
7315 potentially be called.
7316 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7317 body for 'Output when the type is abstract (only the creation of the
7318 body for 'Input is excluded when the type is abstract).
7319 (Stream_Operation_OK): Add an additional condition in the return
7320 statement, so that False will be returned for TTS_Stream_Input if the
7321 associated tagged type is an abstract extension. Add comments for
7323 (Expand_N_Object_Declaration): For the case of a shared passive
7324 variable, insert init proc call only after the shared variable
7325 procedures have been processed, because the IP call needs to undergo
7326 shared passive variable reference expansion, which requires these
7327 procedures to be available (and elaborated).
7329 2007-09-10 Vincent Celier <celier@adacore.com>
7331 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7332 parameter Runtime_Project.
7334 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7336 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7337 given a box association, the type of the component is discriminated,
7338 and the value of the discriminant is the discriminant of the enclosing
7339 type, retrieve its value from the aggregate itself, where it must have
7342 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7343 to remove other spurious ambiguities on arithmetic operations involving
7344 literals and addresses, on systems where Address is a visible integer
7345 type, when the operator is called in functional notation.
7346 (Try_Primitive_Operation): Within an instance, a call in prefixed form
7347 is legal when the types match, even if the operation is currently
7350 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7352 * sem_ch12.adb (Build_Local_Package): A formal package with no
7353 associations is legal if all formals have defaults. It is not
7354 equivalent to a formal declared with a box.
7356 2007-09-10 Sergey Rybin <rybin@adacore.com>
7358 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7360 2007-09-10 Sergey Rybin <rybin@adacore.com>
7362 * gnat_ugn.texi: Add description of the new '-lratio' option
7363 Update 7.3.1 section about availability of the feature.
7365 2007-09-10 Thomas Quinot <quinot@adacore.com>
7367 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7370 2007-09-10 Olivier Hainque <hainque@adacore.com>
7372 * Makefile.in: (mips-irix section): Activate build of libgmem.
7374 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7376 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7379 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7381 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7382 a debug renaming declaration specially.
7384 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7386 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7387 which a constant renaming is treated as a normal object declaration.
7388 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7389 the N_Indexed_Component case.
7390 <N_Indexed_Component>: Fall through to above case.
7391 <N_Object_Renaming_Declaration>: Return true for all composite types.
7393 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7395 * decl.c (make_packable_type): If the new type has been given BLKmode,
7396 try again to get an integral mode for it.
7398 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
7400 Re-apply accidentally reverted change:
7402 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7404 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7405 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7406 and _Unwind_SWord with _sleb128_t.
7408 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7410 * trans.c (convert_with_check): Update call to real_2expN.
7412 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
7414 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7415 * utils.c (end_subprog_body): Likewise.
7417 2007-09-03 Nick Clifton <nickc@redhat.com>
7419 * Make-lang.in: Change copyright header to refer to version 3 of
7420 the GNU General Public License and to point readers at the
7421 COPYING3 file and the FSF's license web page.
7422 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7423 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7424 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7425 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7428 2007-08-31 Vincent Celier <celier@adacore.com>
7432 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
7433 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7434 (Check_Version_And_Help): New procedure in package Switch to process
7435 switches --version and --help.
7436 Use Check_Version_And_Help in GNAT tools
7439 (Compile_Sources): Make sure that sources that are "excluded" are not
7441 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7442 project file is used.
7443 (Version_Switch): Remove, moved to Switch
7444 (Help_Switch): Remove, moved to Switch
7445 (Display_Version): Remove, moved to Switch
7447 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7448 package Switch to process switches --version and --help.
7449 (Display_Version): New procedure
7451 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7453 2007-08-31 Javier Miranda <miranda@adacore.com>
7455 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7458 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7460 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7461 (Mark_Non_Null): If the node for which we just generated an access check
7462 is a reference to an *in* parameter and the reference appears in the
7463 declarative part of a subprogram body, mark the node as known non null.
7465 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7467 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7468 structure of E_Exception to reflect the new flag.
7469 (Is_Raised, Set_Is_Raised): New inlined routines.
7470 Update the usage of available flag to reflect the addition of Is_Raised.
7471 (Is_Raised, Set_Is_Raised): Bodies of new routines.
7472 (Write_Entity_Flags): Write the status of flag Is_Raised.
7473 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7474 spurious ambiguities when integer literals appear in the context of an
7475 address type that is a visible integer type.
7477 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7478 exceptions never being raised.
7479 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7482 2007-08-31 Javier Miranda <miranda@adacore.com>
7484 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7485 statement when compiling under restriction No_Exceptions_Proparation.
7487 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7489 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7490 initialization aggregate for the type, generate itype references for
7491 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7493 2007-08-31 Gary Dismukes <dismukes@adacore.com>
7495 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7496 library-level package renaming, pass the declaration associated with
7497 the renaming's special debug variable to Qualify_Entity_Names to ensure
7498 that its encoded name is properly qualified.
7500 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7501 occurring in the list of entities to qualify, and do not attempt to
7502 traverse an entity list in that case. Variables associated with
7503 ` library-level package renamings can now occur in the table.
7505 * exp_dbug.ads: Revise documentation of the encoding for renaming
7508 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7510 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7511 access type points to an unconstrained array.
7513 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7515 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7518 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7519 simple redundant qualifications. The check is performed whenever the
7520 expression is a non-overloaded identifier.
7521 (Resolve_Type_Conversion): Enchance the redundant type conversion check
7522 to include loop parameters.
7523 (Valid_Conversion): Avoid generation of spurious error message.
7525 2007-08-31 Bob Duff <duff@adacore.com>
7527 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7528 concatenations of string literals into a single literal, in order to
7529 avoid very deep recursion in the front end, which was causing stack
7532 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7533 string, and the right operand is a string literal (the case of "" &
7534 "..."), optimize by avoiding copying the right operand -- just use the
7535 value of the right operand directly.
7537 * stringt.adb (Store_String_Chars): Optimize by growing the
7538 String_Chars table all at once, rather than appending characters one by
7540 (Write_String_Table_Entry): If the string to be printed is very long,
7541 just print the first few characters, followed by the length. Otherwise,
7542 doing "pn(n)" in the debugger can take an extremely long time.
7544 * sem_prag.adb (Process_Interface_Name): Replace loop doing
7545 Store_String_Char with Store_String_Chars.
7547 2007-08-31 Vincent Celier <celier@adacore.com>
7549 * prj-attr.adb: Add new attribute Excluded_Source_Files
7551 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7552 Locally_Removed_Files.
7554 * snames.ads, snames.adb: New standard name Excluded_Source_Files
7556 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7558 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7559 clauses of subunits, ignore limited_with_clauses that are illegal and
7560 have not been fully analyzed.
7562 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7564 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7565 flag, for effiency. It is called when analyzing arithmetic operators
7566 and also for actuals in calls that are universal_integers. The flag is
7567 set for the predefined type address, and for any type or subtype
7570 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7571 Universal_Integer, when the formal is a descendent of address and the
7572 call appears in user code.
7573 (Analyze_Selected_Component): if the prefix is a private extension, the
7574 tag component is visible.
7576 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7579 2007-08-31 Robert Dewar <dewar@adacore.com>
7581 * s-fileio.adb (Open): Normalize file name to lower case in non-case
7582 sensitive file name systems to avoid unexpected mismatch in Vista.
7584 2007-08-31 Vincent Celier <celier@adacore.com>
7586 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7588 2007-08-31 Vincent Celier <celier@adacore.com>
7590 * symbols-vms.adb (Initialize): Read symbol files with continuation
7592 (Finalize): If symbol is long, split the line
7594 2007-08-31 Vincent Celier <celier@adacore.com>
7596 * fmap.ads: Minor comment updates
7598 2007-08-31 GNAT Script <nobody@adacore.com>
7600 * Make-lang.in: Makefile automatically updated
7602 2007-08-31 Bob Duff <duff@adacore.com>
7604 * sinfo.ads: Minor comment fix.
7606 2007-08-31 Thomas Quinot <quinot@adacore.com>
7608 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7609 with implementation.
7610 Documentation cleanup only.
7612 2007-08-31 Sergey Rybin <rybin@adacore.com>
7614 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7615 gnatpp '--separate-stmt-name' option.
7616 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7619 * gnat_ugn.texi: Add description for the new gnatpp
7620 '--separate-stmt-name' and '--use-on-new-line' options.
7622 2007-08-31 Ben Elliston <bje@au.ibm.com>
7624 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7625 when compiling for powerpc64-*-linux.
7626 * system-linux-ppc64.ads: New file.
7628 2007-08-22 Krister Walfridsson <cato@df.lth.se>
7630 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7633 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7635 * misc.c (gnat_type_max_size): Constify.
7637 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7639 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7640 associated with Standard_Debug_Renaming_Type, to be used as the type of
7641 the special variables whose names provide debugger encodings for
7642 renaming declarations.
7644 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7645 (Set_Debug_Renaming_Link): Change to set Node25.
7646 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7647 (Write_Field25_Name): Add case for E_Variable to output
7648 "Debug_Renaming_Link".
7649 (Write_Field23_Name): Correct the output string for "Limited_View".
7651 * exp_dbug.adb: Add with and use of Tbuild.
7652 (Debug_Renaming_Declaration): Replace creation of an enumeration type
7653 and literal with creation of a variable of type
7654 Standard_Debug_Renaming_Type whose name encodes both the renamed object
7655 and the entity of the renaming declaration.
7656 (Qualify_Entity_Name): Add the delayed qualification of the entity name
7657 part of the name of a variable that has a Debug_Renaming_Link.
7659 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7660 special type to be associated with variables that provide debugger
7661 encodings for renaming declarations.
7663 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7664 Ed Schonberg <schonberg@adacore.com>
7665 Javier Miranda <miranda@adacore.com>
7667 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7668 ancestor part given by an aggregate to test for an unchecked conversion,
7669 since this can occur in some cases when the ancestor part is a function
7670 call, and we don't want to fall into the recursive call to this
7671 procedure in that case.
7673 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7674 stream attributes on limited types to account for user-specified
7675 attributes as well as whether Input (resp. Output) becomes available
7676 due to Read (resp. Write) being available for the type. Change Boolean
7677 variable to the more accurate name
7678 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7679 double-"not" predicate at beginning of return statement to more
7680 understandable form.
7682 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7683 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7684 in a block statement and use that as the first statement of the
7685 expanded return rather than incorrectly using the handled sequence as
7686 the first statement.
7688 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7689 operation, generate an explicit freeze node for it rather than
7690 generating extra formals, to ensure that gigi has the proper order of
7691 elaboration for anonymous subtypes in the signature of the subprograms.
7692 (Build_In_Place_Formal): Move assertion to beginning of loop.
7693 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7694 applied to a function call (occurs for some cases of 'Input).
7695 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7696 applied to a function call (occurs for some cases of 'Input).
7698 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7699 2005, generate an extended return statement enclosing the result object
7702 * freeze.adb (Freeze_Record_Type): Extend the current management of
7703 components that are access type with an allocator as default value: add
7704 missing support to the use of qualified expressions of the
7705 allocator (which also cause freezing of the designated type!)
7706 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7707 dispatching operation, since extra formals may be needed by calls to
7708 build-in-place functions (such as stream 'Input).
7710 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7711 formals for 'Constrained and accessibility level in the case of a
7712 predefined dispatching operation.
7714 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7715 point, no need to find the parent node.
7717 2007-08-16 Javier Miranda <miranda@adacore.com>
7719 * exp_attr.adb (Attribute_Priority): Add missing support for entries
7722 2007-08-16 Javier Miranda <miranda@adacore.com>
7724 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7725 is not really required and can introduce regression with the debugger.
7726 The original problem is fixed with the patch written for checks.adb.
7728 2007-08-16 Thomas Quinot <quinot@adacore.com>
7730 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7731 Range_Check on Allocated_Table.
7733 2007-08-16 Vincent Celier <celier@adacore.com>
7735 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7736 Including_Non_Switch set to False.
7737 (Gnatmake): For the compiler, call Test_If_Relative_Path with
7738 Including_Non_Switch set to False.
7740 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7741 parameter Including_Non_Switch, defaulted to True. When
7742 Including_Non_Switch is False, options that are not switches and
7743 appear as relative path are not converted to absolute paths.
7745 2007-08-16 Nicolas Roche <roche@adacore.com>
7747 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7750 * Make-lang.in: Update dependencies
7752 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7754 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7755 currently inspected is a selected component, retrieve the entity of
7757 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7758 from the immediate ancestor of Main_Unit_Entity.
7759 (Install_Limited_Withed_Unit): Do not install the limited view of
7760 package P if P is reachable through an ancestor chain from package C
7761 and C also has a with clause for P in its body.
7762 (Has_Limited_With_Clause): New routine.
7763 (Has_With_Clause): New routine.
7765 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7767 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7768 generic for an enclosing instance is a global reference, even though
7769 its scope is the enclosing instance.
7771 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7772 Javier Miranda <miranda@adacore.com>
7774 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7775 initialize a limited object.
7776 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7778 Make sure Has_Complex_Representation is inherited by derived type.
7780 2007-08-16 Robert Dewar <dewar@adacore.com>
7782 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7785 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7787 * sem_disp.adb (Check_Dispatching_Operation): If the operation
7788 implements an operation inherited from a progenitor interface, verify
7789 that they are subtype-conformant.
7791 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7792 Bob Duff <duff@adacore.com>
7793 Nicolas Setton <setton@adacore.com>
7795 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7796 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7797 the statement which is being resolved comes from a predefined library
7798 unit, all non-predefined library interpretations are skipped.
7799 (Resolve_Op_Concat): If string concatenation was folded in the parser,
7800 but the "&" is user defined, give an error, because the folding would
7803 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7804 the parser has folded a long sequence of concatenations of string
7807 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7808 and "JMP_BUF" variables as artificial.
7809 (N_String_Literal): Do not use alloca for very long string literals. Use
7810 xmalloc/free instead. Otherwise the stack might overflow.
7812 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7815 2007-08-16 Vincent Celier <celier@adacore.com>
7817 * vms_conv.adb (Process_Argument): Ensure that project related options
7818 are not put in the -cargs section when using GNAT COMPILE.
7820 2007-08-16 Robert Dewar <dewar@adacore.com>
7822 * gnat_ugn.texi: Add note on preprocessing (output file not written)
7824 2007-08-16 Thomas Quinot <quinot@adacore.com>
7826 * a-tags.adb: Minor reformatting.
7828 2007-08-16 Bob Duff <duff@adacore.com>
7830 * sem_type.ads, sem_ch4.adb: Minor reformatting.
7832 2007-08-14 Thomas Quinot <quinot@adacore.com>
7834 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
7835 s-osinte-interix.ads, system-interix.ads: Removed.
7837 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7839 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7840 calls to Check_Within_Time_Bounds.
7841 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7842 (Difference): Account for possible rounding of the resulting difference
7844 2007-08-14 Robert Dewar <dewar@adacore.com>
7846 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7847 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7848 s-osinte-solaris.adb, s-osinte-solaris.ads,
7849 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7851 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7852 switch -gnatyS. Enable -gnatyS in GNAT style check mode
7854 2007-08-14 Robert Dewar <dewar@adacore.com>
7855 Ed Schonberg <schonberg@adacore.com>
7857 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
7858 Suppress unmodified in-out parameter warning in some cases
7859 This patch is a also fairly significant change to the way suppressible
7862 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7863 needed for access to concurrent record types generated by the expander.
7864 (Generate_Range_Check): When generating a temporary to capture the
7865 value of a conversion that requires a range check, set the type of the
7866 temporary before rewriting the node, so that the type is always
7867 properly placed for back-end use.
7868 (Apply_Float_Conversion_Check): Handle case where the conversion is
7870 (Get_Discriminal): Code reformatting. Climb the scope stack looking
7871 for a protected type in order to examine its discriminants.
7873 2007-08-14 Robert Dewar <dewar@adacore.com>
7874 Gary Dismukes <dismukes@adacore.com>
7875 Ed Schonberg <schonberg@adacore.com>
7876 Thomas Quinot <quinot@adacore.com>
7878 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
7879 a-stwisu.adb, a-strsup.adb: Fix warnings for range
7880 tests optimized out.
7882 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
7883 (Get_Allocator_Final_List): For the case of an anonymous access type
7884 that has a specified Associated_Final_Chain, do not go up to the
7886 (Expand_N_Type_Conversion): Test for the case of renamings of access
7887 parameters when deciding whether to apply a run-time accessibility
7889 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
7890 aggregate code before allocator, and ahead of declaration for
7891 temporary, to prevent access before elaboration when the allocator is
7892 an actual for an access parameter.
7893 (Expand_N_Type_Conversion): On an access type conversion involving an
7894 access parameter, do not apply an accessibility check when the
7895 operand's original node was an attribute other than 'Access. We now
7896 create access conversions for the expansion of 'Unchecked_Access and
7897 'Unrestricted_Access in certain cases and clearly accessibility should
7898 not be checked for those.
7900 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
7901 includes a type conversion of a packed component that has been expanded,
7902 recover the original expression for the object, and use this expression
7903 in the post-call assignment statement, so that the assignment is made
7904 to the object and not to a back-end temporary.
7905 (Freeze_Subprogram): In case of primitives of tagged types not defined
7906 at the library level force generation of code to register the primitive
7907 in the dispatch table. In addition some code reorganization has been
7908 done to leave the implementation clear.
7909 (Expand_Call): When expanding an inherited implicit conversion,
7910 preserve the type of the inherited function after the intrinsic
7911 operation has been expanded.
7913 * exp_ch2.ads, exp_ch2.adb
7914 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
7915 of an entry formal appearing in an assignment statement does not assign
7917 (Expand_Current_Value): Instead of calling a routine to determine
7918 whether the prefix of an attribute reference should be optimized or
7919 not, prevent the optimization of such prefixes all together.
7921 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
7922 component whose prefix is known to be of an access type is an implicit
7923 dereference and does not assign to the prefix.
7925 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7926 Robert Dewar <dewar@adacore.com>
7928 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
7929 itype is visited, make an entry into table to link associated node and
7931 Add comments and correct harmless error in Build_NCT_Hash_Tables
7932 (Array_Aggr_Subtype): Associate each itype created for an index type to
7933 the corresponding range construct, and not to the aggregate itself. to
7934 maintain a one-to-one correspondence between itype and its associated
7935 node, to prevent errors when complex expression is copied.
7936 Fix mishandling of multiple levels of parens
7938 * sem_aggr.adb: Create a limited view of an incomplete type, to make
7939 treatment of limited views uniform for all visible declarations in a
7940 limited_withed package.
7941 (New_Copy_Tree): If hash table is being used and itype is visited,
7942 make an entry into table to link associated node and new itype.
7943 (Resolve_Record_Aggregate): Do not add an others box association for a
7944 discriminated record component that has only discriminants, when there
7945 is a box association for the component itself.
7947 * par-ch4.adb: Fix mishandling of multiple levels of parens
7949 2007-08-14 Robert Dewar <dewar@adacore.com>
7951 * comperr.adb: Fix problem with suppressing warning messages from gigi
7953 * erroutc.ads, erroutc.adb, errout.ads,
7954 errout.adb (Write_Eol): Remove trailing spaces before writing the line
7955 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7956 possible trailing spaces.
7957 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7958 Fix problem with suppressing warning messages from back end
7959 Improve handling of deleted warnings
7962 Fix problem with suppressing warning messages from back end
7963 Handle setting of Static_Dispatch_Tables flag.
7966 Fix problem with suppressing warning messages from back end
7968 * exp_intr.adb: Improve handling of deleted warnings
7970 2007-08-14 Robert Dewar <dewar@adacore.com>
7972 * debug.adb: Improve -gnatdI to cover all cases of serialization
7973 Add documentation of dZ, d.t
7975 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
7977 (Sprint_Node_Actual): Generate new output associated with implicit
7978 importation and implicit exportation of object declarations.
7980 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7981 Robert Dewar <dewar@adacore.com>
7982 Javier Miranda <miranda@adacore.com>
7983 Gary Dismukes <dismukes@adacore.com>
7985 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
7986 to make treatment of limited views uniform for all visible declarations
7987 in a limited_withed package.
7988 Improve warnings for in out parameters
7989 (Set_Related_Interaface/Related_Interface): Allow the use of this
7990 attribute with constants.
7991 (Write_Field26_Name): Handle attribute Related_Interface in constants.
7992 Warn on duplicate pragma Preelaborable_Initialialization
7994 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
7995 generation of a freezing node to ensure proper management of null
7996 excluding access types in the backend.
7997 (Create_Extra_Formals): Test base type of the formal when checking for
7998 the need to add an extra accessibility-level formal. Pass the entity E
7999 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8000 originally being done in a couple of cases), to ensure that the
8001 Extra_Formals list gets set on the entity E when the first entity is
8003 (Conforming_Types): Add missing calls to Base_Type to the code that
8004 handles anonymous access types. This is required to handle the
8005 general case because Process_Formals builds internal subtype entities
8006 to handle null-excluding access types.
8007 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8008 functions that need it, even when not marked Requires_Overriding.
8009 Improve warnings for in out parameters
8010 (Analyze_Function_Return): Warn for disallowed null return
8011 Warn on return from procedure with unset out parameter
8012 Ensure consistent use of # in error messages
8013 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8014 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8015 the implicit conversion of the expression done for anonymous access
8016 types. This is required to generate the code of the null excluding
8017 check (if required).
8019 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8020 A formal parameter is never publicly referenceable outside of its body.
8021 (Check_References): For an unreferenced formal parameter in an accept
8022 statement, use the same warning circuitry as for subprogram formal
8024 (Warn_On_Unreferenced_Entity): New subprogram, taken from
8025 Output_Unreferenced_Messages, containing the part of that routine that
8026 is now reused for entry formals as described above.
8027 (Goto_Spec_Entity): New function
8028 (Check_References): Do not give IN OUT warning for dispatching operation
8029 Improve warnings for in out parameters
8030 (Test_Ref): Check that the entity is not undefinite before calling
8031 Scope_Within, in order to avoid infinite loops.
8032 Warn on return from procedure with unset out parameter
8033 Improved warnings for unused variables
8035 2007-08-14 Robert Dewar <dewar@adacore.com>
8036 Javier Miranda <miranda@adacore.com>
8037 Gary Dismukes <dismukes@adacore.com>
8039 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8040 (Expand_N_Attribute_Reference): Further unify the handling of the
8041 three forms of access attributes, using common code now for all three
8042 cases. Add a test for the case of applying an access attribute to
8043 an explicit dereference when the context is an access-to-interface
8044 type. In that case we need to apply the conversion to the prefix
8045 of the explicit dereference rather than the prefix of the attribute.
8046 (Attribute_Version, UET_Address): Set entity as internal to ensure
8047 proper dg output of implicit importation.
8048 (Expand_Access_To_Type): Removed.
8049 (Expand_N_Attribute_Reference): Merge the code from the three cases
8050 of access attributes, since the processing is largely identical for
8051 these cases. The substantive fix here is to process the case of a
8052 type name prefix (current instance case) before handling the case
8053 of interface prefixes.
8055 2007-08-14 Thomas Quinot <quinot@adacore.com>
8056 Ed Schonberg <schonberg@adacore.com>
8057 Javier Miranda <miranda@adacore.com>
8058 Robert Dewar <dewar@adacore.com>
8060 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8061 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8062 type that is an anonymous access to controlled object, establish
8063 an associated finalization chain to avoid corrupting the global
8064 finalization list when a dynamically allocated object designated
8065 by such a component is deallocated.
8066 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8067 functions that need it, even when not marked Requires_Overriding.
8068 (Initialize_Tag): Replace call to has_discriminants by call to
8069 Is_Variable_Size_Record in the circuitry that handles the
8070 initialization of secondary tags.
8071 (Is_Variable_Size_Record): New implementation.
8072 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8073 Suppress_Initialization pragma for a derived type.
8074 (Is_Variable_Size_Record): New subprogram.
8075 (Build_Offset_To_Top_Functions): New implementation that simplifies the
8076 initial version of this routine and also fixes problems causing
8077 incomplete initialization of the table of interfaces.
8078 (Build_Init_Procedure): Improve the generation of code to initialize the
8079 the tag components of secondary dispatch tables.
8080 (Init_Secondary_Tags): New implementation that simplifies the previous
8081 version of this routine.
8082 (Make_DT): Add parameter to indicate when type has been frozen by an
8083 object declaration, for diagnostic purposes.
8084 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8085 diagnose attemps to freeze a subprogram when some untagged type of its
8086 profile is a private type whose full view has not been analyzed yet.
8087 (Freeze_Array_Type): Generate init proc for packed array if either
8088 Initialize or Normalize_Scalars is set.
8089 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8090 constructing the new profile, copy the null_exclusion indicator for each
8091 parameter, to ensure full conformance of the new body with the spec.
8093 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8094 Create wrappers for constructor functions that need it, even when not
8095 marked Requires_Overriding.
8096 (Covers): Handle properly designated types of anonymous access types,
8097 whose non-limited views are themselves incomplete types.
8098 (Add_Entry): Use an entity to store the abstract operation which hides
8100 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8101 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8102 initialization aggregate.
8103 (Function_Interp_May_Be_Hidden): Rename to
8104 Function_Interp_Has_Abstract_Op.
8105 (Has_Compatible_Type): Remove machinery that skips interpretations if
8106 they are labeled as potentially hidden by an abstract operator.
8107 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8108 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8109 (Write_Overloads): Output the abstract operator if present.
8110 (Add_Entry): Before inserting a new entry into the interpretation table
8111 for a node, determine whether the entry will be disabled by an abstract
8113 (Binary_Op_Interp_May_Be_Hidden): New routine.
8114 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8116 (Function_Interp_May_Be_Hidden): New routine.
8117 (Has_Compatible_Type): Do not consider interpretations hidden by
8118 abstract operators when trying to determine whether two types are
8120 (Has_Hidden_Interp): New routine.
8121 (Set_May_Be_Hidden_Interp): New routine.
8122 (Write_Overloads): Write the status of flag May_Be_Hidden.
8124 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8125 Javier Miranda <miranda@adacore.com>
8127 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8128 types declared in the declarative part of a nested package body or in
8129 the proper body of a stub.
8130 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8131 of the same dispatch table slot to renamed primitives.
8132 (Make_Select_Specific_Data_Table): Handle private types.
8133 (Tagged_Kind): Handle private types.
8134 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8135 output of implicit importation and exportation.
8136 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8137 first formal of the thunk is always associated with the controlling
8138 type. In addition perform the following code cleanup: remove formal
8139 Thunk_Alias which is no longer required, cleanup evaluation of the
8140 the controlling type, and update the documentation.
8141 Replace occurrence of Default_Prim_Op_Count by
8142 Max_Predef_Prims. Addition of compile-time check to verify
8143 that the value of Max_Predef_Prims is correct.
8144 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8145 (Make_DT): Add parameter to indicate when type has been frozen by an
8146 object declaration, for diagnostic purposes.
8147 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8148 construction of statically allocated dispatch tables.
8149 (Make_DT): In case of library-level tagged types export the declaration
8150 of the primary tag. Remove generation of tags (now done by Make_Tags).
8151 Additional modifications to handle non-static generation of dispatch
8152 tables. Take care of building tables for asynchronous interface types
8153 (Make_Tags): New subprogram that generates the entities associated with
8154 the primary and secondary tags of Typ and fills the contents of Access_
8155 Disp_Table. In case of library-level tagged types imports the forward
8156 declaration of the primary tag that will be declared later by Make_DT.
8157 (Expand_Interface_Conversion): In case of access types to interfaces
8158 replace an itype declaration by an explicit type declaration to avoid
8159 problems associated with the scope of such itype in transient blocks.
8161 2007-08-14 Robert Dewar <dewar@adacore.com>
8162 Ed Schonberg <schonberg@adacore.com>
8163 Javier Miranda <miranda@adacore.com>
8165 * exp_util.ads, exp_util.adb:
8166 This patch replaces a number of occurrences of explicit tests for N_Null
8167 with calls to Known_Null. This improves tracking of null values, since
8168 Known_Null also catches null constants, and variables currently known to
8169 be null, so we get better tracking.
8170 (Ensure_Defined): create an itype reference only in the scope of the
8172 (Side_Effect_Free): A selected component of an access type that
8173 denotes a component with a rep clause must be treated as not
8174 side-effect free, because if it is part of a linked structure its
8175 value may be affected by a renaming.
8176 (Expand_Subtype_From_Expr): For limited objects initialized with build
8177 in place function calls, do nothing; otherwise we prematurely introduce
8178 an N_Reference node in the expression initializing the object, which
8179 breaks the circuitry that detects and adds the additional arguments to
8180 the called function. Bug found working in the new patch for statically
8181 allocated dispatch tables.
8182 (Is_Library_Level_Tagged_Type): New subprogram.
8183 (Remove_Side_Effects): If the expression of an elementary type is an
8184 operator treat as a function call.
8185 (Make_Literal_Range): If the index type of the array is not integer, use
8186 attributes properly to compute the constraint on the resulting aggregate
8189 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8190 class-wide type whose base type is an incomplete private type, leave
8191 class-wide type unfrozen so that freeze nodes can be generated
8192 properly at a later point.
8193 (Freeze_Entity, array case): Handle case of pragma Pack and component
8194 size attributre clause for same array.
8196 2007-08-14 Vincent Celier <celier@adacore.com>
8198 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8200 Allow all valid declarations in configuration project files
8201 (Reset): Initialize all tables and hash tables in the project tree data
8202 Major update of the Project Manager and of the project aware tools,
8203 including gprmake, so that the same sources in the GNAT repository
8204 can be used by gprbuild.
8205 (Slash_Id): Change type to be Path_Name_Type
8206 (Slash): Return a Path_Name_Type instead of a File_Name_Type
8208 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8210 Update Project Manager to new attribute names for ghprbuild
8211 Allow all valid declarations in configuration project files
8212 Major update of the Project Manager and of the project aware tools,
8213 including gprmake, so that the same sources in the GNAT repository
8214 can be used by gprbuild.
8217 Major update of the Project Manager and of the project aware tools,
8218 including gprmake, so that the same sources in the GNAT repository
8219 can be used by gprbuild.
8221 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8222 insensitive flag for attributes with optional index.
8223 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8224 array attribute, put the index in lower case.
8225 Update Project Manager to new attribute names for ghprbuild
8226 Allow all valid declarations in configuration project files
8227 Major update of the Project Manager and of the project aware tools,
8228 including gprmake, so that the same sources in the GNAT repository
8229 can be used by gprbuild.
8231 * prj-env.ads, prj-env.adb:
8232 Major update of the Project Manager and of the project aware tools,
8233 including gprmake, so that the same sources in the GNAT repository
8234 can be used by gprbuild.
8235 (Get_Reference): Change type of parameter Path to Path_Name_Type
8237 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8238 removing '-' from the path to start with the first character of the
8240 Major update of the Project Manager and of the project aware tools,
8241 including gprmake, so that the same sources in the GNAT repository
8242 can be used by gprbuild.
8243 Major update of the Project Manager and of the project aware tools,
8244 including gprmake, so that the same sources in the GNAT repository
8245 can be used by gprbuild.
8247 * prj-nmsc.ads, prj-nmsc.adb:
8248 Update Project Manager to new attribute names for ghprbuild
8249 Allow all valid declarations in configuration project files
8250 (Search_Directories): Detect subunits that are specified with an
8251 attribute Body in package Naming. Do not replace a source/unit in the
8252 same project when the order of the source dirs are known. Detect
8253 duplicate sources/units in the same project when the order of the
8254 source dirs are not known.
8255 (Check_Ada_Name): Allow all identifiers that are not reserved words
8257 Major update of the Project Manager and of the project aware tools,
8258 including gprmake, so that the same sources in the GNAT repository
8259 can be used by gprbuild.
8260 (Look_For_Sources): If the list of sources is empty, set the object
8261 directory of non extending project to nil.
8262 Change type of path name variables to be Path_Name_Type
8263 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8264 otherwise creating missing directories will fail.
8266 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
8267 prj-part.ads, prj-part.adb:
8268 Major update of the Project Manager and of the project aware tools,
8269 including gprmake, so that the same sources in the GNAT repository
8270 can be used by gprbuild.
8272 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8273 insensitive flag for attributes with optional index.
8274 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8275 array attribute, put the index in lower case.
8276 (Parse_Variable_Reference): Allow the current project name to be used in
8277 the prefix of an attribute reference.
8279 * prj-util.ads, prj-util.adb
8280 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8281 defaulted to False. When True, always check against indexes in lower
8284 * snames.ads, snames.h, snames.adb:
8285 Update Project Manager to new attribute names for gprbuild
8286 Allow all valid declarations in configuration project files
8288 2007-08-14 Robert Dewar <dewar@adacore.com>
8289 Ed Schonberg <schonberg@adacore.com>
8291 * opt.ads: Warning for non-local exception propagation now off by
8293 New switch -gnatI to disable representation clauses
8294 Implement new pragma Implicit_Packing
8297 Warning for non-local exception propagation now off by default
8298 Add warning for unchecked conversion of pointers wi different
8300 New switch -gnatI to disable representation clauses
8302 * usage.adb: new switch -gnatyS
8304 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8305 note that aggregates of anonymous array types are not flagged.
8306 -gnatwc now includes membership tests optimized away
8307 -gnatw.x warnings are now off by default
8308 Added conditional compilation Appendix
8309 Add documentation of -gnatI
8310 Add documentation for new -gnatyS style check
8311 Update documentation about SAL and auto-init on Windows.
8314 Add documentation for pragma Check_Name and 'Enabled attribute
8315 Document that Eliminate on dispatching operation is ignored
8316 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8317 Document pragma Main
8318 Document pragma Implicit_Packing
8320 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8321 different conventions
8322 New switch -gnatI to disable representation clauses
8324 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8325 recognized, report the invalid characters including "-gnat" instead of
8326 just the first character in the switch.
8327 New switch -gnatI to disable representation clauses
8328 Set Warn_On_Object_Renames_Function true for -gnatg
8330 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8331 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8332 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8333 to switch -aP (add directory to project search dir).
8335 * par-prag.adb: Implement new pragma Implicit_Packing
8337 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8338 type as having a non-standard representation, to force expansion on
8339 conversion to related types.
8340 (Analyze_Pragma): Warn on misspelled pragma
8341 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8342 Ensure consistent use of # in error messages
8343 Implement pragma Implicit_Packing
8345 2007-08-14 Olivier Hainque <hainque@adacore.com>
8346 Eric Botcazou <ebotcazou@adacore.com>
8348 * targtyps.c (get_target_maximum_default_alignment): New function.
8350 that the compiler might choose by default for a type or object.
8351 (get_target_default_allocator_alignment): New function. Alignment known
8352 to be honored by the target default allocator.
8353 (get_target_maximum_allowed_alignment): New function. Maximum alignment
8354 we might accept for any type or object on the target.
8355 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8357 * gigi.h (get_target_maximum_default_alignment): Declare new function.
8358 (get_target_default_allocator_alignment): Likewise.
8359 (get_target_maximum_allowed_alignment): Likewise.
8362 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8363 result of a function call, first try to use a stabilized reference for
8364 a constant renaming too.
8365 (validate_alignment): Use target_maximum_allowed_alignment instead of
8366 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8367 (gnat_to_gnu_entity): Use common nodes directly.
8368 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8369 alignment and size for the object.
8370 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8371 and N_Procedure_Call_Statement.
8372 (takes_address): Rename to lvalue_required_p, add third parameter
8373 'aliased' and adjust recursive calls.
8374 <N_Indexed_Component>: Update 'aliased' from the array type.
8375 <N_Selected_Component>: New case.
8376 <N_Object_Renaming_Declaration>: New Likewise.
8377 (Identifier_to_gnu): Adjust for above changes.
8378 (maybe_stabilize_reference) <CONST_DECL>: New case.
8380 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8381 between type variants.
8382 (build_simple_component_ref): Likewise.
8383 (build_call_alloc_dealloc): Use target_default_allocator_alignment
8384 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8385 aligning type circuitry for allocations from the default storage pool.
8386 (build_allocator): Likewise.
8387 (build_simple_component_ref): Manually fold the reference for a
8388 constructor if the record type contains a template.
8390 * utils.c (value_zerop): Delete.
8391 (gnat_init_decl_processing): Emit debug info for common types.
8392 (rest_of_record_type_compilation): If a union contains a field
8393 with a non-constant qualifier, treat it as variable-sized.
8394 (finish_record_type): Give the stub TYPE_DECL a name.
8395 (rest_of_record_type_compilation): Likewise.
8396 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
8397 types are equivalent array types.
8398 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8399 even if the type is not passed by reference.
8400 (static_ctors, static_dtors): Delete.
8401 (end_subprog_body): Do not record constructors and destructors.
8402 (build_global_cdtor): Delete.
8403 (gnat_write_global_declarations): Do not call build_global_cdtor.
8405 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8406 -fRTS=rtp is specified.
8407 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8410 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8411 of the personality function with SJLJ exceptions.
8413 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8414 the name of the personality function with SJLJ exceptions.
8416 2007-08-14 Robert Dewar <dewar@adacore.com>
8417 Ed Schonberg <schonberg@adacore.com>
8419 * par.ads, par.adb: Improve handling of extra right parens.
8420 (Par): Remove flag From_Limited_With_Clause.
8422 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8423 Improve handling of extra right parens.
8425 2007-08-14 Robert Dewar <dewar@adacore.com>
8427 * par-tchk.adb (TF_Semicolon): Improve error recovery
8429 2007-08-14 Robert Dewar <dewar@adacore.com>
8430 Ed Schonberg <schonberg@adacore.com>
8432 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8433 enumeration type, mark all literals as referenced.
8434 (Eval_Attribute, case 'Image): If the argument is an enumeration
8435 literal and names are available, constant-fold but mark nevertheless as
8437 Clean up function names.
8438 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8440 (Requires_Simple_Name_Prefix): Removed.
8442 2007-08-14 Robert Dewar <dewar@adacore.com>
8443 Ed Schonberg <schonberg@adacore.com>
8445 * sem_ch11.adb: Improved warnings for unused variables
8447 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8448 is a synchronized interface, the derived type is limited.
8449 (Analyze_Object_Declaration): Mark the potential coextensions in the
8450 definition and expression of an object declaration node.
8451 (Build_Derived_Type): For the completion of a private type declaration
8452 with a derived type declaration, chain the parent type's representation
8453 items to the last representation item of the derived type (not the
8454 first one) if they are not present already.
8455 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8456 object declaration of forward references to tags.
8457 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8458 subprogram types can appear as access discriminants of synchronized
8460 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8461 given in prefixed form as a selected component.
8462 (Process_Discriminants): If not all discriminants have defaults, place
8463 error message on a default that is present.
8464 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8465 extend a synchronized tagged type.
8466 Improved warnings for unused variables
8467 (Is_Visible_Component): Fix a visibility hole on a component inherited
8468 by a private extension when parent is itself declared as a private
8469 extension, and the derivation is in a child unit.
8470 (Find_Hidden_Interface): Move spec from the package body.
8472 2007-08-14 Robert Dewar <dewar@adacore.com>
8473 Ed Schonberg <schonberg@adacore.com>
8475 * sem_ch5.adb: Improve warnings on redundant assignments
8477 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8479 (Is_Synchronized_Tagged_Type): New subprogram that returns true
8480 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8481 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8482 is set to False. Improves handling of Known_[Not_]Null.
8483 (Wrong_Type): Special case address arithmetic attempt
8484 (Collect_Abstract_Interfaces): Add new formal to allow collecting
8485 abstract interfaces just using the partial view of private types.
8486 (Has_Abstract_Interfaces): Add new formal to allow checking types
8487 covering interfaces using the partial view of private types.
8488 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8489 component still needs to be defined in this case, but is never
8490 initialized as VMs are using other dispatching mechanisms.
8491 (Abstract_Interface_List): For a protected type, use base type to get
8493 Improve warnings on redundant assignments
8494 (Is_Variable): Handle properly an implicit dereference of a prefixed
8496 (Build_Actual_Subtype): If this is an actual subtype for an
8497 unconstrained formal parameter, use the sloc of the body for the new
8498 declaration, to prevent anomalises in the debugger.
8500 2007-08-14 Robert Dewar <dewar@adacore.com>
8502 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8503 dispatching operation
8505 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8506 Gary Dismukes <dismukes@adacore.com>
8509 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8510 expanded aggregate code before allocator, and ahead of declaration for
8511 temporary, to prevent access before elaboration when the allocator is
8512 an actual for an access parameter.
8513 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8514 the TSD and the table of interfaces.
8515 (Convert_To_Assignments): Augment the test for delaying aggregate
8516 expansion for limited return statements to include the case of extended
8517 returns, to prevent creation of an unwanted transient scope.
8518 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8519 (Expand_Array_Aggregate): Handle aggregates associated with
8520 statically allocated dispatch tables.
8521 (Expand_Record_Aggregate): Handle aggregates associated with
8522 statically allocated dispatch tables.
8523 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8524 of anonymous access type.
8526 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8528 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8529 is a variable that renames a slice, use the variable itself in the
8530 expannsion when the renamed expression itself may be modified between
8531 the declaration of the renaming and the array assignment.
8533 2007-08-14 Jerome Guitton <guitton@adacore.com>
8535 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8536 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8537 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8538 New functions; dummy implementations.
8540 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8541 functions, used to implement the multi-tasks mode routines on VxWorks.
8543 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8545 binding to the VxWorks routines which have changed between VxWorks 5
8547 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8548 which are not callable from a RTP.
8550 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8551 implemented for the multi-tasks mode on VxWorks 5 and 6.
8553 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8555 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8558 2007-08-14 Vincent Celier <celier@adacore.com>
8560 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
8561 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8562 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
8563 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8564 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8565 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8566 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8568 (Major_Id_Name): New function.
8569 mlib-tgt.ads/mlib.tgt.adb:
8570 (Library_Major_Minor_Id_Supported): New function, default returns True
8571 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8572 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8573 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8574 Implementation of Library_Major_Minor_Id_Supported returns False
8576 (Clean_Library_Directory): If major/minor ids are supported, clean all
8578 Major update of the Project Manager and of the project aware tools,
8579 including gprmake, so that the same sources in the GNAT repository
8580 can be used by gprbuild.
8582 2007-08-14 Olivier Hainque <hainque@adacore.com>
8584 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8585 (GCC_ZCX_Support): Switch to True.
8587 * s-intman-solaris.adb (Notify_Exception): Call
8588 Adjust_Context_For_Raise before raising, as expected for signal
8589 handlers in general.
8591 * s-intman-posix.adb (Notify_Exception): Remove declaration of
8592 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8593 to other implementation bodies.
8595 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8596 be visible by multiple implementation bodies.
8598 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8599 only for conditions coming from hardware.
8600 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8601 adjustments to signal context prior to exception raise from signal
8603 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8605 Solaris section: (__gnat_adjust_context_for_raise): New function.
8606 Implementation of the machine context adjustments to perform prior to
8607 raise from a signal handler. Version for both sparc and x86.
8608 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8609 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8610 prior to raising as expected for any handler, before possible nested
8611 faults to make sure all the contexts in a chain have been adjusted by
8612 the time we propagate.
8614 2007-08-14 Pascal Obry <obry@adacore.com>
8616 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8617 (SYSTEM_INFO): New record.
8618 (SetThreadIdealProcessor): New imported routine needed for supporting
8619 task_info pragma on Windows.
8621 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8622 info can be applied to the current host.
8623 (Create_Task): Set the ideal processor if information is present.
8625 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8626 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8628 2007-08-14 Olivier Hainque <hainque@adacore.com>
8630 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8631 stack size and initial stack pointer value for a given task.
8632 (Enter_Task): Get the stack attributes of the task we are entering and
8633 let the stack checking engine know about them.
8635 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8636 Let the stack-checking engine know about the initial sp value and stack
8637 size associated with the current task.
8638 (Set_Stack_Info): If a stack base has been notified for the current
8639 task, honor it. Fallback to the previous less accurate method otherwise.
8641 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8643 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8645 * sem_ch10.adb: Create a limited view of an incomplete type, to make
8646 treatment of limited views uniform for all visible declarations in a
8647 limited_withed package.
8648 Set flag indicating that a subprogram body for a child unit has a
8650 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8651 separate declaration, remove the unit name from visibility after
8652 compilation, so that environment is clean for subsequent compilations.
8653 (Install_Limited_Context_Clauses): Do not install a
8654 limited_private_with_clause unless the current unit is a body or a
8656 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8657 in the same fashion.
8658 (Install_Limited_Withed_Unit): Do not install a limited with clause if
8659 it applies to the declaration of the current package body.
8660 (Remove_Private_With_Clauses): If there is a regular with_clause for
8661 the unit, delete Private_With_Clause from context, to prevent improper
8662 hiding when processing subsequent nested packages and instantiations.
8664 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8666 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8667 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8668 representing absolute path names.
8669 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8671 * cstreams.c (__gnat_full_name for VxWorks): Use
8672 __gnat_is_absolute_path to detect whether we need to add the current
8673 directory to normalize the path.
8675 2007-08-14 Javier Miranda <miranda@adacore.com>
8678 a-tags.adb (Displace): Associate a message with the raised CE
8680 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8681 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8682 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8684 (Default_Prim_Op_Count): Removed.
8685 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8686 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8687 Remove pragma Inline_Always.
8689 * rtsfind.ads (Default_Prim_Op_Count): Removed
8690 (Max_Predef_Prims): New entity
8691 (RE_Expanded_Name): Removed
8692 (RE_HT_Link): Removed
8693 (RE_Iface_Tag): Remmoved
8694 (RE_Ifaces_Table): Removed
8695 (RE_Interfaces_Array): Removed
8696 (RE_Interface_Data_Element): Removed
8697 (RE_Nb_Ifaces): Removed
8698 (RE_RC_Offset): Removed
8699 (RE_Static_Offset_To_Top): Removed
8701 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8703 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8704 Prim_Op_Count by Max_Predef_Prims.
8706 2007-08-14 Thomas Quinot <quinot@adacore.com>
8707 Vincent Celier <celier@adacore.com>
8709 * binde.adb (Elab_All_Links): Remove unnecessary call to
8710 Generic_Separately_Compiled (if a unit satisfies this predicate, there
8711 won't be an associated Afile).
8712 (Elab_All_Links): Fail if a referenced unit cannot be found
8715 Fix comments in bindgen regarding consistency checks done in Bcheck:
8716 the checks are made across units within a partition, not across several
8718 Fix generation of C binder file for VxWorks.
8720 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8721 Generic_May_Lack_ALI, more descriptive of the current use of the
8722 predicate, and update documentation.
8724 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8725 reorganization and documentation update for the case of predefined
8726 library generics (for which we do not reference an Afile).
8728 2007-08-14 Robert Dewar <dewar@adacore.com>
8730 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8731 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8732 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8733 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8734 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8735 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8736 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8737 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8738 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8739 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8740 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8741 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8742 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8743 g-altcon.adb: Minor reformatting
8745 ada-tree.h: Delete empty line.
8747 ali.ads: Minor reformatting
8748 Clarification of comments.
8749 Minor spelling correction
8751 * exp_dbug.adb: Add Warnings Off to suppress new warning
8753 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8756 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8759 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8761 * a-textio.ads: Reorder the standard input/output/error declarations
8764 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8766 * par-ch2.adb: Recognize RM specially in errout
8767 Change 'R'M to RM in all error messages
8769 * scng.adb: Recognize RM specially in errout
8771 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8772 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8774 * s-direio.adb: Add missing routine header box.
8776 * sem_attr.ads: Add ??? comments
8778 * sem_eval.adb: Recognize RM specially in errout
8779 Change 'R'M to RM in all error messages
8781 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8783 * s-tasinf.ads: Fix minor comment typo.
8785 * a-cihama.adb: Minor comment addition
8787 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8790 * s-tasinf-tru64.ads: Fix minor comment typo.
8792 * itypes.ads: Comment update.
8794 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8797 * argv.c: Added protection against null gnat_argv and gnat_envp.
8799 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8800 warning message when Tolerate_Consistency_Errors is True.
8802 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8803 Any_Id, as this subprogram is only applicable to *type* entities (it
8804 sets RM_Size). Instead initialize just Esize and Alignment.
8806 2007-08-14 Bob Duff <duff@adacore.com>
8808 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
8809 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
8810 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
8811 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8812 a-coorse.ads (Next): Applied pragma Inline.
8813 Make all Containers packages Remote_Types (unless they are already
8815 (Previous): applied pragma Inline
8816 (Elements_Type): is now a record instead of an array
8818 2007-08-14 Thomas Quinot <quinot@adacore.com>
8820 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8822 (Set_Item): When the new item is an element of the currently allocated
8823 table passed by reference, save a copy on the stack if we're going
8824 to reallocate. Also, in Table.Set_Item, make sure we test the proper
8825 variable to determine whether to call Set_Last.
8827 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8828 symbols-vms.adb, symbols-processing-vms-alpha.adb,
8829 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8830 some occurrences of the pattern
8832 T.Table (T.Last) := Value;
8833 with a cleaner call to
8836 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8837 Gary Dismukes <dismukes@adacore.com>
8838 Thomas Quinot <quinot@adacore.com>
8840 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8841 derived type with interface progenitors use the analyzed formal as the
8842 parent of the actual, to create renamings for all the inherited
8843 operations in Derive_Subprograms.
8844 (Collect_Previous_Instances): new procedure within of
8845 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8846 unit being loaded, to ensure that the generation of global symbols is
8847 consistent in different compilation modes.
8848 (Is_Tagged_Ancestor): New function testing the ancestor relation that
8849 takes progenitor types into account.
8850 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8851 traversing over the primitives of the formal and actual types to locate
8852 any abstract subprograms of the actual type that correspond to a
8853 nonabstract subprogram of the formal type's ancestor type(s), and issue
8854 an error if such is found.
8855 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8856 Instantiate_Package_Body, Instantiate_Subprogram_Body):
8857 Remove bogus guard around calls to Inherit_Context.
8858 (Reset_Entity): If the entity is the selector of a selected component
8859 that denotes a named number, propagate constant-folding to the generic
8860 template only if the named number is global to the generic unit.
8861 (Set_Instance_Env): Only reset the compilation switches when compiling
8862 a predefined or internal unit.
8864 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8866 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8867 parameter to determine whether operation applies to the prefix.
8868 (Complete_Object_Operation): If actual has an access type and
8869 controlling formal is not an in_parameter, reject the actual if it is
8870 an access_to_constant type.
8871 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8872 type, the candidate operations are found in the scope of declaration of
8873 the type, because the type has no primitive subprograms.
8874 (Analyze_Selected_Component): If prefix is class-wide, and root type is
8875 a private extension, only examine visible components before trying to
8876 analyze as a prefixed call.
8877 Change Entity_List to Type_To_Use, for better readability.
8878 (Has_Fixed_Op): Use base type when checking whether the type of an
8879 operator has a user-defined multiplication/division
8880 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8881 user-defined operators are available for fixed-point types.
8883 2007-08-14 Thomas Quinot <quinot@adacore.com>
8884 Ed Schonberg <schonberg@adacore.com>
8886 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
8887 formal At_Any_Place indicating, when True, that we want to test for
8888 availability of the stream attribute at any place (as opposed to the
8889 current visibility context only).
8890 (Missing_Read_Write_Attributes): A stream attribute is missing for the
8891 purpose of enforcing E.2.2(8) only if it is not available at any place.
8892 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
8893 when checking the legality of an extension aggregate in a preelaborable
8894 package. Treat the literal null as a valid default expression in a
8895 component declaration for a type with preelaborable initialization.
8896 A limited interface is a legal progenitor for the designated type of a
8897 remote access to class-wide type.
8899 2007-08-14 Thomas Quinot <quinot@adacore.com>
8900 Ed Schonberg <schonberg@adacore.com>
8902 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
8903 reference): Use correct entity as denoted entity for the selector of
8905 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
8906 setting the Referenced_As_LHS flag for entities that are implicitly
8908 (Find_Type): If the type is an internally generated incomplete type,
8909 mark the full view as referenced, to prevent spurious warnings.
8910 (Find_Selected_Component, Has_Components): Handle properly non-limited
8911 views that are themselves incomplete types.
8912 Handle interfaces visible through limited-with clauses.
8913 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
8914 subprogram generic actual for which we have generated a renaming.
8915 Warn when the renaming introduces a homonym of
8916 the renamed entity, and the renamed entity is directly visible.
8918 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8919 Hristian Kirtchev <kirtchev@adacore.com>
8921 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
8922 appear in the subtree to the current allocator if it is not a static
8924 (Resolve_Allocator): Perform cleanup if resolution has determined that
8925 the allocator is not a coextension.
8926 (Resolve): Skip an interpretation hidden by an abstract operator only
8927 when the type of the interpretation matches that of the context.
8928 (Resolve): When looping through all possible interpretations of a node,
8929 do not consider those that are hidden by abstract operators.
8930 (Resolve_Actuals): When verifying that an access to class-wide object
8931 is an actual for a controlling formal, ignore anonymous access to
8932 subprograms whose return type is an access to class_wide type.
8933 (Resolve_Slice): If the prefix of the slice is a selected component
8934 whose type depends on discriminants, build its actual subtype before
8935 applying range checks on the bounds of the slice.
8936 (Valid_Conversion): In an instance or inlined body, compare root types,
8937 to prevent anomalies between private and public views.
8938 (Resolve): Improve error message for ambiguous fixed multiplication
8939 expressions that involve universal_fixed multiplying operations.
8941 2007-08-14 Javier Miranda <miranda@adacore.com>
8942 Hristian Kirtchev <kirtchev@adacore.com>
8944 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
8945 location to allow the correct generation of errors in case of
8946 restrictions applied to the expanded code.
8947 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
8948 function if the condition does not reference them.
8949 (Expand_Entry_Body_Declarations): Mark the index constant as having a
8952 2007-08-14 Thomas Quinot <quinot@adacore.com>
8953 Pablo Oliveira <oliveira@adacore.com>
8955 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
8956 typecode parameters for a union (in a variant record), remove
8957 extraneous layer of Any wrapping for member label.
8958 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
8959 elabration statements, register the package with the name server
8960 at the beginning, not at the end, of the elaboration statements so
8961 that they can create remote access to subprogram values that designate
8962 remote subprograms from the package.
8964 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8966 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
8967 values to compute the number of seconds since the Unix Epoc in order to
8968 account for Daylight Savings Time. Perform special processing for dates
8969 that are earlier than the Unix Epoc to obtain a negative number.
8971 2007-08-14 Emmanuel Briot <briot@adacore.com>
8973 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
8976 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
8978 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
8979 binder-generated file is not in Ada.
8980 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
8981 recorded in the ALI file.
8982 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
8984 2007-08-14 Vincent Celier <celier@adacore.com>
8986 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
8987 (Output_Source): Do nothing if parameter is No_Sdep_Id
8989 * make.adb (Gnatmake): Do not rebuild an archive simply because a
8990 shared library it imports has a later time stamp.
8991 (Check): Resolve the symbolic links in the path name of the object
8993 Check that the ALI file is in the correct object directory
8994 Check if a file name does not correspond to the mapping of units
8996 (Display_Version): New procedure
8997 (Initialize): Process switches --version and --help
8998 Use type Path_Name_Type for path name
9000 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
9002 * impunit.adb: Re-organize System.Random_Numbers and
9003 GNAT.Random_Numbers and add to builds.
9005 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9007 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9009 * a-assert.ads, a-assert.adb: New files.
9011 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9013 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9014 if AAMP_On_Target is True, then the size of the type encompasses two
9015 addresses (a static link and a subprogram address), except in the case
9016 of library-level access types.
9018 2007-08-14 Vincent Celier <celier@adacore.com>
9020 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9022 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9023 possible trailing spaces.
9024 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9026 2007-08-14 Javier Miranda <miranda@adacore.com>
9028 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9029 null-excluding access types.
9031 2007-08-14 Javier Miranda <miranda@adacore.com>
9033 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9034 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9035 of private types add missing check on matching interfaces in the
9036 partial and full declarations.
9037 (Analyze_Protected_Type): Code cleanup.
9038 (Analyze_Task_Type): Code cleanup.
9040 2007-08-14 Javier Miranda <miranda@adacore.com>
9042 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9043 generated interface thunk.
9045 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9047 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9048 obsolescent warning on application of 'Class to an incomplete type.
9050 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9051 prevent obsolescent warning on application of 'Class to an incomplete
9054 2007-08-14 Pascal Obry <obry@adacore.com>
9056 * s-fileio.adb (Is_Open): Add check for usability of the underlying
9059 2007-08-14 Cyrille Comar <comar@adacore.com>
9061 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9062 since it is potentially used in cases implying double finalization of
9065 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9067 * s-tasini.adb (Get_Stack_Info): Move this function to
9068 System.Soft_Links.Tasking because it is common to the full and the
9069 restricted run times.
9070 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9071 in SSL.Tasking.Init_Tasking_Soft_Links.
9073 * s-solita.adb (Get_Stack_Info): Function moved from
9074 System.Tasking.Initialization because it is common to the full and the
9075 restricted run times.
9076 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9078 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9080 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9081 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9082 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9085 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9088 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9090 * s-veboop.adb (SU): New named number initialized to
9091 System.Storage_Unit.
9092 (True_Val): The initialization expression is revised to use SU (=
9093 Storage_Unit) rather than assuming 8 for the component size of an
9094 unpacked Boolean array.
9096 2007-08-14 Tristan Gingold <gingold@adacore.com>
9098 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9100 * tb-ivms.c: New file.
9102 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9104 2007-08-14 Geert Bosch <bosch@adacore.com>
9106 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9107 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9108 Add required linker pragmas for automatically linking with the gnalasup
9109 linear algebra support library, and the systems math library.
9110 Rename cdot to cdotu and zdot to zdotu.
9111 Update header comment to describe purpose of package.
9113 2007-08-14 Thomas Quinot <quinot@adacore.com>
9115 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9116 an explicitly specified Associated_Final_Chain, use that list.
9117 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9119 (Expand_N_Package_Declaration): Build dispatch tables of library level
9120 tagged types. Minor code cleanup.
9122 2007-08-14 Vincent Celier <celier@adacore.com>
9124 * gnatchop.adb (Terminate_Program): Remove exception and use
9125 Types.Terminate_Program instead.
9127 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9128 (Find_Program_Name): Added protection against empty name.
9129 (OS_Exit_Through_Exception): New procedure
9131 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9132 (OS_Exit_Default): New procedure that contains the previous
9133 implementation of procedure OS_Exit.
9134 (Final_Value): Remove obsolete Interix stuff.
9136 2007-08-14 Thomas Quinot <quinot@adacore.com>
9138 * g-socket.ads: Reorganize example code so that it also works on
9141 2007-08-14 Tristan Gingold <gingold@adacore.com>
9143 * g-trasym.ads: AIX now supports symbolic backtraces.
9145 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9147 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9148 units being loaded to detect circularities. A circularity may be
9149 present even if the current chain of pending units to load starts from
9150 a limited_with_clause.
9152 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9153 rather than a boolean flag, in order to detect circularities in
9156 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9157 than propagating the From_Limited_With flag, in order to handle
9158 properly circularities involving with_clauses.
9160 2007-08-14 Nicolas Setton <setton@adacore.com>
9162 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9165 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9167 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9168 to build for libgnala.
9169 libgnat: Add rules to build libgnala.a
9170 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9171 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9172 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9173 kernel run-time lib for VxWorks 6, which would provide a different
9174 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9175 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9176 running ZCX by default.
9177 Add g-sttsne-locking to LynxOS version.
9178 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9179 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9181 * system-darwin-x86.ads: New file.
9183 * Make-lang.in: Delete files before copying onto them, so if they are
9184 read-only, the copy won't fail.
9187 2007-08-14 Pascal Obry <obry@adacore.com>
9189 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9192 2007-08-14 Vincent Celier <celier@adacore.com>
9194 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9195 (Gcc): Initialize Gcc_Name at the first call
9197 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9199 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9200 with_clauses of the enclosing unit when analyzing the package
9201 specification of a nested instance.
9203 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9205 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9206 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9207 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9208 layout of N_Allocator.
9210 2007-08-14 Thomas Quinot <quinot@adacore.com>
9212 * rtsfind.adb (Check_RPC): Add PCS version check.
9214 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9215 (Gnat_Free_Software): New function.
9217 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9218 the PCS_Version value from s-parint, used to check that it is consistent
9219 with what exp_dist expects.
9221 * s-parint.ads (PCS_Version): New entity for checking consistency
9222 between exp_dist and PCS.
9224 * gen-soccon.c: (SO_REUSEPORT): New constant.
9226 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9228 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9229 variable Sub_Second to Duration in order to accomodate a larger range
9230 of arithmetic operations.
9232 2007-08-14 Bob Duff <duff@adacore.com>
9234 * g-sttsne-locking.ads: Move comments from spec to body.
9235 * g-sttsne-locking.adb: Move comments from spec to body.
9236 * g-sttsne-vxworks.ads: Removed.
9237 * g-sttsne-vxworks.adb: Removed.
9239 2007-08-11 Ian Lance Taylor <iant@google.com>
9241 * misc.c (gnat_get_alias_set): Change return type to
9244 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9246 * decl.c, utils2.c: Fix whitespace in last change.
9248 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9250 * decl.c (compare_field_bitpos): Constify.
9251 * utils2.c (compare_elmt_bitpos): Likewise.
9253 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
9255 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
9256 anonymous access type.
9257 (pthread_sigmask): Now take an access sigset_t.
9259 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9261 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9263 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
9265 PR tree-optimization/25737
9266 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9268 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9270 * trans.c (Attribute_to_gnu): When subtracting an
9271 offset from a pointer, use POINTER_PLUS_EXPR with
9272 NEGATE_EXPR instead of MINUS_EXPR.
9273 (gnat_to_gnu): Likewise.
9274 * utils.c (convert): When converting between
9275 thin pointers, use POINTER_PLUS_EXPR and sizetype
9277 * utils2.c (known_alignment): POINTER_PLUS_EXPR
9278 have the same semantics as PLUS_EXPR for alignment.
9279 (build_binary_op): Add support for the semantics of
9280 POINTER_PLUS_EXPR's operands.
9281 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9283 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
9285 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9286 of get_signed_or_unsigned_type.
9287 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9289 2007-06-11 Bob Duff <duff@adacore.com>
9290 Thomas Quinot <quinot@adacore.com>
9292 * g-stsifd-sockets.adb (Create): Work around strange behavior of
9293 'bind' on windows that causes 'connect' to fail intermittently, by
9294 retrying the 'bind'.
9295 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9297 2007-06-10 Duncan Sands <baldrick@free.fr>
9299 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9300 than to void, for the fields when making a new fat pointer type.
9301 (gnat_substitute_in_type): Now substitute_in_type.
9302 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
9303 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9304 * utils.c (update_pointer_to): Update fat pointers by updating the
9305 dummy node pointers used for the fields.
9307 2007-06-06 Thomas Quinot <quinot@adacore.com>
9308 Bob Duff <duff@adacore.com>
9310 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9311 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9312 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
9313 constant Thread_Blocking_IO, always True by default, set False
9314 on a per-runtime basis.
9315 (Need_Netdb_Buffer): New constant.
9317 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9318 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9321 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9322 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9323 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9324 child package Task_Safe_NetDB
9325 (Host_Error_Messages): Add stub body.
9326 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9328 * g-soccon-mingw.ads: Add Windows-specific constants.
9329 (Need_Netdb_Buffer): New constant.
9330 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9331 wrapper and import inet_addr(3) from the standard sockets library
9333 (In_Addr): Add alignment clause.
9334 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9336 2007-06-06 Robert Dewar <dewar@adacore.com>
9338 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9339 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9340 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9341 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9342 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9343 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9344 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9345 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9346 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9347 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9348 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9349 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9350 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9351 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9352 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9353 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9354 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9355 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9356 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9357 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9358 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9359 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9360 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9361 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9362 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9363 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9364 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9365 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9366 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9367 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9368 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9369 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9370 Unchecked_* by Ada.Unchecked_*
9372 2007-06-06 Robert Dewar <dewar@adacore.com>
9374 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9375 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9376 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9377 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9378 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9379 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9381 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9382 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9383 s-tasloc.adb, s-tasloc.ads: New files.
9385 2007-06-06 Bob Duff <duff@adacore.com>
9388 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9389 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9390 (Send_Signal, Close): Raise Invalid_Process if the process id is
9392 (Pattern_Matcher_Access): Is now a general access type to be able to
9395 2007-06-06 Thomas Quinot <quinot@adacore.com>
9396 Arnaud Charlet <charlet@adacore.com>
9398 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9399 (SIGEMT is now used instead of SIGTERM on AIX).
9401 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9402 (Time_Slice_Supported): Set to True.
9403 Use SIGEMT instead of SIGTERM as SIGADAABORT.
9405 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9407 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9408 (Time, Time)): Use To_Relative_Time rather than manual calculation to
9409 express the bounds of Duration as Time. Raise Time_Error when the
9410 result is greater or equal to the higher bound of Duration (on the
9412 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9414 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9416 ("-" (Time, Time)): Reorder code.
9417 (All_Leap_Seconds): Removed.
9418 (Arithmetic_Operations.Add): Remove sign related kludge.
9419 (Arithmetic_Operations.Difference): Control the leaps seconds processing
9420 with flag Leap_Support.
9421 (Arithmetic_Operations.Subtract): Remove sign related kludge.
9422 (Check_Within_Time_Bounds): New procedure.
9423 (Clock): Control the leap seconds processing with flag Leap_Support.
9424 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9425 (Formatting_Operations.Split): Control the leap seconds processing with
9427 (Formatting_Operations.Time_Of): Control the leaps seconds processing
9428 with flag Leap_Support. Adjust the year, month and day (if applicable)
9429 when the value of day seconds designates a new day.
9430 (Split): Use parameter associations for better readability. Integrate
9432 (Time_Of): Use parameter associations for better readability. Integrate
9435 * a-calfor.adb (Split): Use parameter associations for better
9436 readability. Integrate flag Is_Ada_05.
9437 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9438 better readability. Integrate flag Is_Ada_05.
9440 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9442 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
9443 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
9444 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
9445 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
9446 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
9447 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
9448 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
9449 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
9450 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
9451 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9452 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9453 time when entering this routine to detect a backward clock setting
9454 (manual setting or DST adjustment), to avoid waiting for a longer delay
9456 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9457 Remove handling of deferred priority change, and replace by setting the
9458 task priority directly, as required by AI-188.
9460 (Max_Task_Image_Length): New constant.
9461 Replace Warnings (Off) by Unreferenced pragma, cleaner.
9462 (Dynamic_Priority_Support): Removed, no longer needed.
9463 (Poll_Base_Priority_Change): Ditto.
9464 (Set_Ceiling): Add this procedure to change the ceiling priority
9465 associated to a lock. This is a dummy implementation because dynamic
9466 priority ceilings are not supported by the underlying system.
9468 * a-dynpri.adb (Set_Priority): Take into account case where Target is
9469 accepting a RV with its priority boosted.
9470 Remove handling of deferred priority change, and replace by setting the
9471 task priority directly, as required by AI-188.
9473 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9475 Remove handling of deferred priority change, and replace by setting the
9476 task priority directly, as required by AI-188.
9477 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9480 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9481 (Poll_Base_Priority_Change): Removed.
9482 Code clean up: use SSL.Current_Target_Exception.
9484 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9485 to run as this is a potentially dispatching point.
9486 (Call_Synchronous): Use Local_Defer_Abort.
9487 (Callable): Relax assertion.
9488 (Selective_Wait): Relax assertion in case abort is not allowed.
9489 Remove handling of deferred priority change, and replace by setting the
9490 task priority directly, as required by AI-188.
9492 * s-tasuti.adb (Make_Passive): Adjust assertions.
9493 Remove handling of deferred priority change, and replace by setting the
9494 task priority directly, as required by AI-188.
9496 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9498 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9499 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
9500 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9501 system-vxworks-mips.ads, system-vxworks-alpha.ads,
9502 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
9503 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
9504 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
9505 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
9506 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9507 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9508 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9509 This patch changes the largest non-binary modulus from 2**31-1 to
9511 (Compiler_System_Version): Removed, no longer used.
9512 Clean up system files by removing flags only used on a single target.
9513 Also remove obsolete flags, only used during bootstrap from system.ads
9514 (Address): Add a pragma Preelaborable_Initialization.
9516 * system-aix.ads: Ditto.
9517 (GCC_ZCX_Support): Set to true.
9518 Update priority range on AIX and map Ada priorities to target
9519 priorities appropriately for different scheduling policies.
9521 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9523 2007-06-06 Vincent Celier <celier@adacore.com>
9525 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9526 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9528 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
9529 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
9530 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
9531 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9532 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9533 MLib.Tgt, containing the default versions of the exported subprograms.
9534 For each platform, create a specific version of the body of new child
9535 package MLib.Tgt.Specific that contains only the body of subprograms
9536 that are different from the default.
9537 (Archive_Builder_Append_Options): New function.
9539 2007-06-06 Matthew Gingell <gingell@adacore.com>
9541 * s-osinte-aix.adb: Map Ada priorities to target priorities
9542 appropriately for different scheduling policies.
9544 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9546 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9548 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9549 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
9551 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9553 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9554 Noop on VMS, added for interface commonality.
9556 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9557 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9558 Olivier Hainque <hainque@adacore.com>
9560 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9561 renamed expression of a full renaming at toplevel.
9562 (gnat_to_gnu_entity, case object): If not defining, do not look inside
9563 the values the constant is initialized to if it is an N_Allocator.
9564 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9565 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9566 (make_aligning_type): Accept an extra ROOM argument for storage to be
9567 made available before the aligned field, and an extra BASE_ALIGN
9568 argument for callers to pass the alignment guaranteed to be honored for
9569 the whole aligning object. Avoid call to finish_record_type, which only
9570 interferes with the sizes we want to set.
9571 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9572 make_aligning_type for super-aligned objects on stack.
9573 (components_to_record): Pass the adjusted size of the type when creating
9574 fields in the qualified union for the variant part.
9575 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9576 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9578 (maybe_pad_type): Set TYPE_USER_ALIGN.
9579 (make_aligning_type): Likewise.
9580 ALIGN argument is unsigned int.
9581 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9582 (gnat_to_gnu_param): Likewise, for parameters.
9583 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9584 if it is constant and stems from a function call.
9585 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9586 of the record is specified. Adjust accordingly.
9587 (adjust_packed): New static function.
9588 (gnat_to_gnu_field): Use it to adjust the packedness setting.
9589 (components_to_record): Likewise.
9590 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9591 side-effects if the object is deemed constant.
9592 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9593 type instead of merely finalizing it. Tidy.
9594 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9595 <E_Access_Type>: Likewise.
9596 (defer_debug_incomplete_list): Rename to defer_finalize_list.
9597 (defer_debug_level): Delete.
9598 (gnat_to_gnu_entity) <debug_deferred>: Likewise
9599 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9601 <E_Record_Type>: Do not explicitly defer finalizing the type.
9602 Adjust for write_record_type_debug_info renaming.
9603 <E_Subprogram_Type>: Likewise.
9604 Finalize deferred types right after deferred incomplete types are
9606 (rest_of_type_decl_compilation): New global function.
9607 (components_to_record): Rename defer_debug parameter to do_not_finalize.
9608 (components_to_record): Propagate the packedness to the fields of the
9609 qualified union type if there is a variant part.
9610 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9611 instead of inline code to adjust the XUT field offsets.
9612 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9613 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9614 and write the debug info if the type derives from a discriminated one.
9615 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9616 <E_Array_Subtype>: Likewise.
9617 <E_String_Literal_Subtype>: Likewise.
9618 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9619 an alignment clause.
9620 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9621 before giving warning.
9622 (prepend_one_attribute_to): New function, helper to prepend an attribute
9623 to an attribute list.
9624 (gnat_to_gnu_entity) <E_Procedure>: Use it.
9625 (prepend_attributes): Likewise.
9626 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9627 <E_Array_Type>: Declare the padding type for the element type, if any.
9628 <E_Array_Subtype>: Likewise.
9629 (defer_limited_with): New variable.
9630 (Gigi_Equivalent_Type): New function.
9631 (gnat_to_gnu_entity): Use it at start and use result throughout.
9632 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9633 Gigi_Equivalent_Type, support Limited_With, allow two levels of
9634 indirection, precompute if unconstrained array to simplify logic, and
9635 use defer_limited_with to defer elaboration of some types from limited
9637 (finalize_from_with_types): New function.
9639 2007-06-06 Gary Dismukes <dismukes@adacore.com>
9640 Eric Botcazou <ebotcazou@adacore.com>
9641 Tristan Gingold <gingold@adacore.com>
9642 Olivier Hainque <hainque@adacore.com>
9644 * trans.c (Identifier_to_gnu): Change test for deferred constant by
9645 adding guard that the entity is an E_Constant before testing presence
9646 of Full_view (and remove unnecessary test that entity is not a type).
9647 For a CONST_DECL used by reference, manually retrieve
9648 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
9649 (struct language_function): Move from utils.c to here.
9650 (struct parm_attr): New structure.
9651 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9652 (f_parm_attr_cache): New macro.
9653 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9654 expressions for the 'First, 'Last and 'Length attributes of the
9655 unconstrained array IN parameters.
9656 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9657 Allocate the information structure for the function earlier, as well
9658 as the language-specific part.
9659 If the parameter attributes cache has been populated, evaluate the
9660 cached expressions on entry.
9661 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
9662 N_Procedure_Call_Statement and N_Indexed_Component.
9663 (Pragma_to_gnu): Translate inspection_point to an asm statement
9664 containaing a comment and a reference to the object (either its address
9665 for BLKmode or its value).
9666 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9667 to go to DECL_INITIAL. Together with the size constraint relaxation
9668 in create_var_decl, enlarges the set of situations in which an
9669 identifier may be used as an initializer without implying elaboration
9671 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9672 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9674 (maybe_stabilize_reference): Remove lvalues_only parameter.
9675 (gnat_stabilize_reference): Adjust for above change.
9676 (gnat_to_gnu): Do not set location information on the result
9677 if it is a reference.
9678 (add_cleanup): Add gnat_node parameter and set the location of the
9680 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9681 (Exception_Handler_to_gnu_zcx): Likewise.
9682 (gigi): Remove the cgraph node if the elaboration procedure is empty.
9683 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9684 the former right after the latter.
9685 (start_stmt_group): Make global.
9686 (end_stmt_group): Likewise.
9687 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9689 (gnu_program_error_label_stack): Likewise.
9690 (gigi): Initialize them.
9691 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9692 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9694 (push_exception_label_stack): New function.
9695 (takes_address): New function.
9697 * utils.c (struct language_function): Move to trans.c from here.
9698 (unchecked_convert): Do not wrap up integer constants in
9700 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9701 the latter for aggregate types, unexpected by later passes, and relax an
9702 arbitrary size constraint on the former.
9703 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9704 to compare the sizes.
9705 (convert_vms_descriptor): When converting to a fat pointer type, be
9706 prepared for a S descriptor at runtime in spite of a SB specification.
9707 (shift_unc_components_for_thin_pointers): New function.
9708 (write_record_type_debug_info): For variable-sized fields, cap the
9709 alignment of the pointer to the computed alignment.
9710 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9711 If REP_LEVEL is 2, do not compute the sizes.
9712 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9713 (build_unc_object_type): Likewise.
9714 (declare_debug_type): New function.
9716 * ada-tree.def: USE_STMT: removed (not emitted anymore).
9718 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9719 no statement is expandable anymore.
9720 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9721 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9722 when the user requested it explicitely.
9723 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9725 (get_alias_set): Return alias set 0 for a type if
9726 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9728 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9729 (DECL_FUNCTION_STUB): New accessor macro.
9730 (SET_DECL_FUNCTION_STUB): New setter macro.
9732 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9734 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9737 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9739 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9740 Rename to Abort_Task_Interrupt to be able to keep the same interface
9741 as the rest of the targets.
9743 * s-osinte-vxworks.ads s-osinte-vxworks.adb
9744 (To_VxWorks_Priority): Remove explicit "in" mode indicator
9746 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9749 2007-06-06 Robert Dewar <dewar@adacore.com>
9751 * a-chahan.ads: Remove obsolescent pragmas
9753 * a-chlat1.ads: Minor reformatting
9755 2007-06-06 Robert Dewar <dewar@adacore.com>
9757 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9760 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9763 * errout.ads (Finalize): Changed interface
9764 (Output_Messages): New procedure
9765 (Compilation_Errors): New Interface
9767 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9768 Finalize/Output_Messages interface for Errout
9769 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9772 2007-06-06 Thomas Quinot <quinot@adacore.com>
9773 Olivier Hainque <hainque@adacore.com>
9774 Robert Dewar <dewar@adacore.com>
9776 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9778 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9779 propagation starts, to let debuggers know about the event in a reliable
9781 (Local_Raise): Moved to System.Exceptions
9782 More convenient to have this as a separate unit
9784 * s-except.adb, s-except.ads: New files.
9786 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9787 Debug_Unhandled_Exception in System.Exceptions where it belongs
9788 together with a couple of other debug helpers.
9789 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9790 the former Unhandled_Exception.
9792 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9793 (Warn_No_Exception_Propagation): New procedure
9794 (Warn_If_No_Propagation): Rewritten for new warning generation
9795 (Expand_Exception_Handlers): New warning generation
9796 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9797 (Add_Exception_Label): Use Special_Exception_Package_Used for test
9798 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9799 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9800 even if restriction is set (makes life easier in Check_Returns)
9801 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9802 checking exception identities.
9803 (Expand_Local_Exception_Handlers): Do not optimize when all others case
9804 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9805 block for handler (used by Check_Returns)
9806 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9807 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9808 remove all exception handlers when optimizing local raise statements.
9809 (Find_Local_Handler): Use Get_Renamed_Entity
9810 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9811 marked analyzed after expanding exception handlers, do not generate
9812 redundant cleanup actions, because they have been constructed already.
9814 2007-06-06 Thomas Quinot <quinot@adacore.com>
9816 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9817 presence of this categorization pragma is mandated by the language.
9818 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9821 2007-06-06 Vincent Celier <celier@adacore.com>
9822 Robert Dewar <dewar@adacore.com>
9824 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
9825 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9826 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
9827 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
9828 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
9829 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
9830 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
9831 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
9832 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
9833 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
9834 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9836 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9837 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9838 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9839 Use variables of types File_Name_Type and Unit_Name_Type in error
9841 (Get_Name): Add parameter Ignore_Special, and set it reading file name
9842 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9844 Define flags Flag217-Flag230 with associated subprograms
9845 (Flag_Word5): New record type.
9846 (Flag_Word5_Ptr): New access type.
9847 (To_Flag_Word5): New unchecked conversion.
9848 (To_Flag_Word5_Ptr): Likewise.
9849 (Flag216): New function.
9850 (Set_Flag216): New procedure.
9852 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9854 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9857 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9859 2007-06-06 Javier Miranda <miranda@adacore.com>
9861 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9863 (Object_Specific_Data_Array): This is now internal to the package.
9864 (Object_Specific_Data): This is now internal to the package.
9865 (Select_Specific_Data_Element): This is now internal to the package.
9866 (Select_Specific_Data_Array): This is now internal to the package.
9867 (Select_Specific_Data): This is now internal to the package.
9868 (Offset_To_Top_Function_Ptr): This is now public.
9869 (To_Offset_To_Top_Function_Ptr): Removed.
9870 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9871 local to subprogram Offset_To_Top.
9872 (Predefined_DT): Removed.
9873 (Typeinfo_Ptr): Removed.
9874 (OSD): This function is now internal to this package.
9875 (SSD): This function is now internal to this package.
9876 (DT): New function that displaces the pointer to the table of primitives
9877 to get access to the enclosing wrapper record.
9878 (IW_Membership): Code cleanup.
9879 (Offset_To_Top): Code cleanup.
9880 (Predefined_DT): Removed.
9881 (Register_Interface_Tag): Removed.
9882 (Set_Interface_Table): Removed.
9883 (Set_Offset_Index): Removed.
9884 (Set_Offset_To_Top): Code cleanup.
9886 (Set_Signature): Removed.
9888 (Set_Tagged_Kind): Removed.
9889 (Typeinfo_Ptr): Removed.
9891 (Displace): Add missing check on null actual.
9893 * exp_disp.ads, exp_disp.adb
9894 (Select_Expansion_Utilities): Removed.
9895 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
9896 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
9897 the interface requires a new parameter.
9898 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
9899 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
9900 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
9901 Done to remove package Select_Expansion_Utilities.
9902 (Make_DT): New implementation for statically allocated dispatch tables.
9903 (Make_Secondary_DT): Moved to the scope of Make_DT.
9904 (Register_Primitive): Code cleanup plus incoporate the use of the new
9905 function DT_Address_Attribute.
9906 (Expand_Interface_Thunk): The profile of this subprogram has been
9907 changed to return the Thunk_Id and the corresponding code.
9908 (Fill_DT_Entry): Removed. Its functionality is now provided by
9909 subprogram Register_Primitive.
9910 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
9911 subprogram Register_Primitive.
9912 (Register_Primitive): New subprogram that incorporates the previous
9913 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
9914 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
9915 was only required to call Make_DT_Access_Action, which is now removed.
9916 (Ada_Actions): Removed
9917 (Action_Is_Proc): Removed
9918 (Action_Nb_Arg): Removed
9919 Replace all the calls to Make_DT_Access_Action by direct calls to
9920 Make_Procedure_Call_Statement or Make_Function_Call.
9921 (Set_DTC_Entity_Value): New subprogram.
9922 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
9923 (Expand_Interface_Thunk): Add missing support for primitives that are
9924 functions with a controlling result (case in which there is no need
9925 to generate the thunk).
9927 * exp_atag.ads, exp_atag.adb
9928 (Build_DT): New subprogram that displaces the pointer to reference the
9929 base of the wrapper record.
9930 (Build_Typeinfo_Offset): Removed.
9931 (RTE_Tag_Node): Removed.
9932 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
9933 (Build_Get_RC_Offset): Removed.
9934 (Build_Inherit_Predefined_Prims): Removed.
9935 (Build_Inherit_TSD: Removed.
9936 (Build_New_TSD): Removed.
9937 (Build_Set_External_Tag): Removed.
9938 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
9939 (Build_Set_Prim_Op_Address): Add documentation.
9940 (Build_Set_TSD): Removed.
9942 * rtsfind.ads, rtsfind.adb
9943 (Load_Fail): If load fails and we are not in configurable run-time
9944 mode, then raise Unrecoverable_Error.
9945 (Text_IO_Kludge): Generate an error message if a run-time library is
9946 not available in a given run-time (ie. zfp run-time).
9947 (RTE_Record_Component): Add code to check that the component we search
9948 for is not found in two records in the given run-time package.
9949 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
9950 (RE_DT_Predef_Prims_Offset): New entity
9951 (RE_Static_Offset_To_Top): New entity
9952 (RE_HT_Link): New entity.
9953 (System_Address_Image): Addition of this run-time package.
9954 (RE_Address_Image): New entity.
9955 (RE_Abstract_Interface): Removed.
9956 (RE_Default_Prim_Op_Count): Removed.
9957 (RE_DT_Entry_Size): Removed.
9958 (RE_DT_Min_Prologue_Size): Removed.
9959 (RE_DT_Prologue_Size): Removed.
9960 (RE_Ifaces_Table_Ptr): Removed.
9961 (RE_Interface_Data_Ptr): Removed.
9962 (RE_Type_Specific_Data): Removed.
9963 (RE_Primary_DT): Removed.
9964 (RE_Register_Interface_Tag): Removed.
9965 (RE_Set_Offset_Index): Removed.
9966 (RE_Set_OSD): Removed.
9967 (RE_Set_SSD): Removed.
9968 (RE_Set_Signature): Removed.
9969 (RE_Set_Tagged_Kind): Removed.
9970 (RE_Address_Array): New entity.
9971 (RE_DT): New entity.
9972 (RE_Iface_Tag): New entity.
9973 (RE_Interfaces_Table): New entity.
9974 (RE_No_Dispatch_Table): New entity.
9975 (RE_NDT_Prims_Ptr): New entity.
9976 (RE_NDT_TSD): New entity.
9977 (RE_Num_Prims): New entity.
9978 (RE_Offset_To_Top_Function_Ptr): New entity.
9979 (RE_OSD_Table): New entity.
9980 (RE_OSD_Num_Prims): New entity.
9981 (RE_Predef_Prims): New entity
9982 (RE_Predef_Prims_Table_Ptr): New entity.
9983 (RE_Primary_DT): New entity.
9984 (RE_Signature): New entity.
9985 (RE_SSD): New entity.
9986 (RE_TSD): New entity.
9987 (RE_Type_Specific_Data): New entity.
9988 (RE_Tag_Kind): New entity.
9990 2007-06-06 Thomas Quinot <quinot@adacore.com>
9992 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
9993 C imported variable.
9994 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
9997 2007-06-06 Robert Dewar <dewar@adacore.com>
9999 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10002 2007-06-06 Vincent Celier <celier@adacore.com>
10004 * a-tifiio.adb (Put, internal): For negative numbers, check that there
10005 is room for at least one digit and the minus sign.
10006 (Put.Put_Character): Never put a character outside of the range of
10009 2007-06-06 Olivier Hainque <hainque@adacore.com>
10010 Eric Botcazou <ebotcazou@adacore.com>
10012 * utils2.c (build_allocator): Provide the extra arguments to
10013 make_aligning_type for super-aligned objects allocated from the default
10014 pool. Leave enough room for a pointer before the aligning field, and
10015 store the system's allocator return value there.
10016 (build_call_alloc_dealloc): When releasing a super-aligned object,
10017 retrieve the system's allocator return value from where build_allocator
10018 has stored it, just ahead of the adjusted address we are passed.
10019 (build_call_raise): Handle properly the generation of line numbers when
10020 the node is marked No_Location.
10021 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
10022 by using DECL_UID on ties.
10023 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10025 (build_call_raise): Handle converting exception into goto; support new
10027 (build_component_ref): Add new arg to build_call_raise.
10029 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10031 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10032 "." in the case of nnn.xxx when nnn terminates with an underscore.
10033 Parse the remaining "#" or ":" in the case of nnn#.xxx#
10035 2007-06-06 Robert Dewar <dewar@adacore.com>
10037 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10039 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10040 Vincent Celier <celier@adacore.com>
10041 Robert Dewar <dewar@adacore.com>
10043 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10045 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10046 ((destructor)) for adafinal, even when switch -a is used.
10047 Do not issue pragma Linker_Destructor for adafinal when switch -a is
10049 (Gen_Object_Files_Options): Add formatting of Linker Options, when
10050 Output_Linker_Option_List is set. Suppress this formatting when
10051 Zero_Formatting is set.
10052 Add case for CLI_Target.
10053 (System_Restrictions_Used): New flag, used to avoid generating with of
10054 System_Restrictions and initialization of the data unless there is
10055 some use of System.Restrictions in the partition.
10056 (Check_System_Restrictions_Used): New procedure
10058 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10059 since we only with this unit in the binder file if it is used elsewhere
10062 2007-06-06 Vincent Celier <celier@adacore.com>
10064 * bindusg.adb: Add line for @<response file>
10065 Add lines for new switches -R and -Z
10067 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10068 hierarchy in the list of files of the closure when -R is used
10069 (Gnatbind): Accept arguments starting with '@' to indicate response
10070 files and take the arguments from the response files.
10071 If List_Closure is set, display the referenced files
10073 2007-06-06 Javier Miranda <miranda@adacore.com>
10074 Robert Dewar <dewar@adacore.com>
10075 Ed Schonberg <schonberg@adacore.com>
10077 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10078 which the address-clause is applied to in-mode actuals (allowed by
10080 (Apply_Discriminant_Check): Do not generate a check if the type is
10081 constrained by a current instance.
10082 (Activate_Division_Check): New procedure
10083 (Activate_Overflow_Check): New procedure
10084 (Activate_Range_Check): New procedure
10085 Call these new Activate procedures instead of setting flags directly
10086 (Apply_Array_Size_Check): Removed, no longer needed.
10087 Code clean up: remove obsolete code related to GCC 2.
10088 (Get_E_Length): Protect against bomb in case scope is standard
10089 (Selected_Range_Checks): If the node to be checked is a conversion to
10090 an unconstrained array type, and the expression is a slice, use the
10091 bounds of the slice to construct the required constraint checks.
10092 Improve NOT NULL error messages
10093 (Apply_Constraint_Check): If the context is a null-excluding access
10094 type, diagnose properly the literal null.
10096 2007-06-06 Pascal Obry <obry@adacore.com>
10098 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10099 and the corresponding .deps file.
10100 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10101 src directory. Minor code-clean-up. Use untouched casing for files
10102 read into the library src dir.
10103 (Clean_Library_Directory): Idem.
10104 (Parse_Cmd_Line): Accept new switch -aP
10106 2007-06-06 Javier Miranda <miranda@adacore.com>
10107 Ed Schonberg <schonberg@adacore.com>
10108 Robert Dewar <dewar@adacore.com>
10109 Eric Botcazou <ebotcazou@adacore.com>
10110 Arnaud Charlet <charlet@adacore.com>
10112 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10113 applicable to types that have the With_Type flag set. Returns the
10114 non-limited view of the type, if available, otherwise the type itself.
10115 For class-wide types, there is no direct link in the tree, so we have
10116 to retrieve the class-wide type of the non-limited view of the Etype.
10117 New attributes Static_Initialization and Static_Elaboration_Desired.
10118 Remove the pragma Thread_Body, and the associated flag
10119 Is_Thread_Body in entities, and all related code.
10120 (Suppress_Value_Tracking_On_Call): New flag
10121 E_Exception has Esize and Alignment fields
10122 (Universal_Aliasing): New function.
10123 (Set_Universal_Aliasing): New procedure.
10124 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10125 (Check_Nested_Access): New procedure.
10126 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10127 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10128 (Related_Interface): New attribute. Present in dispatch table pointer
10129 components of records. Set to point to the entity of the corresponding
10131 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10132 (Original_Access_Type): Remove, not needed.
10133 (Root_Type): Handle properly subtypes of class-wide-types.
10136 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10137 class-wide types visible through limited-with clauses.
10138 (Try_Primitive_Operation): When examining all primitive operations of a
10139 tagged type, do not consider subprograms labeled as hidden unless they
10140 belong to a private generic type with a tagged parent.
10141 (Try_Object_Operation): Extensive rewriting, to handle properly various
10142 overloading cases, when several ancestors may have class-wide operations
10143 that are possible candidates, and when the overloaded functions return
10144 array types and have defaulted parameters so that the call may be
10145 interpreted as an indexing.
10146 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10147 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10148 successive actuals before analyzing the call itself.
10149 (Try_Primitive_Operation): A primitive operation is compatible with the
10150 prefix if the prefix has a synchronized type and the type of the formal
10151 is its corresponding record, as can be the case when the primitive
10152 operation is declared outside of the body of the type.
10153 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10154 perform homonym traversal, looking for class-wide operation matches
10155 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10156 access parameters are now restricted to anonymous access types.
10157 (Mark_Allocator): An allocator with a discriminant association parent is
10159 (Try_One_Prefix_Interpretation): If the type of the object is
10160 incomplete, as can be happen when it is a limited view obtained through
10161 a limited_with_clause, the selected component is not part of a prefixed
10163 (Complete_Object_Operation): Diagnose properly an object that is not
10164 aliased when the corresponding controlling formal is an access
10166 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10167 ambiguous calls in prefixed notation, where two primitives differ only
10168 in that the controlling argument of one is an access parameter.
10170 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10171 whether a function that returns an unconstrained type can be inlined.
10172 (Process_Formals): Diagnose properly the illegal use of an incomplete
10173 type in the profile of an access_to_subprogram declaration.
10174 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10175 operations are attached to the corresponding record.
10176 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10177 When processing a primitive of a concurrent type which implements an
10178 interface change the type of all controlling formals to that of the
10179 corresponding record type.
10180 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10181 to determine the tagged type to which a primitive belongs.
10182 (Check_Conventions): Capture condition to ignore a primitive operation
10183 (which is shared between the loop in Check_Conventions and the one in
10184 Check_Convention) in a new local function Skip_Check.
10185 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10186 confusion with Check_Conventions' own Prim_Op local variable.
10187 (Create_Extra_Formals): Test for a tagged result type rather than a
10188 controlling result when determining whether to add a BIP_Alloc_Form
10189 formal and a BIP_Final_List formal to the function.
10190 (Check_Conformance); For parameters that are anonymous access types,
10191 subtype conformance requires that the not null and the constant
10192 indicators must match
10193 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10194 to retrieve the appropriate type when processing a concurrent type
10195 declared within a generic. Minor comment reformatting. Change invocation
10196 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10198 (Analyze_Subprogram_Body): If the return type of a function is an
10199 anonymous access to the limited view of a class-wide type, and the
10200 non-limited view of the type is available, update the type of the
10201 function so that code can be generated.
10202 (Process_Formals): In case of access-subtype itype whose designated
10203 type is also an itype (situation that happens now with access to
10204 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10205 attribute to avoid backend problems.
10206 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10207 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10208 anonymous types' designated types are same before testing
10209 Subtypes_Statically_Match.
10210 (Create_Extra_Formals): Test for a named access parameter that is a
10211 controlling formal as an additional condition for adding an
10212 accessibility level formal. This can occur in the subp type created for
10213 dispatching calls in Expand_Dispatching_Call, and allows calling
10214 Create_Extra_Formals from that procedure rather than special-casing the
10215 extra formals there.
10216 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10217 when the function has a controlling result.
10218 (Check_Returns): Add much more knowledge of the optimization of local
10219 raise statements to gotos, to retain proper warnings in this case.
10220 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10221 nodes when looking for last statement.
10223 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10224 class-wide types visible through limited with clauses.
10225 (Add_One_Interp): If the operands are anonymous access types, the
10226 predefined operator on universal_access is immediately visibles
10227 (Find_Unique_Type): Handle anonymous access to subprogram types just as
10228 other anonymous access types.
10229 (Disambiguate): Take into account CIL convention.
10230 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10232 2007-06-06 Robert Dewar <dewar@adacore.com>
10234 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10235 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10236 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10237 Fix lower bound of tables.
10240 * nlists.adb: Ditto.
10241 (Prev_Node, Next_Node): Change index type to Int so that it properly
10242 covers the range First_Node_Id - 1 up.
10244 2007-06-06 Javier Miranda <miranda@adacore.com>
10245 Ed Schonberg <schonberg@adacore.com>
10246 Bob Duff <duff@adacore.com>
10247 Hristian Kirtchev <kirtchev@adacore.com>
10249 * exp_aggr.ads, exp_aggr.adb:
10250 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10251 in extension aggregates.
10252 (Flatten): Other conditions being met, an aggregate is static if the
10253 low bound given by component associations is different from the low
10254 bound of the base index type.
10255 (Packed_Array_Aggregate_Handled): If the component type is itself a
10256 packed array or record, the front-end must expand into assignments.
10257 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10258 Init_Pr, instead of Ancestor_Is_Expression.
10259 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10260 coextension chain root, either generate a list controller or use the
10261 already existing one.
10262 (Static_Array_Aggregate): New procedure to construct a positional
10263 aggregate that can be handled by the backend, when all bounds and
10264 components are compile-time known constants.
10265 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10266 types covering interface types into assignments.
10267 (Replace_Type): move to Build_Record_Aggr_Code.
10268 (Expand_Record_Aggr_Code): if the target of the aggregate is an
10269 interface type, convert to the definite type of the aggregate itself,
10270 so that needed components are visible.
10271 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10272 components and the context is an extended return statement do not
10273 create a transient block for it, to prevent premature finalization
10274 before the return is executed.
10275 (Gen_Assign): Do not generate a call to deep adjust routine if the
10276 component type is itself an array of controlled (sub)-components
10277 initialized with an inner aggregate.
10278 (Component_Check): New name for Static_Check. This name is now more
10279 appropriate, and documentation is added which was missing.
10280 (Component_Check): Add test for bit aligned component value
10281 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10282 Tagged_Comps, name is more appropriate given added function below.
10283 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10285 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10286 Javier Miranda <miranda@adacore.com>
10287 Robert Dewar <dewar@adacore.com>
10289 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10290 Terminated: Add unchecked type conversion from System.Address to
10291 System.Tasking.Task_Id when calling the predefined primitive
10293 Disable new Ada 05 accessibility check for JVM.NET targets, which
10294 cannot be implemented in a practical way.
10295 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10296 the sources always references the tag of the actual object. Therefore,
10297 if 'Tag is applied in the sources to class-wide interface objects we
10298 generate code that displaces "this" to reference the base of the object.
10299 (Expand_N_Attribute_Reference, case Size): Return specified size if
10300 known to front end.
10301 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10302 has code that displaces the pointer of the object to manage interface
10303 types. However this code must not be executed when the prefix is a
10304 subprogram. This bug caused the wrong expansion of the internally
10305 generated assignment that fills the dispatch table when the primitive
10306 is a function returning a class-wide interface type.
10307 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10308 Set_Attribute_Name for Name_Unaligned_Valid.
10310 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10311 Gary Dismukes <dismukes@adacore.com>
10313 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10314 If the initialization is the equivalent aggregate of the initialization
10315 procedure of the type, do not remove it.
10316 (Expand_N_Attribute_Definition_Clause): Exclude access variables
10317 initialized to null from having their expression reset to empty and
10318 note this exception in the comment.
10320 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10321 Robert Dewar <dewar@adacore.com>
10322 Ed Schonberg <schonberg@adacore.com>
10323 Gary Dismukes <dismukes@adacore.com>
10325 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10326 Add "with" and "use" clauses for Sem_Attr.
10327 (Expand_Current_Value): Do not replace occurences of attribute
10328 references where the prefix must be a simple name.
10330 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10331 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10332 Attribute_Requires_Simple_Name_Prefix.
10333 (Name_Modifies_Prefix): Body of new function.
10334 (Requires_Simple_Name_Prefix): Body of new function.
10335 (Resolve_Attribute, case Access): Improve error message for case of
10336 mismatched conventions.
10337 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10339 (Analyze_Attribute, case 'Access): If the type of the prefix is a
10340 constrained subtype for a nominal unconstrained type, use its base type
10341 to check for conformance with the context.
10342 (Resolve_Attribute): Remove test of the access type being associated
10343 with a return statement from condition for performing accessibility
10344 checks on access attributes, since this case is now captured by
10345 Is_Local_Anonymous_Access.
10346 (Analyze_Access_Attribute): Set Address_Taken on entity
10347 (Analyze_Attribute, case Address): Set Address_Taken on entity
10348 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10349 validating an access attribute whose prefix is a current instance.
10350 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10351 applied to dispatching operations, if freezing is required then we set
10352 the attribute Has_Delayed_Freeze in the prefix's entity.
10353 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10354 current scope if access of local subprogram taken
10355 (Analyze_Access_Attribute): Check legality of self-reference even if the
10356 expression comes from source, as when a single component association in
10357 an aggregate has a box association.
10358 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10359 the prefix if it is a protected operation and the attribute is
10360 Unrestricted_Access.
10361 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10362 reference to the base type of the context, to force a constraint check
10363 when the context is an access subtype with an explicit constraint.
10364 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10365 node is rewritten as an interface conversion. leave unanalyzed after
10366 resolution, to ensure that type checking against the context will take
10369 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10370 Javier Miranda <miranda@adacore.com>
10371 Robert Dewar <dewar@adacore.com>
10373 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10374 wrapper when the full view of the controlling type of an inherited
10375 function that dispatches on result implements interfaces.
10376 (Expand_N_Object_Declaration): In cases where the type of the
10377 declaration is anonymous access, create finalization list for it.
10378 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10379 if the object has no explicit initialization, to match description of
10380 functionality of pragam Persistent_BSS.
10381 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10382 new function to build static aggregates, to replace initialization call
10383 when static initialization is desired.
10384 (Freeze_Type): Generate a list controller for an access type whenever
10385 its designated type has controlled anonymous access discriminants.
10386 (Build_Equivalent_Aggregate): New procedure to compute a static
10387 aggregate to be used as default initialization for composite types,
10388 instead of a generating a call to the initialization procedure for the
10390 (Build_Initialization_Call): When available, replace a call to the
10391 initialization procedure with a copy of the equivalent static aggregate
10393 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
10394 declarations for objects of a class-wide interface type, rather than
10395 just identifiers, to prevent visibility problems.
10396 (Expand_N_Object_Declaration): When expanding the declaration for an
10397 object of a class-wide interface type, preserve the homonym chain of
10398 the original entity before exchanging it with that of the generated
10399 renaming declaration.
10400 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10401 active, because there is no way to handle the exception.
10402 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10403 to do a minimum decoration of the Access_Disp_Table list.
10404 (Expand_Record_Controller): Avoid the addition of the controller between
10405 the component containing the tag of a secondary dispatch table and its
10406 adjacent component that stores the offset to the base of the object.
10407 This latter component is only generated when the parent type has
10408 discriminants ---documented in Add_Interface_Tag_Components).
10409 (Apply_Array_Size_Check): Removed, no longer needed.
10410 (Expand_N_Full_Type_Declaration): If the type has anonymous access
10411 components, create a Master_Entity for it only if it contains tasks.
10412 (Build_Init_Procedure): Suppress the tag assignment compiling under
10414 (Freeze_Record_Type): Remove code associated with creation of dispatch
10416 (Init_Secondary_Tags): Update type of actuals when generating calls to
10417 Ada.Tags.Set_Offset_To_Top
10418 (Stream_Operation_OK): Disable use of streams compiling under no
10420 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10421 if Has_Init_Expression set.
10422 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10423 Register_Primitive, which provides the same functionality.
10424 (Requires_Init_Proc): Return false in case of interface types.
10425 (Add_Secondary_Tables): Use the new attribute Related_Interface to
10427 (Predefined_Primitive_Freeze): Do not assume that an internal entity
10428 is always associated with a predefined primitive because the internal
10429 entities associated with interface types are not predefined primitives.
10430 Therefore, the call to Is_Internal is replaced by a call to the
10431 function Is_Predefined_Dispatching_Operation.
10432 (Make_Eq_If): When generating the list of comparisons for the
10433 components of a given variant, omit the controller component that is
10434 present if the variant has controlled components.
10436 2007-06-06 Javier Miranda <miranda@adacore.com>
10437 Hristian Kirtchev <kirtchev@adacore.com>
10438 Bob Duff <duff@adacore.com>
10440 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10441 handle the creation of finalization lists and calls for nested
10442 coextensions when the root of the chains is part of a return statement.
10443 (Inside_A_Return_Statement): New function inside Complete_Coextension_
10445 (Expand_Record_Equality): Skip components that are interface types.
10446 (Displace_Allocator_Pointer): Add missing support for interface subtypes
10447 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10448 with Rewrite_Coextension. Change the condition for detecting coextension
10450 (Is_Local_Access_Discriminant): Removed.
10451 (Rewrite_Coextension): New routine which rewrites a static coextension
10452 as a temporary and uses its unrestricted access in the construction of
10454 (Complete_Coextension_Finalization): New routine. Generate finalization
10455 attachment calls to all delayed coextensions.
10456 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10457 the allocator is not a coextension itself and has delayed coextensions.
10458 If the current allocator is controlled, but also a coextension, delay
10459 the generation of the finalization attachment call.
10460 Rename local variable "Node" to "Nod" in order to avoid confusion with
10462 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10463 limited types that are not inherently limited. Such an allocator is
10464 illegal, but is generated by the expander for a return statement, to
10465 copy the result onto the secondary stack. This is the only case where a
10466 limited object can be copied. Generate code to displace the pointer
10467 to the object if the qualified expression is a class-wide interface
10468 object. Such displacement was missing and hence the copy of the object
10470 (Apply_Accessibility_Check): Handle allocated objects initialized in
10472 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10473 and Expand_Allocator_Expression. Allocating class-wide interface objects
10474 this routine displaces the pointer to the allocated object to reference
10475 the component referencing the corresponding secondary dispatch table.
10476 Expand_Allocator_Expression): Add missing support to allocate class-wide
10477 interface objects initialized with a qualified expression.
10478 (Get_Allocator_Final_List): Test for an anonymous access type that is a
10479 function result type, and use the finalization list associated with the
10480 function scope in that case (such an anonymous type should not be
10481 treated like an access parameter's type).
10483 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10484 Gary Dismukes <dismukes@adacore.com>
10485 Javier Miranda <miranda@adacore.com>
10487 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10488 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10489 required exception handler.
10490 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10491 properly the case of a function whose return type is a limited
10492 class-wide interface type. Modify the code of the accessibility
10493 check to handle class-wide interface objects. In this case we need to
10494 displace "this" to reference the primary dispatch table to get access
10495 to the TSD of the object (to evaluate its accessibility level).
10496 (Expand_N_Extended_Return_Statement): Test for a tagged result type
10497 rather than a controlling result as one of the conditions for
10498 generating tests of the implicit BIP_Alloc_Form formal. The
10499 initialization assignment is also handled according to whether the
10500 result is tagged instead of controlling.
10501 In the case where the init assignment is inserted in the "then" part of
10502 the allocation conditional, rewrite the target to be a dereference of
10503 the implicit BIP_Object_Access formal.
10504 If the returned value is unconstrained and created on the secondary
10505 stack, mark the enclosing block and function so that the secondary
10506 stack is not reclaimed on return.
10507 Treat returns from functions with controlling results similarly to
10508 returns from functions with unconstrained result subtypes.
10509 If the object returned is unconstrained, and an allocator must be
10510 created for it, analyze the allocator once the block for the extended
10511 return is installed, to ensure that finalizable components
10512 of the expression use the proper finalization list. Guard the call to
10513 Move_Final_List with a check that there is something to finalize.
10514 (Make_Tag_Ctrl_Assignment): Use "old" handling
10515 of controlled type assignment for virtual machines, since new code uses
10516 unsupported features (such as direct access to bytes in memory).
10518 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10519 Ed Schonberg <schonberg@adacore.com>
10521 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10522 accessibility actual, check for the case of an aliased object that has
10523 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10524 we fall into processing for the attribute rather than the name of the
10526 (Expand_Inline_Call): If an actual is a literal, and the corresponding
10527 formal has its address taken in the body, create a temporary to capture
10528 value. If the return type is a limited interface, do not treat the
10529 return value as Controlled.
10530 (Is_In_Place_Function): If the return type is a limited interface,
10531 treat as returning in place. The actual returned object may not always
10532 be limited, but the caller has to assume that it is returned in place.
10533 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10534 context of an allocator, use the correct finalization chain (that is,
10535 the chain belonging to the access type, rather than the chain belonging
10536 to the current scope).
10537 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10538 result type rather than a controlling result as a precondition for
10539 adding an allocation form actual to a build-in-place call.
10540 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10541 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10542 primitive in the dispatch tables. This work is now done by Make_DT when
10543 the type is frozen.
10544 (Register_Predefined_DT_Entry): Removed.
10545 (Add_Return): If end label is not present, use sloc of last statement
10546 for generated return statement in procedure, for better gdb behavior
10548 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10549 object address nodes to ensure proper processing by routines like
10551 (Expand_Call): Fix generation of validity check for parameter
10552 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10553 the allocation form parameter if the result subtype is constrained,
10554 except when the function has a controlling result.
10555 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10556 rather than Is_Controlled and Has_Controlled_Component, since we want to
10557 include class-wide result types in this treatment. Also test for a
10558 controlling result, since that also requires passing a finalization
10560 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10561 even when the result subtype is constrained, to handle calls involving
10562 controlling results.
10563 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10564 is now called even when the result subtype is constrained, to handle
10565 calls involving controlling results.
10566 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10567 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10568 now performs the test).
10569 (Make_Build_In_Place_Call_In_Object_Declaration):
10570 Add_Alloc_Form_Actual_* is now called even when the result subtype is
10571 constrained, to handle calls involving controlling results.
10572 (Add_Return): Accomodate rewritten pattern from local raise to goto
10573 transformation, so that we still recognize an transfer statement
10574 and do the right thing here in that case.
10575 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10576 and end of subprogram code.
10577 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10578 support for primitives that are functions (without formals) with a
10579 controlling result.
10580 (Inherited_From_Formal): If the actual subtype has not generic parent
10581 type, it is not an actual for a formal derived type, and there is no
10582 operation to inherit from the formal.
10584 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10585 Thomas Quinot <quinot@adacore.com>
10587 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10588 inserted cleanup code appropriately for GDB use.
10589 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10590 exception handler for Deep_Adjust or Deep_Finalize.
10591 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10592 Raise_From_Controlled_Operation is available, use a call to that
10593 subprogram instead of a plain "raise Program_Error" node to raise
10594 Program_Error if an exception is propagated from an Adjust or Finalize
10596 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10597 appears in the optional statement list of a triggering alternative, the
10598 scope actions can be inserted directly there, and not in the list that
10599 includes the asynchronous select itself.
10601 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10602 Robert Dewar <dewar@adacore.com>
10603 Hristian Kirtchev <kirtchev@adacore.com>
10605 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10606 generated exception handler appropriately when debugging generated code.
10607 Deal properly with No_Exception_Propagation restriction mode.
10608 (Expand_N_Abort_Statement): Add an unchecked type conversion from
10609 System.Address to System.Tasking.Task_Id when processing the result of
10610 the predefined primitive _disp_get_task_id.
10611 (Expand_N_Asynchronous_Select): Clarify comment.
10612 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10613 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10614 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10615 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10616 privals and for generated call to Complete_Entry_Body, for better gdb
10618 (Copy_Result_Type): Utility to construct a parameter and result profile
10619 for protected functions whose return type is an anonymous access to
10621 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10623 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10624 point when the local-raise-to-goto transformation has taken place.
10626 2007-06-06 Javier Miranda <miranda@adacore.com>
10627 Nicolas Setton <setton@adacore.com>
10629 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10630 functionality when the backend is generating code.
10631 Otherwise any serious error
10632 reported by the backend calling the frontend routine Error_Msg
10633 changes the Compilation_Mode to Check_Semantics, disables the
10634 functionality of this routine and causes the generation of
10635 spureous additional errors.
10637 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10638 debugging information now generated by the compiler for fat-pointer
10640 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10642 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10644 2007-06-06 Thomas Quinot <quinot@adacore.com>
10646 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10647 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10648 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10649 For a remote call to a function with a classwide return type, apply an
10650 E.4(18) check to the returned value.
10651 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10652 stream attributes of the designated type of an RACW, as they are not
10653 dispatching primitive operations.
10655 2007-06-06 Geert Bosch <bosch@adacore.com>
10657 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10659 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10661 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10662 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10664 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10666 2007-06-06 Javier Miranda <miranda@adacore.com>
10668 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10669 attribute compiling package Ada.Tags under No_Run_Time_Mode.
10671 2007-06-06 Javier Miranda <miranda@adacore.com>
10673 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10674 deallocation of class-wide interface objects.
10675 (Expand_Dispatching_Constructor_Call): Take into account that if the
10676 result of the dispatching constructor is an interface type, the
10677 function returns a class-wide interface type; otherwise the returned
10678 object would be actual. The frontend previously accepted returning
10679 interface types because Expand_Interface_Actuals silently performed
10680 the management of the returned type "as if" it were a class-wide
10682 (Expand_Dispatching_Constructor_Call): Replace call to
10683 Make_DT_Access_Action by direct call to Make_Function_Call.
10685 2007-06-06 Robert Dewar <dewar@adacore.com>
10686 Ed Schonberg <schonberg@adacore.com>
10688 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10689 compute masking constant, since we now set Esize properly to the
10691 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10692 to match the alignment.
10693 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10694 packed arrays of 8 bits or less.
10696 * freeze.adb (Freeze_Entity): When freezing the formals of a
10697 subprogram, freeze the designated type of a parameter of an access type
10698 only if it is an access parameter.
10699 Increase size of C convention enumeration object
10700 (Freeze_Entity, array type case): Make sure Esize value is properly
10701 adjusted for the alignment if it is known.
10702 (Freeze_Entity, array type case): When checking bit packed arrays for
10703 the size being incorrect, check RM_Size, not Esize.
10704 (Freeze_Record_Type): Check for bad discriminated record convention
10705 (In_Exp_Body): Return true if the body is generated for a subprogram
10706 renaming, either an attribute renaming or a renaming as body.
10707 (Check_Itype): If the designated type of an anonymous access component
10708 is a non-protected subprogram type, indicate that it is frozen, to
10709 prevent out-of-scope freeze node at some subsequent call.
10710 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10711 only if the subprogram is neither imported nor exported, as well as the
10712 NCA descriptor class if the subprogram is exported.
10714 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10715 Arnaud Charlet <charlet@adacore.com>
10716 Robert Dewar <dewar@adacore.com>
10717 Gary Dismukes <dismukes@adacore.com>
10719 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10720 default initialization on an imported object, when there is no
10721 initialization call generated for it.
10722 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10725 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10726 Static_Elaboration_Desired.
10727 Remove pragma Thread_Body.
10728 Implement a new pragma No_Body
10729 Removes the Explicit_Overriding pragma
10730 Remove Optional_Overriding pragma
10731 (Prag): Deal with Universal_Aliasing.
10732 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10733 Pragma_CIL_Constructor): New names.
10735 * sem_cat.adb (Validate_Object_Declaration): An initialization that
10736 uses the equivalent aggregate of a type must be treated as an implicit
10738 (Get_Categorization): Check a unit for pragma Preelaborate only if it
10739 has none of the other categories.
10740 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10741 to apply Import to an object renaming declaration.
10743 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10744 from a C++ class should be declared as limited and that it will be
10745 considererd limited.
10746 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10747 should be declared as limited and that it will be considererd limited.
10748 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10749 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10750 (Analyze_Pragma): Deal with Universal_Aliasing.
10751 (Sig_Flags): Likewise.
10752 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10753 (Overflow_Checks_Unsuppressed): New flag.
10754 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10755 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10756 case of JVM or .NET targets, and compiling user code.
10757 Add debugging convenience routine rv
10759 2007-06-06 Robert Dewar <dewar@adacore.com>
10761 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10762 are interface type.
10763 (Build_Elementary_Input_Call): For floating-point use right type in the
10764 absence of strange size or stream size clauses.
10765 (Build_Elementary_Write_Call): Same fix
10766 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10767 set to value that does not match base type size.
10769 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10771 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10772 object of a limited type can be initialized with a call to a function
10773 that returns in place. If the limited type has unknown discriminants,
10774 and the underlying type is a constrained composite type, build an actual
10775 subtype from the function call, as is done for private types.
10776 (Side_Effect_Free): An expression that is the renaming of an object or
10777 whose prefix is the renaming of a object, is not side-effect free
10778 because it may be assigned through the renaming and its value must be
10779 captured in a temporary.
10780 (Has_Controlled_Coextensions): New routine.
10781 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10782 as is done for other limited types.
10783 (Non_Limited_Designated_Type): new predicate.
10784 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10786 Remove all handling of with_type clauses.
10788 * par-ch10.adb: Remove all handling of with_type clauses.
10790 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10791 checksum if the main source could not be parsed.
10792 (Loat_Unit): When processing a child unit, determine properly whether
10793 the parent unit is a renaming when the parent is itself a child unit.
10794 Remove handling of with_type clauses.
10796 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10797 (Set_Is_Static_Coextension): New procedure.
10798 (Has_Local_Raise): New function
10799 (Set_Has_Local_Raise): New procedure
10800 (Renaming_Exception): New field
10801 (Has_Init_Expression): New flag
10802 (Delay_Finalize_Attach): Remove because flag is obsolete.
10803 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10804 Remove all handling of with_type clauses.
10805 (Exception_Junk): Can now be set in N_Block_Statement
10807 2007-06-06 Vincent Celier <celier@adacore.com>
10808 Robert Dewar <dewar@adacore.com>
10810 * frontend.adb (Frontend): Return immediately if the main source could
10811 not be parsed, because of preprocessing errors.
10813 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10814 (Gnat1drv): Exit with errors if the main source could not be parsed,
10815 because of preprocessing errors.
10816 (Check_Rep_Info): New procedure
10818 2007-06-06 Robert Dewar <dewar@adacore.com>
10820 * g-hesorg.ads, g-heasor.ads,
10821 g-busorg.ads, g-bubsor.ads: Update documentation
10822 GNAT.Heap/Bubble_Sort_G is now pure
10824 2007-06-06 Robert Dewar <dewar@adacore.com>
10826 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10828 2007-06-06 Robert Dewar <dewar@adacore.com>
10829 Ed Schonberg <schonberg@adacore.com>
10831 * g-comlin.ads, g-comlin.adb:
10832 Add new warning for renaming of function return objects
10834 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10835 (Tree_Read): Use size of object instead of type'object_size, since the
10836 latter is incorrect for packed array types.
10837 (Tree_Write): Same fix
10839 * opt.ads: Add new warning for renaming of function return objects
10840 (Generating_Code): New boolean variable used to indicate that the
10841 frontend as finished its work and has called the backend to process
10842 the tree and generate the object file.
10843 (GCC_Version): Is now private
10844 (Static_Dispatch_Tables): New constant declaration.
10845 (Overflow_Checks_Unsuppressed): New flag.
10846 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10847 (List_Closure): New flag for gnatbind (-R)
10848 Zero_Formatting: New flag for gnatbind (-Z)
10849 (Special_Exception_Package_Used): New flag.
10850 (Warn_On_Unrepped_Components): New flag.
10852 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10853 unit is a compilation unit, rather than relying on its scope, so that
10854 Standard can be renamed.
10855 (Analyze_Object_Renaming): Add new warning for renaming of function
10857 Also reject attempt to rename function return object in Ada 83 mode.
10858 (Attribute_Renaming): In case of tagged types, add the body of the
10859 generated function to the freezing actions of the type.
10860 (Find_Type): A protected type is visible right after the reserved word
10861 "is" is encountered in its type declaration. Set the entity and type
10862 rather than emitting an error message.
10863 (New_Scope): Properly propagate Discard_Names to inner scopes
10864 (Check_Nested_Access): New procedure.
10865 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10866 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10868 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10869 Add new warning for renaming of function return objects
10870 (Check_References): Suppress warnings for objects whose type or
10871 base type has Warnings suppressed.
10872 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10873 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10875 2007-06-06 Vincent Celier <celier@adacore.com>
10876 Emmanuel Briot <briot@adacore.com>
10877 Olivier Hainque <hainque@adacore.com>
10879 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10880 absolute value of Header.Block_Size when displaying the freed physical
10882 (Allocate): Compute Storage_Address using Integer_Address, not
10883 Storage_Offset, because the range of Storage_Offset may not be large
10885 (Configure): New parameter Low_Level_Traces
10886 (Allocate, Deallocation, Free_Physically): Added low-level traces
10887 (Configure): new parameter Errors_To_Stdout.
10888 (Output_File): new subprogram
10889 (Deallocate, Dereference): Send error messages to the proper stream
10890 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
10891 documented. Previous code would send it to the current output file
10892 defined in GNAT.IO, which might not be stdout
10893 (Is_Valid): Adjust comment to mention that a positive reply means that
10894 Header_Of may be used to retrieve the allocation header associated with
10895 the subprogram Storage address argument. Return False early if this
10896 address argument is misaligned.
10898 2007-06-06 Vincent Celier <celier@adacore.com>
10900 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
10902 (ASIS_Main): New global variable
10903 (Get_Closure): New procedure
10904 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
10905 check, metric or pretty. Call Get_Closure in this case.
10906 (Check_Files): For GNAT LIST, check all sources of all projects when
10907 All_Projects is True.
10908 (GNATCmd): Accept -U for GNAT LIST
10910 2007-06-06 Vincent Celier <celier@adacore.com>
10912 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
10914 Correct error message when invocation of the linker fails
10915 Add explicit size clause for the C imported variables
10916 Object_List_File_Supported and Using_GNU_Linker to emphasize that
10917 we expect char size.
10918 Read target parameters earlier, since this is needed to set
10919 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
10922 2007-06-06 Vincent Celier <celier@adacore.com>
10925 Add 3 spaces before the default project directory when displaying
10926 the project search path.
10927 Add new command line switch '-l' to display license information.
10929 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10931 * gmem.c: Add support for timestamps on memory operations.
10933 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
10934 operations (not used currently, just foundation for future
10935 enhancements). Add possibility to perform full dump of gmem.out file.
10936 (Print_Back_Traces): Declare accesses to root arrays constants since
10937 they aren't modified.
10938 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
10940 2007-06-06 Vincent Celier <celier@adacore.com>
10942 * gnatsym.adb: Update Copyright notice
10943 (Parse_Cmd_Line): Accept new switch -D
10944 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
10947 * prj.ads (Policy): New policy Direct
10948 (Yes_No_Unknown): New enumeration type
10949 (Project_Data): New component Libgnarl_Needed
10951 * prj-nmsc.adb (Check_For_Source): When recording a source file make
10952 use the untouched pathname casing.
10953 (Get_Directories): Ensure that the Display_Exec_Directory is using the
10954 proper casing on non case-sensitive platforms like Windows.
10955 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
10956 on all platforms, as it is not possible to know which one is allowed
10957 before processing the project files.
10958 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
10959 specified when symbol policy is Direct. Check that when there is a
10960 symbol file defined (either by default or with attribute
10961 Library_Symbol_File) it is not the same as the reference symbol file.
10962 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
10963 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
10964 extending projects.
10965 (Record_Ada_Source): Record a source that has been locally removed in an
10968 * symbols.ads (Policy): New policy Direct
10970 * symbols-vms.adb (Initialize): Take new policy Direct in case
10973 2007-06-06 Vincent Celier <celier@adacore.com>
10975 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
10976 Correct obvious bug (return Dir; instead of return Directory;).
10977 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
10979 2007-06-06 Thomas Quinot <quinot@adacore.com>
10981 * g-pehage.adb (Produce): Open output files in Binary mode, so that
10982 they have UNIX line endings (LF only) even on Windows, and thus pass
10983 all GNAT style checks.
10985 2007-06-06 Emmanuel Briot <briot@adacore.com>
10987 * g-regpat.adb (Quote): Fix improper quoting of '.'
10989 2007-06-06 Thomas Quinot <quinot@adacore.com>
10991 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
10992 default, set False on a per-runtime basis.
10993 (Need_Netdb_Buffer): New constant.
10995 * g-socket.ads, g-socket.adb: Import new package
10996 GNAT.Sockets.Thin.Task_Safe_NetDB.
10997 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
10998 binding to obtain proper message.
10999 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11000 Replace various occurrences of Arry (Arry'First)'Address with the
11001 equivalent Arry'Address (GNAT always follows implementation advice from
11003 (Get_Host_By_Address, Get_Host_By_Name,
11004 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11005 instead, rely on platform-specific task safe netdb operations provided
11008 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11009 parameter Process_Blocking_IO.
11010 (Host_Error_Messages): Add stub body.
11011 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11012 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11013 Safe_Getservbyport): Move functions into new child package
11015 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11016 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11017 (In_Addr): Add alignment clause.
11019 2007-06-06 Robert Dewar <dewar@adacore.com>
11021 * g-trasym.ads, g-traceb.ads: Update list of supported targets
11022 Add note about symbolic traceback
11024 2007-06-06 Pascal Obry <obry@adacore.com>
11026 * hostparm.ads (Normalized_CWD): Use the host directory separator
11027 instead of the hardcoded forward slash which is not the proper
11028 character on Windows for example.
11029 (Java_VM): Removed.
11031 2007-06-06 Vincent Celier <celier@adacore.com>
11032 Arnaud Charlet <charlet@adacore.com>
11034 * a-clrefi.adb, a-clrefi.ads: New files
11036 * impunit.adb: Add s-os_lib in the list of user visible units.
11037 (Non_Imp_File_Names_95): Add a-clrefi to this list
11038 Remove obsolete run-time entries.
11039 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11040 "a-exetim" -- Ada.Execution_Time
11041 "a-extiti" -- Ada.Execution_Time.Timers
11043 * mlib-prj.ads, mlib-prj.adb
11044 (Build_Library): Use untouched object dir and library dir. At the
11045 same time makes sure that the checks are done using the canonical
11046 form. Removes hard-coded directory separator and use the proper host
11048 (Process_Project): Do not look in object directory to check if libgnarl
11049 is needed for a library, if there is no object directory.
11050 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11052 (Build_Library): When invoking gnatbind, use a response file if the
11053 total size of the arguments is too large.
11055 * Makefile.rtl: (g-sttsne): New object file.
11056 Add entry for a-clrefi, s-utf_32, System.Exceptions
11058 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11059 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11060 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11061 Change g-string to s-string, g-os_lib to s-os_lib
11062 Change all g-utf_32 references to s-utf_32
11064 2007-06-06 Tristan Gingold <gingold@adacore.com>
11065 Olivier Hainque <hainque@adacore.com>
11067 * init.c: Do not adjust IP of an imported VMS exception of ia64.
11068 LIB$STOP is called to raise an exception and the IP of the exception
11069 is the instruction right after the call.
11070 (__gnat_adjust_context_for_raise, AIX): Implement.
11071 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11072 adjust_context_for_raise before Raise_From_Signal_Hanler.
11073 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11074 siginfo is passed to the handler, necessary to let the zcx propagation
11075 engine unwind past it.
11077 2007-06-06 Olivier Hainque <hainque@adacore.com>
11079 * initialize.c (__gnat_initialize for vxworks): Update documentation
11080 on the ZCX support, using different sets of crtstuff objects than with
11083 2007-06-06 Robert Dewar <dewar@adacore.com>
11085 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11087 (Layout_Type): Fix recomputation of size from alignment.
11089 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11090 Javier Miranda <miranda@adacore.com>
11092 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11093 association in an instance.
11094 (Copy_Generic_Node): If the node is a string literal, no need to copy
11096 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11097 grandparent of the entity.
11098 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11099 to simplify handling of formal interfaces that derive from other formal
11101 (Instantiate_Subprogram_Body): The defining unit name of the body of
11102 the instance should be a defining identifier.
11103 (Install_Formal_Packages): make global to the package, for use in
11104 instantiations of child units.
11105 (Analyze_Package_Instantiation): Do not attempt to set information on an
11106 enclosing master of an entry when expansion is disabled.
11107 (Instantiate_Type): If the actual is a tagged synchronized type and the
11108 generic ancestor is an interface, create a generic actual for the
11109 corresponding record.
11110 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11111 declaration, to ensure that the interface list is processed correctly.
11112 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11113 its entities from visibiility as well.
11114 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11115 given with a named association, analyze the expression only, not the
11116 discriminant association itself.
11117 (Reset_Entity): If the analysis of a selected component is transformed
11118 into an expanded name in the prefix of a call with parameters, do not
11119 transform the original node into an expanded name, to prevent visibility
11120 errors in the case of nested generics.
11121 (Check_Private_View): For an array type, check whether the index types
11122 may need exchanging.
11124 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11125 Vincent Celier <celier@adacore.com>
11127 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11128 since both are separated.
11129 Add support for imported CIL packages.
11130 Add further special handling of "value_type" for CIL.
11131 Add special handling of pragma Import for CIL.
11133 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11134 standard output instead of standard error, except errors.
11135 (Absolute_Path): Use untouched casing for the parent directory.
11136 (Add_Library_Search_Dir): Use the untouched directory name.
11137 (Add_Source_Search_Dir): Idem.
11138 (Change_To_Object_Directory): Update output to use proper casing.
11139 (Create_Binder_Mapping_File): Use the untouched filename to set
11141 (Gnatmake): Use untouched library and executable directory names.
11142 (Insert_Project_Sources): Use untouched filename for spec and body.
11143 (Is_In_Object_Directory): Use untouched object directory.
11144 (Mark_Directory): Idem.
11145 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11146 contains the non-canonical filename in all cases.
11147 (Change_To_Object_Directory): In verbose mode, display the name of the
11148 object directory we're changing to.
11149 (Compile_Sources): Make sure, when a project file is used, to compile
11150 the body of the unit, when there is one, even when only the spec is
11151 recorded in an ALI file.
11152 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11154 (Report_Compilation_Failed): New procedure
11155 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11156 procedures moved from the spec to the body.
11157 (Extract_Failure): Removed, not used
11158 Replace explicit raises of exception Bind_Failed and Link_Failed with
11159 calls to Make_Failed with the proper message.
11160 Replace explicit raises of exception Compilation_Failed with calls to
11161 procedure Report_Compilation_Failed.
11162 (Initialize): Create mapping files unconditionally when using project
11165 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11166 Pragma_CIL_Constructor): New names.
11168 * targparm.ads, targparm.adb
11169 (Compiler_System_Version): Removed, no longer used.
11170 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11171 handling of two new system flags: JVM and CLI.
11173 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11174 Arnaud Charlet <charlet@adacore.com>
11176 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11177 time, use the default s-interr body that provides interrupt support
11179 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11180 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11181 g-soccon.ads, and s-taprop.adb for the marte run time.
11182 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11183 timers are supported on marte.
11184 (EH_MECHANISM for marte): Do not use ZCX.
11185 (THREADSLIB for marte): Use -lmarte.
11186 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11187 Add mlib-tgt-specific.o to gnatmake objects
11188 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11189 longer of MLib.Tgt.
11190 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11191 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11193 2007-06-06 Pascal Obry <obry@adacore.com>
11195 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11197 2007-06-06 Vincent Celier <celier@adacore.com>
11199 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11200 separator, use instead the proper host directory separator.
11201 (Copy_ALI_Files): Make sure that an already existing ALI file in the
11202 ALI copy dir is writable, before doing the copy.
11204 * mlib-utl.ads, mlib-utl.adb:
11205 (Gcc): If length of command line is too long, put the list of object
11206 files in a response file, if this is supported by the platform.
11207 (Ar): If invocation of the archive builder is allowed to be done in
11208 chunks and building it in one shot would go above an OS dependent
11209 limit on the number of characters on the command line, build the archive
11212 2007-06-06 Vincent Celier <celier@adacore.com>
11214 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11215 of specified object file is not equal to base name of source.
11217 2007-06-06 Javier Miranda <miranda@adacore.com>
11218 Hristian Kirtchev <kirtchev@adacore.com>
11219 Ed Schonberg <schonberg@adacore.com>
11221 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11222 the full type declaration.
11223 (Analyze_Component_Declaration): Add local variable E to capture the
11224 initialization expression of the declaration. Replace the occurences of
11225 Expression (N) with E.
11226 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11227 limited interface object with a function call.
11228 (Array_Type_Declaration): If the declaration lacks subtype marks for
11229 indices, create a simple index list to prevent cascaded errors.
11230 (Is_Null_Extension): Ignore internal components created for secondary
11231 tags when checking whether a record extension is a null extension.
11232 (Check_Abstract_Interfaces): Add missing support for interface subtypes
11233 and generic formals.
11234 (Derived_Type_Declaration): Add missing support for interface subtypes
11235 and generic formals.
11236 (Analyze_Object_Declaration): If an initialization expression is
11237 present, traverse its subtree and mark all allocators as static
11239 (Add_Interface_Tag_Component): When looking for components that may be
11240 secondary tags, ignore pragmas that can appear within a record
11242 (Check_Abstract_Overriding): an inherited function that dispatches on
11243 result does not need to be overriden if the controlling type is a null
11245 (Mentions_T): Handle properly a 'class attribute in an anonymous access
11246 component declaration, when the prefix is an expanded name.
11247 (Inherit_Component): If the derivation is for a private extension,
11248 inherited components remain visible and their ekind should not be set
11250 (Find_Type_Of_Object): In the case of an access definition, always set
11251 Is_Local_Anonymous_Access. We were previously not marking the anonymous
11252 access type of a return object as a local anonymous type.
11253 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11254 range with character literal bounds.
11255 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11256 (Access_Subprogram_Declaration): Indicate that the type declaration
11257 depends on an incomplete type only if the incomplete type is declared
11259 (Analyze_Subtype_Declaration): Handle properly subtypes of
11260 synchronized types that are tagged, and that may appear as generic
11262 (Access_Subprogram_Declaration): An anonymous access to subprogram can
11263 appear as an access discriminant in a private type declaration.
11264 (Add_Interface_Tag_Components): Complete decoration of the component
11265 containing the tag of a secondary dispatch table and the component
11266 containing the offset to the base of the object (this latter component
11267 is only generated when the parent type has discriminants --as documented
11269 (Inherit_Components): Use the new decoration of the tag components to
11270 improve the condition that avoids inheriting the components associated
11271 with secondary tags of the parent.
11272 (Build_Discriminanted_Subtype): Indicate to the backend that the
11273 size of record types associated with dispatch tables is known at
11275 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11276 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11277 to include task, protected, and synchronized interfaces as limited
11279 (Process_Discriminants): Remove the setting of
11280 Is_Local_Anonymous_Access on the type of (anonymous) access
11281 discriminants of nonlimited types.
11282 (Analyze_Interface_Type_Declaration): Complete the decoration of the
11283 class-wide entity it is is already present. This situation occurs if
11284 the limited-view has been previously built.
11285 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11287 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11290 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11292 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11293 of the type that specify the position of interface tags when the type
11294 inherits discriminated array components from the parent type.
11295 If a component is initialized with a box, check for the presence of a
11296 default expression in its declaration before using its default
11297 initialization procedure.
11298 (Resolve_Record_Aggregate): If a component is box-initialized, and the
11299 component type has a discriminants, create a partial aggregate for it
11300 by copying the discriminants of the component subtype.
11301 Reject attempt to initialize a discriminant with a box.
11302 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11303 associated with dispatch tables is known at compile time.
11304 (Get_Value): If an association in a record aggregate has a box
11305 association, and the corresponding record component has a default
11306 expression, always copy the default expression, even when the
11307 association has a single choice, in order to create a proper
11308 association for the expanded aggregate.
11310 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11311 Robert Dewar <dewar@adacore.com>
11313 * par-ch12.adb (P_Generic_Associations): The source position of an
11314 Others association is that of the others keyword, not that of the token
11315 that follows the box.
11316 (P_Formal_Type_Definition): Handle formal access types that carry a
11317 not null indicator.
11319 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11320 multiple identifier are present, save Scan_State before scanning the
11321 colon, to ensure that separate trees are constructed for each
11323 (P_Identifier_Declarations): For object declaration, set new flag
11324 Has_Init_Expression if initialization expression present.
11325 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11326 Improve NOT NULL error messages
11328 2007-06-06 Robert Dewar <dewar@adacore.com>
11330 * par-ch4.adb: (P_Name): Recover from literal used as name
11332 2007-06-06 Vincent Celier <celier@adacore.com>
11334 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11335 defaulted to False.
11336 In the "not" case, recursive call with Complemented set to True.
11337 Do not allow "or" or "and" operators when Complemented is True.
11339 2007-06-06 Vincent Celier <celier@adacore.com>
11341 * prj.adb (Project_Empty): Gives default value for new component
11344 * prj-attr.ads: Minor reformatting
11346 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11347 directory using the untouched casing.
11348 (For_All_Source_Dirs): Idem.
11350 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11351 directories specified with switches -aP.
11352 (Add_Search_Project_Directory): New procedure
11353 (Initialize_Project_Path): Put the directories in table
11354 Search_Directories in the project search path.
11355 (Initialize_Project_Path): For VMS, transform into canonical form the
11358 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11360 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11361 true if configurable run-time or No_Run_Time is set.
11362 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11363 processing an unit which is not the one being compiled.
11365 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11367 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11368 Replace UC by Ada.UC
11370 * s-bitops.adb: Get rid of System.Pure_Exceptions.
11371 Replace UC by Ada.UC
11373 2007-06-06 Robert Dewar <dewar@adacore.com>
11375 * scng.adb: (Check_End_Of_Line): Deal with very long lines
11377 2007-06-06 Robert Dewar <dewar@adacore.com>
11379 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11380 Remove no longer used nodes.
11382 2007-06-06 Javier Miranda <miranda@adacore.com>
11383 Ed Schonberg <schonberg@adacore.com>
11384 Robert Dewar <dewar@adacore.com>
11386 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11387 on obsolescent withed unit in case of limited-withed units.
11388 (Analyze_Compilation_Unit): Add guard to code that removed an
11389 instantiation from visibility, to prevent compiler aborts when
11390 instantiation is abandoned early on.
11391 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11392 current unit being analyzed, and Distinguish local incomplete types
11393 from limited views of types declared elsewhere.
11394 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11395 to state that the class-wide entity is shared by the limited-view
11397 (Analyze_With_Clause): Improve placement of flag for case of
11398 unimplemented unit.
11399 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11400 manner similar to GNAT.Current_Exception. This is a violation of
11401 restriction (No_Exception_Propagation), and also inhibits the
11402 optimization of local raise to goto.
11403 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11404 and if so set Most_Recent_Exception_Used flag in Opt, and also check
11405 for violation of restriction No_Exception_Propagation.
11407 2007-06-06 Javier Miranda <miranda@adacore.com>
11408 Hristian Kirtchev <kirtchev@adacore.com>
11409 Gary Dismukes <dismukes@adacore.com>
11411 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11412 use of entity Exception_Occurrence if it is not available in the
11415 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11416 concurrent types are declared within an Ada 2005 generic, build their
11417 corresponding record types since they are needed for overriding-related
11419 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11420 protected type does not implement a task interface or a nonlimited
11422 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11423 type does not implement a protected interface or a nonlimited interface.
11424 (Single_Task_Declaration, Single_Protected_Declaration): use original
11425 entity for variable declaration, to ensure that debugging information
11426 is correcty generated.
11427 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11428 routines if the expander is not active.
11429 (Analyze_Task_Body): Mark all handlers to stop optimization of local
11430 raise, since special things happen for task exception handlers.
11432 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11433 concurrent types declared within a generic.
11434 (Check_Dispatching_Operation): Do not emit warning about late interface
11435 operations in the context of an instance.
11436 (Check_Dispatching_Call): Remove restriction against calling a
11437 dispatching operation with a limited controlling result.
11438 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11439 Register_Interface_DT_Entry by calls to Register_Primitive.
11440 (Check_Dispatching_Formals): Handle properly a function with a
11441 controlling access result.
11443 2007-06-06 Robert Dewar <dewar@adacore.com>
11444 Arnaud Charlet <charlet@adacore.com>
11446 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11447 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11448 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11449 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11450 message when using a VM, since this attribute is not supported.
11451 (Analyze_Record_Representation_Clause): Give unrepped component warnings
11453 * usage.adb: Add new warning for renaming of function return objects
11454 Indicate that -gnatwp and -gnatwP concern front-end inlining
11455 Add line for -gnatyg
11456 Add usage information for -gnatw.c/C
11458 2007-06-06 Robert Dewar <dewar@adacore.com>
11459 Ed Schonberg <schonberg@adacore.com>
11462 (Find_Var): Do not consider function call in test for infinite loop
11463 warning if warnings set off for function entity.
11464 (One_Bound): Do not create a temporary for a loop bound if it is a
11466 (Analyze_Assignment): Traverse the right hand side of an assignment and
11467 mark all allocators as static coextensions.
11468 (Analyze_Assignment): Exempt assignments involving a dispatching call
11469 to a function with a controlling access result from the check requiring
11470 the target to be class-wide.
11472 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11473 Ed Schonberg <schonberg@adacore.com>
11474 Robert Dewar <dewar@adacore.com>
11475 Javier Miranda <miranda@adacore.com>
11477 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11478 chain of coextensions when an allocator serves as the root of such a
11480 (Propagate_Coextensions): Remove the test for the root being an
11482 (Resolve_Allocator): Add condition to ensure that all future decoration
11483 occurs on an allocator node. Add processing and cleanup for static
11485 (Valid_Conversion): If the operand type is the limited view of a
11486 class-wide type, use the non-limited view is available to determine
11487 legality of operation.
11488 (Ambiguous_Character): move to spec, for use elsewhere.
11489 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11490 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11491 character literals.
11492 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11493 Do_Division_Check flag explicitly.
11494 (Resolve_Actuals): If the actual is of a synchronized type, and the
11495 formal is of the corresponding record type, this is a call to a
11496 primitive operation of the type, that is declared outside of the type;
11497 the actual must be unchecked-converted to the type of the actual
11498 (Resolve_Call): Kill all current values for any subprogram call if
11499 flag Suppress_Value_Tracking_On_Call is set.
11500 (Resolve_Type_Conversion): Generate error message the the operand
11501 or target of interface conversions come from a limited view.
11502 (Check_Infinite_Recursion): Ignore generated calls
11503 (Check_Allocator_Discrim_Accessibility): New procedure for checking
11504 that an expression that constrains an access discriminant in an
11505 allocator does not denote an object with a deeper level than the
11506 allocator's access type.
11507 (Resolve_Allocator): In the case of an allocator initialized by an
11508 aggregate of a discriminated type, check that associations for any
11509 access discriminants satisfy accessibility requirements by calling
11510 Check_Allocator_Discrim_Accessibility.
11511 (Resolve_Equality_Op): Handle comparisons of anonymous access to
11512 subprogram types in the same fashion as other anonymous access types.
11513 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11514 message that is not a continuation message.
11515 (Resolve_Type_Conversion): Add missing support for conversion to
11517 (Resolve_Actuals): Introduce a transient scope around the call if an
11518 actual is a call to a function returning a limited type, because the
11519 resulting value must be finalized after the call.
11520 (Resolve_Actuals): If the call was given in prefix notations, check
11521 whether an implicit 'Access reference or implicit dereference must be
11522 added to make the actual conform to the controlling formal.
11524 2007-06-06 Robert Dewar <dewar@adacore.com>
11525 Javier Miranda <miranda@adacore.com>
11527 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11528 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11529 overriding of an inherited private subprogram now there is no need to
11530 inherit its dispatching slot and reduce the size of the dispatch table.
11531 Set_All_DT_Position now ensures that the same slot is now assigned to
11532 both entities. This is required to statically build the dispatch table.
11533 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11534 of calling Set_All_DT_Position to re-evaluate the position of the
11535 entries in the dispatch table. Such reevaluation is not desired if
11536 the tagged type is already frozen.
11538 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11539 Gary Dismukes <dismukes@adacore.com>
11540 Robert Dewar <dewar@adacore.com>
11541 Javier Miranda <miranda@adacore.com>
11543 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11544 reference acts as an lvalue when the attribute name modifies the prefix
11545 (Is_Coextension_Root): New routine.
11546 (Mark_Static_Coextensions): New routine.
11547 (Type_Access_Level): Revise code for checking the level of the
11548 anonymous access type of a return object.
11549 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11550 (Matches_Prefixed_View_Profile): Remove the no longer necessary
11551 retrieval of the corresponding controlling record type.
11552 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11553 concurrent types declared within a generic as well as class wide types.
11554 Emit a mode incompatibility error whenever a protected entry or routine
11555 override an interface routine whose first parameter is not of mode
11556 "out", "in out" or access to variable.
11557 (Overrides_Synchronized_Primitive): Rename to
11558 Find_Overridden_Synchronized_Primitive.
11559 (Collect_Interface_Components): New subprogram that collects all the
11560 components of a tagged record containing tags of secondary dispatch
11562 (Add_Global_Declaration): New procedure
11563 (Abstract_Interface_List): Handle properly the case of a subtype of a
11565 (Type_Access_Level): In the case of a type whose parent scope is a
11566 return statement, call Type_Access_Level recursively on the enclosing
11567 function's result type to determine the level of the return object's
11569 (Build_Elaboration_Entity): Build name of elaboration entity from the
11570 scope chain of the entity, rather than the unit name of the file name.
11571 (Check_Nested_Access): New procedure.
11572 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11573 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11574 (Get_Renamed_Entity): Utility routine for performing common operation
11575 of chasing the Renamed_Entity field of an entity.
11577 2007-06-06 Robert Dewar <dewar@adacore.com>
11579 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11581 (Check_A_Call): Add check for entry call which was causing blowup
11583 2007-06-06 Olivier Hainque <hainque@adacore.com>
11585 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11586 special code on ia64-vms to handle major incompatibilities between the
11587 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11588 this routine with a very different set of arguments and expectations on
11591 2007-06-06 Thomas Quinot <quinot@adacore.com>
11593 * socket.c (__gnat_close_signalling_fd): New function.
11594 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11595 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11596 New supporting functions for task safe Netdb operations.
11598 2007-06-06 Thomas Quinot <quinot@adacore.com>
11599 Olivier Hainque <hainque@adacore.com>
11601 * a-except-2005.ads, a-except-2005.adb
11602 (Raise_From_Controlled_Operation): New procedure in
11603 (private part of) Ada.Exceptions (standard runtime version). Used to
11604 provide informational exception message when Program_Error is raised as
11605 a result of an Adjust or Finalize operation propagating an exception.
11606 (Rmsg_28): Fix description for E.4(18) check.
11607 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11608 propagation starts, to let debuggers know about the event in a reliable
11610 Take the address of E and dereference to make sure it is homed on stack
11611 and prevent the stores from being deleted, necessary for proper
11612 debugger behavior on "break exception" hits.
11613 (Local_Raise): Moved to System.Exceptions
11615 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11616 exception message from the current occurrence and raise Program_Error
11617 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11619 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11620 Arnaud Charlet <charlet@adacore.com>
11622 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11625 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11626 priority associated to a lock.
11628 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11629 assertion to take into account case of no abort restriction.
11630 (Initialize_Protection_Entries): Add initialization for the field
11631 New_Ceiling associated to the protected object.
11632 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11635 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11636 since this function needs to be set consistently with Update_Exception.
11638 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11639 since this function needs to be set consistently with Update_Exception.
11641 * s-taskin.ads: Update comments on
11642 Interrupt_Server_Blocked_On_Event_Flag.
11643 (Unbind_Handler): Fix handling of server_task wakeup
11644 (Server_Task): Set self's state so that Unbind_Handler can take
11645 appropriate actions.
11646 (Common_ATCB): Now use a constant from System.Parameters to determine
11647 the max size of the Task_Image field.
11649 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11650 Initialize_Analyzer function.
11651 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11652 take into account case of no abort restriction.
11653 ([Vulnerable_]Complete_Master): Modify assertion.
11655 * s-tataat.adb (Finalize): Use the nestable versions of
11656 Defer/Undefer_Abort.
11658 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11660 * s-tpobop.ads: Update comments.
11662 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11663 of locking the object manually, to avoid inconsistencies between
11664 Lock/Unlock_Entry assertions.
11666 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11668 application and System.Parameters.No_Abort is True.
11669 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11670 (Unbind_Handler): Fix handling of server_task wakeup
11671 (Server_Task): Set self's state so that Unbind_Handler can take
11672 appropriate actions.
11674 2007-06-06 Thomas Quinot <quinot@adacore.com>
11676 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11677 declarations instead of an explicit null body, for conciseness.
11679 2007-06-06 Robert Dewar <dewar@adacore.com>
11681 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11682 illegal aggregate and the type is still Any_Composite.
11683 (Subtypes_Statically_Match): Fix problem of empty discriminant list
11685 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11687 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11688 to prevent subsequent expansion.
11690 2007-06-06 Robert Dewar <dewar@adacore.com>
11692 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11694 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11695 Robert Dewar <dewar@adacore.com>
11697 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11699 (Write_Itype): Handle case of string literal subtype, which
11700 comes up in this context.
11701 (Update_Itype): when debugging expanded code, update sloc of itypes
11702 associated with defining_identifiers and ranges, for gdb use.
11703 (Sprint_Node_Actual): Add static keyword to object or exception
11704 declaration output if Is_Statically_Allocated is True.
11705 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11706 or task body, so that the tree carries the proper Sloc information for
11708 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11710 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11712 * s-secsta.adb (Chunk): Ensure this object has a static size known at
11713 compile time, to avoid dynamic memory allocation
11714 (Elaboration code): Only use dynamic memory allocation when needed.
11716 2007-06-06 Quentin Ochem <ochem@adacore.com>
11718 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11720 (Stack_Analyzer): Added field "Overflow_Guard"
11721 (Task_Result): Added field "Overflow_Guard".
11722 (Index_Str): New constant.
11723 (Task_Name_Str): New constant.
11724 (Actual_Size_Str): New constant.
11725 (Pattern_Array_Element_Size): New constant.
11726 (Get_Usage_Range): New subprogram.
11727 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11728 Now align the output.
11730 (Initialize): Added value for Overflow_Guard.
11731 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11732 Update the value of the overflow guard according to the actual
11733 beginning of the pattern array.
11734 (Initialize_Analyzer): Added parameter Overflow_Guard.
11735 Take this parameter into accound when computing the max size.
11736 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11737 (Report_Result): Removed extra useless procedure.
11738 Updated call to Output_Result.
11739 Moved full computation of the Task_Result here.
11741 2007-06-06 Thomas Quinot <quinot@adacore.com>
11743 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11744 Thread_Blocking_IO, always True by default, set False on a per-runtime
11746 Add Windows-specific constants
11747 Add new constant Need_Netdb_Buffer.
11748 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11749 not, whether to use getXXXbyYYY_r.
11751 * gsocket.h: Add new constant Need_Netdb_Buffer.
11752 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11753 not, whether to use getXXXbyYYY_r.
11755 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11757 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11758 than their first call.
11759 Add type Dummy_Communication_Block used in the generation of the pre-
11760 defined dispatching primitive _disp_asynchronous_select.
11761 (Storage_Element): Put Pragma Universal_Aliasing on it.
11763 2007-06-06 Vincent Celier <celier@adacore.com>
11765 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11768 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11769 letter if it is not followed by a '/' or a '\'.
11770 (Windows): New Boolean function
11772 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11774 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11776 (Containing_Directory): Raise Use_Error when the directory is a root
11778 (Extension): When returning the result, use a conversion to Result_Type,
11779 not a qualification.
11781 2007-06-06 Robert Dewar <dewar@adacore.com>
11783 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11784 (Set_Style_Check_Options): Recognize new -gnatyg style switch
11786 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11787 Warn_On_Non_Local_Exception to False, to turn off warnings for
11788 No_Exception_Propagation in ZFP runtime.
11789 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11791 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11793 2007-06-06 Vincent Celier <celier@adacore.com>
11795 * switch-b.adb (Scan_Binder_Switches): Add processing for new
11798 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11799 (Scan_Make_Switches): Recognize new switch -aP
11801 2007-06-06 Matthew Gingell <gingell@adacore.com>
11802 Jose Ruiz <ruiz@adacore.com>
11804 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11805 VxWorks task descriptor in the Ada run time, call a C subprogram
11806 (__gnat_get_stack_info) that extracts the required information.
11808 * sysdep.c: Back out temporary lynxos workaround.
11809 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11810 time the stack information associated to the currently executing task.
11811 Only VxWorks systems require this function.
11813 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11815 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11816 add the stack bias if the offset is computed from a frame address.
11817 (__gnat_backtrace): Adjust for above change.
11819 2007-06-06 Thomas Quinot <quinot@adacore.com>
11821 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11822 PE_Non_Transportable_Actual.
11823 (By_Descriptor_Last): New constant.
11824 (By_Copy_Return): Likewise.
11826 2007-06-06 Vincent Celier <celier@adacore.com>
11828 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11831 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11832 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11833 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11834 Add missing comment for /OPTIMIZE=SPACE
11835 Add entry for OPTIMIZE=SPACE
11836 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11837 Add documentation for new qualifiers corresponding to -gnatw.c/.C
11839 2007-06-06 Vincent Celier <celier@adacore.com>
11840 Robert Dewar <dewar@adacore.com>
11842 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11845 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11846 Document gnatbind switch -a
11847 (case Constructions): Document that variables declarations are allowed
11848 for previously declared variables.
11849 Fix external lib project example
11850 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11851 Indicate that "#if not X or Y then" is not allowed in input files to
11853 Document gnatw.x and gnatw.X warning flags
11854 Mention -Winline switch to activate warnings when back-end inlining is
11856 Add gnatcheck rule descriptions
11857 Describe how to use the GNAT driver to call a tool on a closure.
11858 Describe how to run project-wide checks or metrics.
11859 Document gnatbind's -R option
11860 Updated to account for Ada 2005 support
11862 * gnat_rm.texi (Case Construction): Allow variable declarations for
11863 previously declared variables.
11864 (Representation Clauses and Pragmas): Lift restriction on alignment
11865 clauses for record types.
11866 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11867 Document No_Exception_Propagation restriction
11868 Document No_Body pragma
11869 Updated to account for Ada 2005 support; corrected some typos
11870 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11872 * gnat-style.texi: Make it clear that we never use mode IN for
11873 procedures or functions
11875 * ug_words: Add entries for -gnatw.x and -gnatw.X
11876 Add entries for -gnatw.c/.C
11878 2007-06-06 Pascal Obry <obry@adacore.com>
11879 Vincent Celier <celier@adacore.com>
11881 * makegpr.adb (Add_Archive_Path): Use untouched object and library
11882 dirs and library name.
11883 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
11885 (Build_Library): Idem.
11886 (Compile_Individual_Sources): Idem.
11887 (Compile_Link_With_Gnatmake): Idem.
11888 (Compile_Sources): Idem.
11889 (Get_Imported_Directories): Idem.
11890 (Link_Executables): Idem. Same change for the executable dir.
11891 (Check_Compilation_Needed): C_Source_Path new variable containing
11892 the canonical form of Source_Path to check against the source names
11893 in the dependency file.
11894 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
11895 verbose mode, display the name of the object directory we're changing
11897 (Saved_Switches): New name of table X_Switches
11898 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
11899 (Usage): New line for switch -aP
11900 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
11901 testing if a directory should be added to the search path.
11903 2007-06-06 Javier Miranda <miranda@adacore.com>
11905 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
11906 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
11907 declaration after freezing point of all its associated tagged types;
11908 otherwise such types are frozen too early.
11910 2007-06-06 Robert Dewar <dewar@adacore.com>
11912 * a-reatim.adb: Documentation addition
11914 * g-cgideb.adb: Minor code reorganization
11916 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
11917 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
11918 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
11920 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
11921 function. Change name New_Scope to Push_Scope
11922 (Get_Debug_Flag_K): Remove unused obsolete function.
11924 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
11927 * makeusg.adb: Update Copyright notice
11928 Add line for switch -aP
11930 * makeusg.adb: Fix wording of some usage messages
11932 * s-assert.adb (Raise_Assert_Failure): Add call to
11933 Debug_Raise_Assert_Failure.
11935 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
11936 (2, Standard'Alignment) for compatibility with AAMP (where alignment
11937 is restricted to 1).
11939 * s-wchjis.adb: Remove use of System.Pure_Exceptions
11941 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
11942 node location to No_Location when we're not debugging the expanded
11945 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
11947 * misc.c (enumerate_modes): Consider log2_b to always be one.
11949 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
11951 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11953 2007-05-02 Pascal Obry <obry@adacore.com>
11955 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
11956 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
11957 encoding support of Stream_IO.
11958 (Write_Unit): Idem.
11960 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
11961 filename and corresponding encoding to match the OS requirement.
11962 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
11963 routine will fail on specific devices like CON: AUX: ...
11965 PR ada/29856: Add missing braces
11967 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
11970 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
11972 2007-04-21 Jan Hubicka <jh@suse.cz>
11974 * misc.c (gnat_expand_body): Don't call target for destructors,
11975 avoid redundant check on syntax errors.
11977 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11979 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
11980 instead of checking GIMPLE_STMT_P in chain_next.
11982 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
11985 * system-linux-alpha.ads: Disable constant condition warning for the
11986 Default_Bit_Order variable.
11987 * system-linux-s390.ads: Likewise.
11988 * system-linux-s390x.ads: Likewise.
11989 * system-linux-sparc.ads: Likewise.
11991 2007-04-06 Javier Miranda <miranda@adacore.com>
11992 Matt Heaney <heaney@adacore.com>
11993 Robert Dewar <dewar@adacore.com>
11995 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11996 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
11997 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
11998 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
11999 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12000 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12001 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12002 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12003 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12004 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12005 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12006 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12007 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12008 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12009 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12010 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12011 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12012 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12013 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12014 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12015 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12016 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12017 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12018 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12019 s-taprop-tru64.adb, s-taprop-irix.adb,
12020 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12021 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12022 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12023 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
12024 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
12025 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
12026 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
12027 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
12028 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
12029 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
12030 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
12031 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12032 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
12033 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
12034 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
12035 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
12036 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
12037 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12038 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
12039 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12041 Update documentation.
12044 2007-04-06 Robert Dewar <dewar@adacore.com>
12046 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12047 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12048 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12049 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12050 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12051 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12052 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12053 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12054 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12055 system-hpux-ia64.ads, targparm.adb,
12056 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12058 * system.ads: Move Functions_Return_By_DSP to obsolete section,
12059 kept for bootstrap purposes only.
12061 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12063 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12064 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12065 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12066 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12068 2007-04-06 Robert Dewar <dewar@adacore.com>
12070 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12071 (Local_Raise): New dummy procedure called when a raise is converted
12072 to a local goto. Used for debugger to detect that the exception
12075 * debug.adb: Document new d.g flag (expand local raise statements to
12076 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12078 * exp_sel.adb: Use Make_Implicit_Exception_Handler
12080 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12081 suppress warnings for unused handlers.
12082 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
12083 warnings for raise statements not handled locally.
12084 (Get_RT_Exception_Entity): New function
12085 (Get_Local_Call_Entity): New function
12086 (Find_Local_Handler): New function
12087 (Warn_If_No_Propagation): New procedure
12088 (Expand_At_End_Handler): Call Make_Implicit_Handler
12089 (Expand_Exception_Handlers): Major additions to deal with local handlers
12090 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12091 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12094 * exp_ch11.ads (Get_RT_Exception_Entity): New function
12095 (Get_Local_Call_Entity): New function
12097 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12098 of restrictions that the binder will never suggest adding.
12100 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12103 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12104 be with'ed in the presence of pragma Restriction
12105 (No_Exception_Propagation).
12107 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12109 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12110 parameter, then the handler is not a suitable target for a local raise,
12111 and this is a violation of restriction No_Exception_Propagation.
12112 (Analyze_Handled_Statements): Analyze choice parameters in exception
12113 handlers before analyzing statement sequence (needed for proper
12114 detection of local raise statements).
12115 (Analyze_Raise_Statement): Reraise statement is a violation of the
12116 No_Exception_Propagation restriction.
12118 * s-rident.ads: Add new restriction No_Exception_Propagation
12120 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12121 function, like Make_Exception_Handler but sets Local_Raise_Statements
12123 (Add_Unique_Serial_Number): Deal with case where this is called during
12124 processing of configuration pragmas.
12126 2007-04-06 Thomas Quinot <quinot@adacore.com>
12127 Pat Rogers <rogers@adacore.com>
12128 Pascal Obry <obry@adacore.com>
12130 * g-stsifd-sockets.adb: New file.
12132 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12133 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12134 g-socthi-vms.adb: Move signalling
12135 fd management to a nested package, so that they can conveniently be
12136 moved to a subunit that is shared across Windows, VMS, and VxWorks
12137 (Ada implementation) or completed with imported bodies from socket.c
12139 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12141 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12142 the signalling file descriptor.
12143 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12144 signalling file descriptor.
12145 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12146 instead of creating a pair of sockets for signalling here.
12148 * g-socthi.adb: Ditto.
12149 Set the runtime process to ignore SIGPIPEs on platforms that support
12150 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12152 * g-socthi-mingw.adb: Ditto.
12153 (WS_Version): Use Windows 2.2.
12154 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12156 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12157 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12159 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12160 added GNAT byte swapping facility
12161 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12163 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12165 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12167 (__gnat_create_signalling_fds): New subprogram.
12168 Set the runtime process to ignore SIGPIPEs on platforms that support
12169 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12171 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12172 Vincent Celier <celier@adacore.com>
12174 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12175 New version of Ada.Calendar which supports the new upper bound of Ada
12176 time (2399-12-31 86_399.999999999).
12177 The following modifications have been made to the package:
12178 - New representation of time as count of nanoseconds since the start of
12179 Ada time (1901-1-1 0.0).
12180 - Target independent Split and Time_Of routines which service both
12181 Ada 95 and Ada 2005 code.
12182 - Target independent interface to the Ada 2005 children of Calendar.
12183 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12184 - Handling of non-leap centenial years.
12185 - Updated clock function.
12186 - Updated arithmetic and comparison operators.
12188 * a-caldel.adb (To_Duration): Add call to target independent routine in
12189 Ada.Calendar to handle the conversion of time to duration.
12191 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12193 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12195 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12196 targets do not have a natural time zone, GMT is used as a default.
12197 (__gnat_get_task_options): New.
12199 * a-direct.adb (Modification_Time): Add with and use clauses for
12200 Ada.Calendar and Ada.
12201 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12202 since it is no longer needed.
12203 (Duration_To_Time): Removed.
12204 (OS_Time_To_Long_Integer): Removed.
12205 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12206 Formatting Time_Of routines which automatically handle time zones,
12207 buffer periods and leap seconds.
12209 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12210 target independent routines in Ada.Calendar.
12212 * a-calfor.ads, a-calfor.adb:
12213 Code cleanup and addition of validity checks in various routines.
12214 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12217 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12218 independent routine in Ada.Calendar.
12220 2007-04-06 Olivier Hainque <hainque@adacore.com>
12223 (convert_addresses): Adjust prototype and dummy definition to expect an
12224 extra file_name argument.
12226 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12227 filling the now expected file_name argument with the appropriate
12229 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12230 (tracebk): Array of void * instead of char *, corresponding to what
12231 convert_addresses expects.
12232 (exename): New static global, to hold the executable file name to be
12233 used in all convert_addresses invocations.
12234 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12236 (__gnat_gmem_a2l_initialize): Resolve exename.
12237 (__gnat_convert_addresses): Use exename as the convert_addresses
12238 file_name argument.
12240 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12241 "convert_addresses", now expecting a filename argument. Import the
12242 necessary entities to compute the filename to use and pass it to
12245 2007-04-06 Matt Gingell <gingell@adacore.com>
12247 * system-aix.ads: Back out previous change.
12248 (Functions_Return_By_DSP): Removed
12250 2007-04-06 Pascal Obry <obry@adacore.com>
12252 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12253 or the monotonic used by Ada.Real_Time) to compute the sleep duration
12256 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12258 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12259 function. Its value changes in different VxWorks versions, and it is
12260 now handled by the function __gnat_get_task_options.
12262 * s-taprop-vxworks.adb (Create_Task): Call the function
12263 __gnat_get_task_options to get the required options for creating a task.
12265 2007-04-06 Pascal Obry <obry@adacore.com>
12266 Thomas Quinot <quinot@adacore.com>
12268 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12269 dealing with filename.
12270 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12271 filename from a standard string to a wide-string depending on the
12273 (__gnat_freopen): Idem.
12274 (__gnat_current_time): New function (wrapper for time(3) standard C
12277 * g-os_lib.ads (Current_Time): New function. Returns the current
12278 system time as an OS_Time value.
12280 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12281 (Monotonic_Clock): Same.
12283 2007-04-06 Quentin Ochem <ochem@adacore.com>
12285 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12287 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12289 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12291 * a-retide.adb: Add elaboration code to ensure that the tasking run
12292 time is initialized when using delay operations even when no task is
12295 2007-04-06 Javier Miranda <miranda@adacore.com>
12297 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12298 component Num_Prim_Ops.
12299 (Set_Num_Prim_Ops): Removed.
12300 Remove all the assertions because all the routines of this
12301 package are inline always.
12302 (Get_Offset_Index): Add support to primary dispatch tables.
12303 Move the documentation about the dispatch table to a-tags.ads
12304 (Set_External_Tag): Removed
12305 (Inherit_TSD): Removed.
12306 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12307 moved to a-tags.ads
12308 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12309 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12310 of the TSD field "Table" because this field has been renamed to
12312 (Inherit_CPP_DT): Removed.
12313 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12314 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12315 declarations have been moved to a-tags.ads
12316 (Check_Size): Removed.
12317 (Expanded_Name): Updated to get access to the new field of TSD
12318 containing the address of the expanded name.
12319 (Get_Access_Level/Set_Access_Level): Removed.
12320 (Get_Predefined_Prim_Op_Address): Removed.
12321 (Set_Predefined_Prim_Op_Address): Removed.
12322 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12323 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12324 (Set_Expanded_Name): Removed.
12325 (Inherit_DT): Removed.
12326 (Inherit_CPP_DT): Removed.
12327 (Set_RC_Offset): Removed.
12328 (Set_TSD): Removed.
12329 (Base_Address): New function that displaces "this" to point to the base
12330 of the object (that is, to point to the primary tag of the object).
12332 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12333 Javier Miranda <miranda@adacore.com>
12335 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12336 anonymous access component, do not create a master_id if type already
12337 has one, as may happen if the type is a subcomponent of a packed array
12339 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12340 Initialize_Tag): Remove code associated with the old CPP pragmas.
12341 CPP_Virtual and CPP_Vtable are no longer supported.
12342 (Build_Offset_To_Top_Internal): Add support for concurrent record types
12343 (Build_Offset_To_Top_Functions): Add support for concurrent record types
12344 (Freeze_Record_Type): Remove call to
12345 Init_Predefined_Interface_Primitives.
12346 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12347 code required to initialize the tags of the secondary dispatch tables.
12348 This leaves the algoritm more clear.
12349 (Init_Secondary_Tags): Add support for concurrent record types
12350 (Make_Predefined_Primitive_Specs): Code cleanup.
12351 (Predefined_Primitive_Bodies): Code cleanup.
12352 (Build_Master_Renaming): New local subprogram.
12353 (Expand_N_Full_Type_Declaration): Build the master_id associated with
12354 anonymous access to task type components.
12355 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12356 subtype indication are resolved during analysis, and must not be done
12358 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12360 2007-04-06 Geert Bosch <bosch@adacore.com>
12361 Ed Schonberg <schonberg@adacore.com>
12362 Javier Miranda <miranda@adacore.com>
12363 Bob Duff <duff@adacore.com>
12365 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12366 for conversion of a Float_Type'Truncation to integer.
12368 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12369 check if a node is an attribute that can be handled directly by the
12371 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12372 attributes that can be handled directly by the back end.
12373 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12374 use new predicate Is_Access_Protected_Subprogram_Type.
12375 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12376 and Unchecked_Union if it is generated as part of the default Output
12377 procedure for a type with default discriminants.
12378 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12379 if we are compiling under restriction No_Dispatching_Calls.
12380 (Constrained): Use Underlying_Type, in case the type is private without
12381 discriminants, but the full type has discriminants.
12382 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12383 call to Build_Get_Access_Level.
12384 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12385 interface objects requires a call to the run-time subprogram that
12386 returns the base address of the object.
12387 (Valid_Conversion): Improve error message on illegal attempt to store
12388 an anonymous access to subprogram value into a record component.
12390 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12392 (Simplify_Type_Conversion): New procedure that performs simplification
12393 of Int_Type (Float_Type'Truncation (X)).
12394 (Resolve_Type_Conversion): Call above procedure after resolving operand
12395 and before performing checks. This replaces the existing ineffective
12397 (Set_String_Literal_Subtype): When creating the internal static lower
12398 bound subtype for a string literal, use a newly created copy of the
12399 subtree representing the lower bound.
12400 (Resolve_Call): Exclude build-in-place function calls from transient
12401 scope treatment. Update comments to describe this exception.
12402 (Resolve_Equality_Op): In case of dispatching call check violation of
12403 restriction No_Dispatching_Calls.
12404 (Resolve_Call): If the call returns an array, the context imposes the
12405 component type of the array, and the function has one non-defaulted
12406 parameter, rewrite the call as the indexing of a call with a single
12407 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12409 (Resolve_Actuals): If an actual is an allocator for an access parameter,
12410 the master of the created object is the innermost enclosing statement.
12411 (Remove_Conversions): For a binary operator, check if type of second
12412 formal is numeric, to check if an abstract interpretation is present
12413 in the case of exponentiation as well.
12415 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12416 Bob Duff <duff@adacore.com>
12418 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12419 copying a parameter list in a call, set properly the First_Named_Formal
12420 and Next_Named_Formal fields in the new list and in the enclosing call.
12421 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12422 names, to ease typing in the debugger. Improve comments.
12423 (Watch_Node): New variable, intended to be set in the debugger.
12424 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12425 called when the watched node is created.
12426 (New_Node_Debugging_Output): Combined version of local procedures
12427 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12428 with a parameter so that conditional breakpoints like "if Node = 12345"
12430 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12431 Add Elist1 function
12433 2007-04-06 Thomas Quinot <quinot@adacore.com>
12434 Ed Schonberg <schonberg@adacore.com>
12435 Gary Dismukes <dismukes@adacore.com>
12437 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12438 required for a conversion between two access-to-unconstrained-array
12440 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12441 to discriminant constraints on discriminant objects. This rule must
12442 apply as well to discriminants of protected types in private components.
12443 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12444 object of a null-excluding access type then don't require the
12445 the object declaration to have an expression and don't emit a
12448 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12449 Eric Botcazou <botcazou@adacore.com>
12451 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12454 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12455 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12458 * fe.h (Compiler_Abort): Add third parameter.
12460 * misc.c (internal_error_function): Build third argument from current
12461 input location and pass it to Compiler_Abort.
12463 2007-04-06 Gary Dismukes <dismukes@adacore.com>
12465 * cstand.adb (Create_Standard): When the target's storage unit size is
12466 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12469 2007-04-06 Nicolas Roche <roche@adacore.com>
12471 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12472 absolute path can have the following form: device:/a/b. In this case
12473 '/' should be inserted between the path and the filename.
12475 2007-04-06 Olivier Hainque <hainque@adacore.com>
12476 Eric Botcazou <botcazou@adacore.com>
12478 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12479 VAR_DECL to a CONST_DECL we make for a public constant when we know the
12480 corresponding definition has created the so made visible variable.
12481 Handle anonymous access to protected subprogram.
12482 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12483 object with an address clause volatile. Re-enable original fix.
12484 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12486 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12487 associated with either the Equivalent or Root type, instead of the
12489 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12490 subtree for every field of a global record type.
12491 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12492 discriminants, invoke again variable_size on its newly computed sizes.
12494 2007-04-06 Robert Dewar <dewar@adacore.com>
12495 Thomas Quinot <quinot@adacore.com>
12496 Ed Schonberg <schonberg@adacore.com>
12497 Bob Duff <duff@adacore.com>
12499 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12500 (Next_Component_Or_Discriminant): New function and procedure
12501 (First_Index, First_Literal, Master_Id,
12502 Set_First_Index, Set_First_Literal, Set_Master_Id):
12503 Add missing Ekind assertions.
12504 (Is_Access_Protected_Subprogram_Type): New predicate.
12505 (Has_RACW): New entity flag, set on package entities to indicate that
12506 the package contains the declaration of a remote accecss-to-classwide
12508 (E_Return_Statement): This node type has the Finalization_Chain_Entity
12509 attribute, in case the result type has controlled parts.
12510 (Requires_Overriding): Add this new flag, because "requires
12511 overriding" is subtly different from "is abstract" (see AI-228).
12512 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12513 Is_Abstract_Type. Make sure these are called only when appropriate.
12514 (Has_Pragma_Unreferenced_Objects): New flag
12516 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12517 class-wide, the tag of the right-hand side must be an exact match, not
12518 an ancestor of that of the object on left-hand side.
12519 (Move_Activation_Chain): New procedure to create the call to
12520 System.Tasking.Stages.Move_Activation_Chain.
12521 (Expand_N_Extended_Return_Statement): Generate code to call
12522 System.Finalization_Implementation.Move_Final_List at the end of a
12523 return statement if the function's result type has controlled parts.
12524 Move asserts to Build_In_Place_Formal.
12525 (Move_Final_List): New function to create the call statement.
12526 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12527 tagged type, replace generation of call to the run-time subprogram
12528 CW_Membership by call to Build_CW_Membership.
12529 (Expand_N_Return_Statement): Replace generation of call to the run-time
12530 subprogram Get_Access_Level by call to Build_Get_Access_Level.
12531 (Expand_N_Simple_Function_Return): Replace generation of call to the
12532 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12534 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12535 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12536 access to protected operations.
12537 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12538 master and chain actual parameters to a build-in-place function call
12540 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12542 (Make_Build_In_Place_Call_In_Allocator,
12543 Make_Build_In_Place_Call_In_Anonymous_Context,
12544 Make_Build_In_Place_Call_In_Assignment,
12545 Make_Build_In_Place_Call_In_Object_Declaration): Call
12546 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12547 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12548 stubbed procedure with a null body, replace the call with a null
12549 statement without using the full inlining machinery, for efficiency
12550 and to avoid invalid values in source file table entries.
12552 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12553 renamings of calls to build-in-place functions.
12555 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12556 provides the functionality of RTE_Available to record components.
12557 (RTU_Entity): The function Entity has been renamed to RTU_Entity
12558 to avoid undesired overloading.
12559 (Entity): New subprogram that returns the entity for the referened
12560 unit. If this unit has not been loaded, it returns Empty.
12561 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12562 Remove no longer used entities.
12563 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12564 (RE_Type_Specific_Data): New entity.
12565 (RE_Move_Any_Value): New entity.
12566 (RE_TA_A, RE_Get_Any_Type): New entities.
12567 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12568 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12569 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12570 (Entity): New subprogram that returns the entity for the referened
12571 unit. If this unit has not been loaded, it returns Empty.
12572 (RTE): Addition of a new formal that extends the search to the scopes
12573 of the record types found in the chain of the package.
12575 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12576 "abstract subprograms must be visible" message, whether or not the type
12577 is an interface; that is, remove the special case for interface types.
12578 (Analyze_Function_Return): Remove error message "return of task objects
12579 is not yet implemented" because this is now implemented.
12580 (Create_Extra_Formals): Add the extra master and activation chain
12581 formals in case the result type has tasks.
12582 Remove error message "return of limited controlled objects is not yet
12584 (Create_Extra_Formals): Add the extra caller's finalization list formal
12585 in case the result type has controlled parts.
12586 (Process_Formals): In case of access formal types there is no need
12587 to continue with the analysis of the formals if we already notified
12589 (Check_Overriding_Indicator): Add code to check overriding of predefined
12591 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12592 flags for formals that do not require them,.
12593 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12594 hidden entity is use visible or directly visible.
12595 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12596 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12597 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12598 New_Overloaded_Entity): Split Is_Abstract flag into
12599 Is_Abstract_Subprogram and Is_Abstract_Type.
12601 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12602 a return statement's finalization list to the caller's list, used for
12603 build-in-place functions with result type with controlled parts.
12604 Remove no longer used entities.
12606 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12607 longer needed, because the full type is now limited, and therefore a
12608 pass-by-reference type.
12609 (Foreign_Task_Level): New constant.
12611 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12612 move tasks from the activation chain belonging to a return statement to
12613 the one passed in by the caller, and update the master to the one
12614 passed in by the caller.
12615 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12616 of unactivated tasks, so we don't kill the ones that are being returned
12617 by a build-in-place function.
12618 (Create_Task): Ignore AI-280 for foreign threads.
12620 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12621 Robert Dewar <dewar@adacore.com>
12622 Bob Duff <duff@adacore.com>
12623 Gary Dismukes <dismukes@adacore.com>
12625 * errout.adb (Unwind_Internal_Type): Use predicate
12626 Is_Access__Protected_Subprogram_Type.
12628 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12629 (Freeze_Entity, packed array case): Do not override explicitly set
12630 alignment and size clauses.
12631 (Freeze_Entity): An entity declared in an outer scope can be frozen if
12632 the enclosing subprogram is a child unit body that acts as a spec.
12633 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12634 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12635 Remove all code for DSP option
12637 * layout.adb (Layout_Record_Type): Use First/
12638 Next_Component_Or_Discriminant
12639 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12640 to handle properly the anonymous access case.
12642 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12643 for all access attributes, because overload resolution should work the
12644 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12645 causes the error message for the ambiguous "X'Access = Y'Access" and
12646 "X'Unrestricted_Access = Y'Access" and so forth to match.
12647 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12648 now that anonymous access to protected operations have their own kind.
12649 (Resolve_Attribute): In case of dispatching call check the violation of
12650 restriction No_Dispatching_Calls.
12651 (Check_Array_Type): Check new -gnatyA array index style option
12653 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12654 attempt to derive from a synchronized tagged type.
12655 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12656 type, inherit the class-wide type already created, because it may
12657 already have been used in a self-referential anonymous access component.
12658 (Mentions_T): Recognize self-referential anonymous access components
12659 that use (a subtype of) the class-wide type of the enclosing type.
12660 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12661 Derived_Type for Prev formal on call to
12662 Check_Anonymous_Access_Components rather than Empty.
12663 (Make_Incomplete_Type_Declaration): Add test for case where the type has
12664 a record extension in deciding whether to create a class-wide type,
12665 rather than just checking Tagged_Present.
12666 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12667 to stand-alone object declarations as well as component declarations.
12668 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12669 prevent accidental overwriting when enclosing package appears in
12670 a limited_with_clause.
12671 (Array_Type_Declaration): If the component type is an anonymous access,
12672 the associated_node for the itype is the type declaration itself.
12673 (Add_Interface_Tag_Components): Modified to support concurrent
12674 types with abstract interfaces.
12675 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12676 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12677 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12678 to complete the decoration of synchronized interface types. Add also
12679 a call to Check_Abstract_Interfaces to verify the ARM rules.
12680 (Derive_Interface_Subprograms): Modified to support concurrent types
12681 with abstract interfaces.
12682 (Analyze_Subtype_Indication): Resolve the range with the given subtype
12683 mark, rather than delaying the full resolution depending on context.
12684 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12685 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12686 Array_Type_Declaration,Build_Derived_Record_Type,
12687 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12688 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12689 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12690 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12691 called only when appropriate.
12692 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12694 (Analyze_Subtype_Declaration): For an access subtype declaration, create
12695 an itype reference for the anonymous designated subtype, to prevent
12696 scope anonmalies in gigi.
12697 (Build_Itype_Reference): New utility, to simplify construction of such
12700 2007-04-06 Vincent Celier <celier@adacore.com>
12702 * errutil.adb (Initialize): Initialize warnings table, if all warnings
12703 are suppressed, supply an initial dummy entry covering all possible
12706 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12707 and start with only one, such as "-RTS=none".
12708 (Collect_Arguments): Do not check for sources outside of projects.
12709 Do not collect arguments if project is externally built.
12710 (Compile_Sources): Do nothing, not even check if the source is up to
12711 date, if its project is externally built.
12712 (Compile): When compiling a predefined source, add -gnatpg
12713 as the second switch, after -c.
12714 (Compile_Sources): Allow compilation of Annex J renames without -a
12715 (Is_In_Object_Directory): Check if the ALI file is in the object
12716 even if there is no project extension.
12717 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12718 gnatbind if the ALI file effectively exists.
12719 (Initialize): Add the directory where gnatmake is invoked in front of
12720 the path if it is invoked from a bin directory, even without directory
12721 information, so that the correct GNAT tools will be used when spawned
12722 without directory information.
12724 * makeusg.adb: Change switch -S to -eS
12725 Add lines for new switches -we, -wn and -ws
12726 Add line for new switch -p
12728 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12729 Treat_As_Error and there are warnings.
12731 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12732 -gnatww Change gnatmake switch -S to -eS
12733 (Scan_Make_Switches): Code reorganisation. Process separately multi
12734 character switches and single character switches.
12735 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12736 False when switch is not recognized by gnatmake.
12737 (Scan_Make_Switches): Set Setup_Projects True when -p or
12738 --create-missing-dirs is specified.
12740 * fname.adb (Is_Predefined_File_Name): Return True for annex J
12741 renamings Calendar, Machine_Code, Unchecked_Conversion and
12742 Unchecked_Deallocation only when Renamings_Included is True.
12744 * par.adb: Allow library units Calendar, Machine_Code,
12745 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12746 when -gnatg is not specified.
12747 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12748 there is no need to generate always a record_definition_node in case
12749 of synchronized interface types.
12750 (SIS_Entry_Active): Initialize global variable to False
12751 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12752 indicate cases where AI-447 says "not null" is legal.
12754 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12756 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12757 files with with several lines starting with the object fileb name.
12758 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12760 (Initialize): Add the directory where gprmake is invoked in front of the
12761 path, if it is invoked from a bin directory or with directory
12762 information, so that the correct GNAT tools will be used when invoked
12764 (Check_Compilation_Needed): Process correctly backslashes on Windows.
12766 * vms_data.ads: Update switches/qualifiers
12768 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12769 Thomas Quinot <quinot@adacore.com>
12772 If the array component is a discriminated record, the array aggregate
12773 is non-static even if the component is given by an aggregate with
12775 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12776 (Convert_Aggr_In_Allocator): If the allocator is for an access
12777 discriminant and the type is controlled. do not place on a finalization
12778 list at this point. The proper list will be determined from the
12780 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12781 initialize record controller if needed, before the components, to ensure
12782 that they are properly finalized.
12783 (Build_Record_Aggr_Code): For the case of an array component that has a
12784 corresponding array aggregate in the record aggregate, perform sliding
12787 2007-04-06 Javier Miranda <miranda@adacore.com>
12788 Gary Dismukes <dismukes@adacore.com>
12789 Ed Schonberg <schonberg@adacore.com>
12791 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12792 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12794 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12795 accessibility on class-wide allocators if the allocator occurs at the
12796 same scope level as the allocator's type. The check is guaranteed to
12797 succeed in that case, even when the expression originates from a
12798 parameter of the containing subprogram.
12799 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12800 under No_Dispatching_Calls restriction. During the semantic analysis
12801 we already notified such violation.
12802 (Tagged_Membership): Constant folding. There is no need to check
12803 the tag at run-time if the type of the right operand is non
12804 class-wide abstract.
12805 Replace call to Is_Ancestor by call to Is_Parent
12806 to support concurrent types with interface types.
12807 (Expand_N_Allocator): Add an assertion associated with the generation
12809 (Expand_N_Slice): Do not enable range check to nodes associated
12810 with the frontend expansion of the dispatch table.
12811 (Is_Local_Access_Discriminant): Subsidiary function to
12812 Expand_N_Allocator.
12813 (Tagged_Membership): Replace generation of call to the run-time
12814 subprogram CW_Membership by call to Build_CW_Membership.
12815 (Expand_Allocator_Expression): Replace generation of call to the
12816 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12818 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12819 initialize most the TSD components by means of an aggregate.
12820 Modify the declaration of the object containing the TSD
12821 because we now expand code that has a higher level of abstraction.
12822 The TSD has a discriminant containing the Inheritance Depth Level,
12823 value that is used in the membership test but also to fix the size
12824 of the table of ancestors.
12825 (Expand_Interface_Conversion): Insert function body at the closest place
12826 to the conversion expression, to prevent access-before-elaboration
12827 errors in the backend.
12828 Code improved to reduce the size of the dispatch table if
12829 compiling under restriction No_Dispatching_Calls plus code cleanup.
12830 Code reorganization plus removal of calls to Set_Num_Prim_Ops
12831 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12832 (Expand_Dispatching_Call): Minor code reorganization plus addition of
12833 code to return immediately if compiling under No_Dispatching_Calls
12835 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12836 CPP_Virtual and CPP_Vtable are no longer supported.
12837 (Expand_Interface_Conversion): Add missing support for interface type
12839 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12840 Is_Parent to support concurrent types with interfaces.
12841 (Init_Predefined_Interface_Primitives): Removed.
12842 (Make_Secondary_DT): Modified to support concurrent record types.
12843 (Set_All_DT_Position): Modified to support concurrent record types.
12844 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12845 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12846 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12847 with CW_Membership.
12848 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12849 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12850 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12851 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12852 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12853 (Expand_Dispatching_Call): Replace generation of call to the run-time
12854 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12855 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12857 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12858 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12859 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12860 Build_Set_Prim_Op_Address.
12861 (Get_Remotely_Callable): Subprogram removed.
12862 (Init_Predefined_Interface_Primitives): Replace generation of call to
12863 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12866 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12867 First (Parameter_Associations ()) with the call to First_Actual that
12868 returns an actual parameter expression for both named and positional
12871 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12872 check violation of restriction No_Dispatching_Calls.
12873 (Check_Controlling_Type): A formal of a tagged incomplete type is a
12874 controlling argument.
12876 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12877 First/Next_Component_Or_Discriminant
12878 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12879 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12880 specify Any_Limited_Interface, and this functionality is already
12881 provided by the function Has_Abstract_Interfaces.
12882 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
12883 support concurrent types implementing interfaces.
12884 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12885 specify kind Any_Limited_Interface, and this functionality is already
12886 provided by the function Has_Abstract_Interfaces.
12887 (Remove_Side_Effects): replace Controlled_Type by
12888 CW_Or_Controlled_Type whenever the issue is related to
12889 using or not the secondary stack.
12891 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
12892 P_Interface_Type_Definition to fulfill the new interface (the formal
12893 Is_Synchronized is no longer required).
12895 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
12896 Update dependencies.
12898 * exp_atag.ads, exp_atag.adb: New file
12900 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12901 Bob Duff <duff@adacore.com>
12902 Cyrille Comar <comar@adacore.com>
12904 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
12905 anonymous, use finalization list of enclosing dynamic scope.
12906 (Expand_N_Package_Declaration): For a library package declaration
12907 without a corresponding body, generate RACW subprogram bodies in the
12908 spec (just as we do for the task activation call).
12909 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
12910 Is_Abstract_Type. Make sure these are called only when appropriate.
12911 Remove all code for DSP option
12912 (CW_Or_Controlled_Type): new subprogram.
12914 2007-04-06 Eric Botcazou <botcazou@adacore.com>
12915 Ed Schonberg <schonberg@adacore.com>
12916 Gary Dismukes <dismukes@adacore.com>
12918 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
12919 parameter. If it is set to true, return a result capped according to
12920 the global upper bound for the index of an entry family.
12921 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
12922 (Build_Find_Body_Index): Adjust for above change.
12923 (Entry_Index_Expression): Likewise.
12924 (Is_Potentially_Large_Family): New function extracted from...
12925 (Collect_Entry_Families): ...here. Call it to detect whether the family
12926 is potentially large.
12927 (Build_Entry_Count_Expression): If the family is potentially large, call
12928 Family_Size with 'Cap' set to true.
12929 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
12930 a protected version of an operation declared in the private part of
12931 a protected object, because they may be invoked through a callback.
12932 (Set_Privals): If the type of a private component is an anonymous access
12933 type, do not create a new itype for each protected body.
12934 If the body of a protected operation creates
12935 controlled types (including allocators for class-widetypes), the
12936 body of the corresponding protected subprogram must include a
12938 (Build_Activation_Chain_Entity): Build the chain entity for extended
12940 (Type_Conformant_Parameters): Use common predicate Conforming_Types
12941 to determine whether operation overrides an inherited primitive.
12942 (Build_Wrapper_Spec): Add code to examine the parents while looking
12943 for a possible overriding candidate.
12944 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
12945 hold an actual parameter value since its initialization is separated
12946 from the the declaration. Prevents errors on null-excluding access
12949 2007-04-06 Thomas Quinot <quinot@adacore.com>
12950 Pablo Oliveira <oliveira@adacore.com>
12952 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
12953 Do an Unchecked_Conversion to handle the passage from the Underlying
12954 Type to the Base Type when calling Build_To_Any_Call and
12955 Build_From_Any_Call.
12956 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
12957 E_Constant, depending upon Variable formal.
12958 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12959 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
12960 parameter that requires an extra constrained parameter, declare
12961 temporary for actual as a variable, not a constant.
12962 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
12963 the unit being compiled is the one that contains the stub type.
12964 Change primitive operation name for the RACW associated with a RAS
12965 from Call to _Call so it cannot clash with any legal identifier.
12966 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
12968 (Append_RACW_Bodies): New subprogram.
12969 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
12970 Add_Receiving_Stubs_To_Declarations functions.
12971 When expanding a package body, this list correspond to the
12972 statements in the HSS at the end of the pacakge.
12973 When expanding a package spec, this list correspond to the
12975 (Add_Receiving_Stubs_To_Declarations): Append the function
12976 registering the receiving stubs at the end of the 'Stmts' list.
12977 (RCI_Package_Locator): Pass the new Version generic formal when
12978 instantiating a RCI_Locator package.
12979 (Build_From_Any_Function): To compute the High bound for an
12980 unconstrained array actual, we add the Low bound with the length.
12981 Thus we must convert the low bound and the length to an appropriate
12982 type before doing the sum.
12983 (Build_Subprogram_Receiving_Stubs, PolyORB):
12984 * Retrieve the extra formals parameters at the
12985 end of the parameter stream.
12986 * Use Move_Any_Value to write back out parameters
12987 after executing the request as it is more efficient
12988 than Copy_Any_Value.
12989 * Build the any containing Extra Formals with the
12990 appropriate typecode.
12991 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
12992 empty Component_List.
12993 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
12994 the tree the declaration for an object that serves as actual parameter
12995 in server-side stubs.
12996 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12997 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12998 Use Build_Actual_Object_Declaration to prepare the actuals.
12999 (Add_Parameter_To_NVList): Set the parameter mode to In for
13000 Extra Constrained Parameters.
13001 (Build_General_Calling_Stubs): Set the parameter type to boolean for
13002 Extra Constrained parameters.
13003 (Build_To_Any_Function, Build_From_Any_Function,
13004 Built_TypeCode_Function): When Typ is implicit, call the correct
13005 function with the first not implicit parent type.
13006 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13007 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13008 typecode from the Etype. Therefore we retrieve the correct typecode
13009 with a call to Get_Any_Type.
13010 (Copy_Specification): Do controlling formal type substitution based on
13011 Is_Controlling_Formal flag, instead of caller-provided object type.
13012 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13013 a RACW primitive operation, we might get a subprogram declaration for an
13014 ancestor of the RACW designated type (not for the designated type
13015 itself), in the case where this operation is inherited. In this case we
13016 have no easy means of determining the original tagged type for which
13017 the primitive was declared, so instead we now rely on
13018 Copy_Specification to use the Is_Controlling_Formal flag to determine
13019 which formals require type substitution.
13021 2007-04-06 Robert Dewar <dewar@adacore.com>
13022 Ed Schonberg <schonberg@adacore.com>
13024 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13025 GNAT.Current_Exception are not allowed if pragma Restrictions
13026 (No_Exception_Propagation) is set and in any case make the associated
13027 handler unsuitable as a target for a local raise statement.
13028 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13029 run-time subprogram CW_Membership by call to Build_CW_Membership.
13030 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13031 by a function call, a temporary must be created before expanding the
13032 Constructor_Call itself, to prevent out-of-order elaboration in the
13033 back-end when stack checking is enabled..
13035 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13037 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13038 result are the bounds of the left operand, not the right.
13040 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13043 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13044 discriminant defaults.
13045 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13046 (Make_Component_List_Attributes): Ditto.
13048 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13049 Bob Duff <duff@adacore.com>
13051 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13052 an association with a box as providing a value even though the
13053 initialization procedure for the type is not available.
13054 (Resolve_Record_Aggregate): Check that a choice of an association with a
13055 box corresponds to a component of the type.
13056 (Resolve_Record_Aggregate): Split Is_Abstract flag into
13057 Is_Abstract_Subprogram and Is_Abstract_Type.
13059 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13062 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13063 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13064 called only when appropriate.
13066 2007-04-06 Olivier Hainque <hainque@adacore.com>
13068 * g-alleve.ads (Low Level Vector type definitions): Map each to the
13069 associated vector view instead of all to the unsigned char view.
13071 * g-altcon.adb (Generic_Conversions): New internal generic package,
13072 offering facilities for all the Vector/View conversion routines
13073 implemented by this unit.
13074 (To_View/To_Vector - all versions): Reimplemented in a systematic
13075 manner, using the internal Generic_Conversions facilities.
13077 2007-04-06 Pascal Obry <obry@adacore.com>
13079 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13081 (Create): Free the source string before storing the new one.
13083 2007-04-06 Vincent Celier <celier@adacore.com>
13085 * g-debpoo.adb (Validity): New package with a complete new
13086 implementation of subprograms Is_Valid and Set_Valid.
13087 (Is_Valid): Move to local package Validity
13088 (Set_Valid): Move to local package Validity
13090 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13091 Pablo Oliveira <oliveira@adacore.com>
13093 * g-expect.adb (Get_Command_Output): When expanding the output buffer
13094 we must ensure that there is enough place for the new data we are going
13097 2007-04-06 Thomas Quinot <quinot@adacore.com>
13099 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13102 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13103 Vincent Celier <celier@adacore.com>
13105 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13106 (Stack_String): Add this String that contains the name of the Stack
13107 package in the project file.
13108 (Packages_To_Check_By_Stack): Add this list that contains the packages
13109 to be checked by gnatstack, which are the naming and the stack packages.
13110 (Check_Files): If no .ci files were specified for gnatstack we add all
13111 the .ci files belonging to the projects, including binder generated
13113 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13114 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13115 Add gnatstack to the list of commands that use project file related
13116 switches, and get the single attribute Switches from the stack package
13117 in a project file when calling gnatstack. Parse the -U flag for
13118 processing files belonging to all projects in the project tree.
13119 Remove all processing for command Setup
13121 * prj-attr.adb: Add new package Stack with single attribute Switches
13123 * vms_conv.ads (Command_Type): Add command Stack.
13124 Move to body declarations that are only used in the body: types Item_Id,
13125 Translation_Type, Item_Ptr, Item and its subtypes.
13127 * vms_conv.adb: (Initialize): Add data for new command Stack.
13128 Add declarations moved from the spec: types Item_Id, Translation_Type,
13129 Item_Ptr, Item and its subtypes.
13130 (Cargs_Buffer): New table
13131 (Cargs): New Boolean global variable
13132 (Process_Buffer): New procedure to create arguments
13133 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13135 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13137 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13138 empty, for table Cargs_Buffer.
13139 (Initialize): Remove component Setup in Command_List
13141 2007-04-06 Vincent Celier <celier@adacore.com>
13143 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13144 issuing pragma Source_Reference.
13146 2007-04-06 Emmanuel Briot <briot@adacore.com>
13148 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13149 [[:xdigit:]] character class.
13150 Also raise an exception when an invalid character class is used.
13152 2007-04-06 Pascal Obry <obry@adacore.com>
13154 * i-cstrea.ads: (fopen): Add encoding parameter.
13156 Change reference from a-sysdep.c to sysdep.c in comment.
13157 Update copyright notice.
13158 This set of patch add support for the encoding form parameter.
13160 * mingw32.h (S2WSU): New macro to convert from a string to a
13161 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13162 standard 8bits encoding.
13163 (WS2SU): As above but converting from wide-sring to string.
13164 This is needed as it is necessary to have access to both versions in the
13165 runtime for the form parameter encoding support.
13166 This set of patch add support for the encoding form parameter.
13167 (S2WS): Improve implementation to handle cases where the filename is not
13168 UTF-8 encoded. In this case we default to using the current code page
13169 for the conversion.
13171 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13172 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13173 the constants defined in adaint.h.
13174 (fopen): Add encoding parameter.
13177 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13178 encoding. This is needed for the Reset routine (freopen low level-call).
13180 * s-fileio.adb (Open): Decode encoding form parameter and set the
13181 corresponding encoding value into AFCB structure.
13182 (Reset): Pass the encoding value to freopen.
13183 (Close): Move the call to Lock_Task to the beginning of the procedure.
13185 2007-04-06 Geert Bosch <bosch@adacore.com>
13186 Robert Dewar <dewar@adacore.com>
13188 * i-fortra.ads: Add Double_Complex type.
13190 * impunit.adb: (Is_Known_Unit): New function
13191 Add Gnat.Byte_Swapping
13193 Add new Ada 2005 units
13194 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13195 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13196 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13197 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13199 * impunit.ads (Is_Known_Unit): New function
13201 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13202 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13203 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13204 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13205 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13206 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13209 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13211 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13213 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13214 Arnaud Charlet <charlet@adacore.com>
13216 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13217 __gnat_adjust_context_for_raise.
13218 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13219 implementation of floating point operations as native x86 targets.
13220 So the FPU should be initialized in the same way using finit. Fix
13221 floating point operations accuracy issues.
13222 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13223 member in struct sigaction, so as to avoid warning for incompatible
13226 2007-04-06 Serguei Rybin <rybin@adacore.com>
13228 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13229 switches from previously loaded tree
13231 2007-04-06 Thomas Quinot <quinot@adacore.com>
13233 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13234 cases where a given dependency has a body or not.
13235 (Write_With_File_Names): New subprogram, common code for the two cases
13238 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13239 Javier Miranda <miranda@adacore.com>
13241 * lib-xref.ads, lib-xref.adb:
13242 Modify the loop that collects type references, to include interface
13243 types that the type implements. List each of these interfaces when
13244 building the entry for the type.
13245 (Generate_Definition): Initialize component Def and Typ of new entry
13246 in table Xrefs, to avoid to have these components unitialized.
13247 (Output_References): Split Is_Abstract flag into
13248 Is_Abstract_Subprogram and Is_Abstract_Type.
13249 (Generate_Reference): Add barrier to do not generate the warning
13250 associated with Ada 2005 entities with entities generated by the
13253 2007-04-06 Robert Dewar <dewar@adacore.com>
13254 Arnaud Charlet <charlet@adacore.com>
13255 Vincent Celier <celier@adacore.com>
13257 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13258 Update 'Exception Handling Control' chapter which was outdated.
13259 Minor fix to documentation of -gnatwq
13260 Remove section "Adapting the Run Time to a New C++ Compiler" because
13261 it is now obsolete.
13262 Add passage on need of -nostart-files in some non-ada-main cases.
13263 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13264 Update documentation about Interfacing with C++
13265 Add documentation for new gnatmake switch -p
13266 Add missing protocol part in URLs.
13268 Document pragma Compile_Time_Error
13269 Add documentation for Object_Size indicating that stand alone
13270 objects can have a larger size in some cases.
13271 Add node for GNAT.Byte_Swapping, GNAT.SHA1
13272 Update reference to the Ravenscar profile.
13273 Document pragma Unreferenced_Objects
13275 * gnat-style.texi: Fix typo
13277 2007-04-06 Vincent Celier <celier@adacore.com>
13279 * mlib.adb (Building_Library): Only output "building a library..." in
13282 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13283 files in verbose mode.
13285 * mlib-utl.adb (Ar): Only output the first object files when not in
13287 (Gcc): Do not display all the object files if not in verbose mode, only
13290 2007-04-06 Robert Dewar <dewar@adacore.com>
13292 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13293 it no longer destroys the contents of Name_Buffer or Name_Len and
13294 non-standard and invalid names are handled better.
13295 (Get_Decoded_Name_String): Improve performance by using
13296 Name_Has_No_Encodings flag in the name table.
13297 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13298 Used for debugging printouts.
13300 2007-04-06 Robert Dewar <dewar@adacore.com>
13301 Javier Miranda <miranda@adacore.com>
13302 Bob Duff <duff@adacore.com>
13304 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13305 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13306 there is no need to generate always a record_definition_node in case
13307 of synchronized interface types.
13308 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13309 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13310 illegal in Ada 95, in cases where it is legal. Change the warnings to
13311 errors in other cases. Don't give the error unless the "not null"
13312 parses properly. Correct the source position at which the error occurs.
13313 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13314 P_Null_Exclusion, to suppress "not null" warnings.
13315 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13316 associated goto statements.
13318 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13321 * scans.ads (Type_Token_Location): New flag
13323 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13324 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13325 P_Null_Exclusion, to suppress "not null" warnings.
13327 2007-04-06 Robert Dewar <dewar@adacore.com>
13328 Javier Miranda <miranda@adacore.com>
13329 Bob Duff <duff@adacore.com>
13330 Vincent Celier <celier@adacore.com>
13332 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13333 (Extensions_Allowed): No longer sets Ada_Version
13334 Entry for pragma Unreferenced_Objects
13336 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13337 system.tasking if pragma priority used in a procedure
13338 (Analyze_Pragma, case Warning): Handle dot warning switches
13339 (Process_Compile_Time_Warning_Or_Error): New procedure
13340 (Analyze_Pragma): Add processing for Compile_Time_Error
13341 Add support for extra arguments External_Name and Link_Name.
13342 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13343 (Process_Import_Or_Interface): Add support for the use of pragma Import
13345 (Extensions_Allowed): No longer affects Ada_Version
13346 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13347 Is_Abstract_Type. Make sure these are called only when appropriate.
13348 Add processing for pragma Unreferenced_Objects
13350 * snames.h, snames.ads, snames.adb: Add entry for pragma
13352 Add new standard name Minimum_Binder_Options for new gprmake
13353 Add new standard names for gprmake: Archive_Suffix,
13354 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13355 Library_Support, Library_Version_Options,
13356 Shared_Library_Minimum_Options,
13357 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13358 Change Name_Call to Name_uCall so that it cannot clash with a legal
13360 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13361 Append C_Plus_Plus to convention identifiers as synonym for CPP
13362 Add new standard names Stack and Builder_Switches
13363 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13364 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13365 Run_Path_Option, Toolchain_Version.
13366 Entry for pragma Unreferenced_Objects
13368 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13369 switches, without repetition of "eD". Make sure that last character of
13370 -gnatep= switch is not taken as -gnat switch character.
13371 Complete rewrite of circuit for handling saving compilation options
13372 Occasioned by need to support dot switchs for -gnatw, but cleans up
13374 -gnatX does not affect Ada_Version
13375 Include -gnatyA in -gnatg style switches
13377 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13378 warnings on return objects.
13379 (Warn_On_Useless_Assignment): Exclude warnings on return objects
13380 (Set_Dot_Warning_Switch): New procedure
13381 (Check_References): Add missing case of test for
13382 Has_Pragma_Unreferenced_Objects
13383 (Output_Unreferenced_Messages): Implement effect of new pragma
13384 Unreferenced_Objects, remove special casing of limited controlled
13387 2007-04-06 Vincent Celier <celier@adacore.com>
13389 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13390 the default project path, initially done during elaboration of the
13392 If the prefix returned by Sdefault is null, get the prefix from a call
13393 to Executable_Prefix_Path.
13394 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13397 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13398 canonical directory name to open the directory from which files are
13400 (Record_Other_Sources): Idem.
13401 (Locate_Directory): Add the possibility to create automatically missing
13402 directories when Setup_Projects is True.
13403 Call Locate_Directory so that the directory will be created when
13404 Setup_Projects is True, for object dir, library dir, library ALI dir,
13405 library source copy dir and exec dir.
13407 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13410 2007-04-06 Robert Dewar <dewar@adacore.com>
13412 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13413 Use First/Next_Component_Or_Discriminant
13414 (Analyze_Record_Representation_Clause):
13415 Use First/Next_Component_Or_Discriminant
13416 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13417 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13418 definition if type is unconstrained.
13419 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13420 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13421 Is_Abstract_Subprogram and Is_Abstract_Type.
13422 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13424 * repinfo.adb (List_Record_Info): Use First/
13425 Next_Component_Or_Discriminant.
13427 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13430 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13431 Include -gnatyA in default switches
13433 * opt.ads: (Warn_On_Non_Local_Exception): New flag
13434 (Warn_On_Reverse_Bit_Order): New flag
13435 (Extensions_Allowed): Update the documentation.
13436 (Warn_On_Questionable_Missing_Parens): Now on by default
13438 * usage.adb: Add documentation of -gnatw.x/X switches
13439 Document new -gnatyA style switch
13440 -gnatq warnings are on by default
13442 2007-04-06 Ed Falis <falis@adacore.com>
13444 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13445 full word is no longer compared twice.
13447 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13449 * sem_ch10.adb (Install_Limited_Context_Clauses.
13450 Expand_Limited_With_Clause): Use a new copy of selector name in the
13451 call to Make_With_Clause. This fixes the tree structure for ASIS
13452 purposes. Nothing is changed in the compiler behaviour.
13453 (Process_Body_Clauses): Handle properly use clauses whose prefix is
13454 a package renaming.
13455 (Install_Limited_With_Clauses): Do not install non-limited view when it
13456 is still incomplete.
13458 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13459 Gary Dismukes <dismukes@adacore.com>
13461 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13462 when capturing size information, instead of base type, which for a
13463 formal array type will be the unconstrained type.
13464 (Analyze_Formal_Object_Declaration): Add check for illegal default
13465 expressions for a formal in object of a limited type.
13466 (Instantiate_Object): Ditto.
13467 (Check_Formal_Package_Instance): Skip entities that are formal objects,
13468 because they were defaulted in the formal package and no check applies
13470 (Check_Formal_Package_Instance): Extend conformance check to other
13471 discrete types beyond Integer.
13472 (Process_Default): Copy directly the unmatched formal. A generic copy
13473 has already been performed in Analyze_Formal_Package.
13474 (Analyze_Associations): If a formal subprogram has no match, check for
13475 partial parametrization before looking for a default, to prevent
13477 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13478 not set the instantiation environment before analyzing the actuals.
13479 Fixes regression on 8515-003 with implementation of AI-133.
13480 Set_Instance_Env checks whether the generic unit is a predefined
13481 unit, in which case the instance must be analyzed with the latest Ada
13482 mode. This setting must take place after analysis of the actuals,
13483 because the actuals must be analyzed and frozen in the Ada mode extant
13484 outside of the current instantiation.
13485 (Save_Env, Restore_Env): Preserve and restore the configuration
13486 parameters so that predefined units can be compiled in the proper Ada
13488 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13489 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13490 and Is_Abstract_Type.
13491 (Analyze_Formal_Package): For better error recovery, Add exception
13492 handler to catch Instantion_Error, which can be raised in
13493 Analyze_Associations
13495 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13496 Bob Duff <duff@adacore.com>
13497 Gary Dismukes <dismukes@adacore.com>
13499 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13500 prefix type is a discriminated subtype of the type of the formal.
13501 (Analyze_Allocator): Collect all coextensions regardless of the context.
13502 Whether they can be allocated statically is determined in exp_ch4.
13503 (Analyze_Selected_Component): If the prefix is a limited view and the
13504 non-limited view is available, use the non-limited one.
13505 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13506 therefore illegal), suggest a qualified expression rather than a type
13507 conversion, because a type conversion would be illegal in this context.
13508 (Anayze_Allocator): Trace recursively all nested allocators so that all
13509 coextensions are on the corresponding list for the root. Do no mark
13510 coextensions if the root allocator is within a declaration for a stack-
13511 allocated object, because the access discriminants will be allocated on
13513 (Analyze_Call): Remove restriction on calls to limited functions for the
13514 cases of generic actuals for formal objects, defaults for formal objects
13515 and defaults for record components.
13516 (Analyze_Allocator): Before analysis, chain coextensions on the proper
13517 element list. Their expansion is delayed until the enclosing allocator
13518 is processed and its finalization list constructed.
13519 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13520 for an operation with the given name among the primitive operations of
13521 the corresponding record type.
13522 (Analyze_Selected_Component): If the prefix is a task type that
13523 implements an interface, and there is no entry with the given name,
13524 check whether there is another primitive operation (e.g. a function)
13526 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13527 properly the indexing of a function call written in prefix form, where
13528 the function returns an array type, and all parameters of the function
13529 except the first have defaults.
13530 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13531 the original operands, rather than relocating them, for efficiency and
13532 to work properly when an operand is overloaded.
13533 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13534 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13535 (Analyze_Selected_Component): If the prefix is a private extension, only
13536 scan the visible components, not those of the full view.
13537 (Try_Primitive_Operation): If the operation is a procedure, collect all
13538 possible interpretations, as for a function, because in the presence of
13539 classwide parameters several primitive operations of the type can match
13540 the given arguments.
13542 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13543 Robert Dewar <dewar@adacore.com>
13545 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13546 tag-indeterminate call to an abstract function, when the left-hand side
13548 (Analyze_Loop_Statement): Improve detection of infinite loops
13550 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13551 Thomas Quinot <quinot@adacore.com>
13553 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13554 out of Analyze_Package_Declaration, because processing must be applied
13555 to package bodies as well, for deferred constants completed by pragmas.
13556 (Analyze_Package_Declaration): When the package declaration being
13557 analyzed does not require an explicit body, call Check_Completion.
13558 (May_Need_Implicit_Body): An implicit body is required when a package
13559 spec contains the declaration of a remote access-to-classwide type.
13560 (Analyze_Package_Body): If the package contains RACWs, append the
13561 pending subprogram bodies generated by exp_dist at the end of the body.
13562 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13563 Is_Abstract_Subprogram and Is_Abstract_Type.
13564 (Preserve_Full_Attributes): The full entity list is not an attribute
13565 that must be preserved from full to partial view.
13567 * sem_dist.adb (Add_RAS_Dereference_TSS):
13568 Change primitive name to _Call so it cannot clash with any legal
13569 identifier, and be special-cased in Check_Completion.
13570 Mark the full view of the designated type for the RACW associated with
13571 a RAS as Comes_From_Source to get proper view switching when installing
13572 private declarations.
13573 Provite a placeholder nested package body along with the nested spec
13574 to have a place for Append_RACW_Bodies to generate the calling stubs
13575 and stream attributes.
13577 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13578 Robert Dewar <dewar@adacore.com>
13580 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13581 that is a limited view, check the non-limited view if available.
13582 (Undefined): Refine error message for missing with of Text_IO
13583 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13584 to distinguish real missing with cases.
13585 Fix format of all missing with messages
13586 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13587 renaming as body when renamed entity is abstract.
13589 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13590 Javier Miranda <miranda@adacore.com>
13592 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13593 predicate recursive, to handle complex expressions on literals whose
13594 spurious ambiguity comes from the abstract interpretation of some
13596 (Interface_Present_In_Ancestor): Add support to concurrent record
13598 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13599 Is_Abstract_Subprogram and Is_Abstract_Type.
13601 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13602 Javier Miranda <miranda@adacore.com>
13604 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13605 dereference of a local object R created as a reference to another
13606 object O, use the access level of O.
13607 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13608 rather than local Same_Formal_Type, to check whether protected operation
13609 overrides an inherited one.
13610 (Same_Formal_Type): New predicate, used when matching signatures of
13611 overriding synchronized operations, to handle the case when a formal
13612 has a type that is a generic actual.
13613 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13614 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13615 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13616 syntactic ambiguities involving indexing of function calls that return
13618 (Abstract_Interface_List): New subprogram that returns the list of
13619 abstract interfaces associated with a concurrent type or a
13620 concurrent record type.
13621 (Interface_Present_In_Parent): New subprogram used to check if a
13622 given type or some of its parents implement a given interface.
13623 (Collect_Abstract_Interfaces): Add support for concurrent types
13624 with interface types.
13625 (Has_Abstract_Interfaces): Add support for concurrent types with
13627 (Is_Parent): New subprogram that determines whether E1 is a parent
13628 of E2. For a concurrent type its parent is the first element of its
13629 list of interface types; for other types this function provides the
13630 same result than Is_Ancestor.
13631 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13632 (Collect_Synchronized_Interfaces): Removed because the subprogram
13633 Collect_Abstract_Interfaces provides this functionality.
13634 (Collect_Abstract_Interfaces): Minor update to give support to
13635 concurrent types and thus avoid undesired code duplication.
13636 (Get_Subprogram_Entity): Handle entry calls.
13637 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13639 (Enter_Name): Do not give -gnatwh hiding warning for record component
13640 entities, they never result in hiding.
13642 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13643 Robert Dewar <dewar@adacore.com>
13645 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13646 to chain nested components that are allocators for access discriminants
13647 of the enclosing object.
13648 Add N_Push and N_Pop nodes
13649 New field Exception_Label added
13650 (Local_Raise_Statements): New field in N_Exception_Handler_Node
13651 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13652 (Is_Coextension): New flag for allocators, to mark allocators that
13653 correspond to access discriminants of dynamically allocated objects.
13654 (N_Block_Statement): Document the fact that the corresponding entity
13655 can be an E_Return_Statement.
13656 (Is_Coextension): New flag for allocators.
13657 Remove all code for DSP option
13659 * sprint.ads, sprint.adb: Display basic information for class_wide
13660 subtypes. Add handling of N_Push and N_Pop nodes
13662 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13664 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13665 before propagating exception.
13667 2007-04-06 Olivier Hainque <hainque@adacore.com>
13669 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13670 an address always within the call instruction from a return address.
13672 2007-04-06 Olivier Hainque <hainque@adacore.com>
13673 Eric Botcazou <botcazou@adacore.com>
13675 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13676 expression with a COMPOUND_EXPR including the call instead of emitting
13677 the call directly here.
13678 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13679 high bound is constant and the slice is empty. Tidy.
13680 (tree_transform, case N_Op_Not): Handle properly the case where the
13681 operation applies to a private type whose full view is a modular type.
13682 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13683 Address_Clause, use the associated Expression as the GNAT tree
13684 representing the choice value to ensure the corresponding GCC tree is
13685 of the proper kind.
13686 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13687 instead of just the operands, as the base GCC stabilize_reference does.
13688 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13689 requested; otherwise fail.
13690 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13692 2007-04-06 Thomas Quinot <quinot@adacore.com>
13694 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13695 implementation of UI_Div.
13696 (UI_Div): Reimplement as a call to UI_Div_Rem.
13697 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13698 remainder, avoiding the cost of a multiplication and a subtraction.
13699 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13700 provides both quotient and remainder in a single computation.
13701 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13702 functions for uint.
13703 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13704 is undefined if the given n is not inversible.
13706 2007-04-06 Olivier Hainque <hainque@adacore.com>
13708 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13709 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13712 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13713 Olivier Hainque <hainque@adacore.com>
13715 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13716 when updating the contents of the old pointer to an unconstrained array.
13717 (end_subprog_body): Set error_gnat_node to Empty.
13718 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13719 (unchecked_convert): For subtype to base type conversions, require that
13720 the source be a subtype if it is an integer type.
13721 (builtin_decls): New global, vector of available builtin functions.
13722 (gnat_pushdecl): Add global builtin function declaration nodes to the
13723 builtin_decls list.
13724 (gnat_install_builtins): Adjust comments.
13725 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13726 calling gnat_pushdecl, so that it knows when it handed a builtin
13727 function declaration node.
13728 (builtin_decl_for): Search the builtin_decls list.
13730 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13732 * s-stchop-vxworks.adb:
13733 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13735 2007-04-06 Robert Dewar <dewar@adacore.com>
13736 Arnaud Charlet <charlet@adacore.com>
13738 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13740 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13742 Add mention of -Sev (set initialize_scalars option from environment
13743 variable at run time) in gnatbind usage message.
13745 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13747 * fname-uf.ads: Minor comment fix
13749 * osint.ads: Change pragma Elaborate to Elaborate_All
13751 * par-load.adb: Add documentation.
13753 * sem_cat.ads, sem_cat.adb: Minor code reorganization
13755 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13757 * s-secsta.ads: Extra comments
13759 * s-soflin.ads: Minor comment fixes
13761 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13763 * s-wchcon.ads: Minor comment addition
13765 * treepr.adb: Minor change in message
13766 (Print_Name,Print_Node): Make these debug printouts more robust: print
13767 "no such..." instead of crashing on bad input.
13769 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
13771 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13772 instead of gnat_signed_or_unsigned_type.
13773 * utils.c (gnat_signed_or_unsigned_type): Remove.
13774 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13775 * gigi.h (gnat_signed_or_unsigned_type): Remove
13777 2007-03-09 Roger Sayle <roger@eyesopen.com>
13779 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13780 fold with the result of buildN.
13781 * decl.c (gnat_to_gnu_entity): Likewise.
13782 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13783 * utils.c (finish_record_type, merge_sizes, max_size, convert):
13785 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13786 nonbinary_modular_operation, build_binary_op, build_unary_op,
13787 build_cond_expr): Likewise.
13789 * utils.c (convert): Use fold_build1 when casting values to void.
13790 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13791 fold_convert instead of convert when appropriate.
13793 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13795 * Make-lang.in: Add install-pdf target as copied from
13796 automake v1.10 rules.
13798 2007-02-28 Andreas Schwab <schwab@suse.de>
13800 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13801 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13802 (doc/gnat-style.info): Likewise.
13804 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
13806 * gnat-style.texi: Standardize title page.
13807 * gnat_rm.texi: Likewise.
13808 * gnat_ugn.texi: Likewise.
13810 2007-02-25 Mark Mitchell <mark@codesourcery.com>
13812 * decl.c (annotate_value): Adjust for refactoring of tree_map
13815 2007-02-24 Mark Mitchell <mark@codesourcery.com>
13817 * decl.c (annotate_value): Adjust for refactoring of tree_map
13820 2007-02-21 Ed Schonberg <schonberg@adacore.com>
13823 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13824 untagged derived type, add hidden components to keep discriminant
13825 layout consistent, when a given discriminant of the derived type
13826 constraints several discriminants of the parent type.
13828 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
13829 Sandra Loosemore <sandra@codesourcery.com>
13831 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
13832 build the call expression.
13833 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13834 * utils.c (max_size) <tcc_exceptional>: Delete.
13835 <tcc_vl_exp>: New case.
13836 <tcc_expression>: Delete CALL_EXPR subcase.
13837 (build_global_cdtor): Use build_call_nary instead of build3.
13838 * utils2.c (build_call_1_expr): Likewise.
13839 (build_call_2_expr): Likewise.
13840 (build_call_0_expr): Likewise.
13841 (build_call_alloc_dealloc): Likewise.
13843 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13845 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13846 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13847 and _Unwind_SWord with _sleb128_t.
13849 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
13851 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13852 * decl.c: Include gt-ada-decl.h.
13853 (annotate_value_cache): New.
13854 (annotate_value): Use it instead of TREE_COMPLEXITY.
13856 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
13858 * misc.c, utils2.c: Fix comment typos.
13860 2007-01-24 Roger Sayle <roger@eyesopen.com>
13862 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13863 TREE_CONSTANT_OVERFLOW.
13864 (allocatable_size_p, annotate_value): Likewise.
13865 * trans.c (gnat_to_gnu): Likewise.
13866 * utils.c (unchecked_convert): Likewise.
13867 * utils2.c (build_simple_component_ref): Likewise.
13869 2007-01-23 Richard Guenther <rguenther@suse.de>
13872 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13873 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13874 (gnatboot3): Likewise.
13875 (GNATBIND): Do not define.
13876 * Makefile.in (GNATBIND): Do not define.
13878 2007-01-08 Richard Guenther <rguenther@suse.de>
13880 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13881 * trans.c (gnat_to_gnu): Likewise.
13883 2006-12-07 Geoffrey Keating <geoffk@apple.com>
13885 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
13886 * adaint.c: Likewise.
13888 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
13890 Merge from gimple-tuples-branch:
13891 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
13893 * ada-tree.h (lang_tree_node): Handle gimple tuples.
13894 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
13895 GIMPLE_MODIFY_STMT.
13897 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
13899 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
13900 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
13903 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
13906 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
13907 if the initializer takes into account the padding.
13909 2006-11-11 Richard Guenther <rguenther@suse.de>
13911 * trans.c (maybe_stabilize_reference): Remove handling of
13912 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
13914 2006-11-05 Arnaud Charlet <charlet@adacore.com>
13917 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
13918 (To_Target_Priority): New function.
13920 2006-10-31 Robert Dewar <dewar@adacore.com>
13922 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
13923 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
13924 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
13925 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
13926 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
13927 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
13928 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
13929 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
13930 a-szbzha.adb: Minor reformatting. Fix header.
13932 * a-numaux-x86.adb: Add parentheses for use of unary minus
13933 * a-ngcefu.adb: Supply missing parentheses for unary minus
13934 * a-ngcoty.adb: Add parens for use of unary minus
13935 * a-ngelfu.adb: Add missing parens for unary minus
13936 * a-tifiio.adb: Add parentheses for uses of unary minus
13938 2006-10-31 Robert Dewar <dewar@adacore.com>
13939 Bob Duff <duff@adacore.com>
13940 Ed Schonberg <schonberg@adacore.com>
13942 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
13943 with multiplying operator.
13944 (Expected_Type_Is_Any_Real): New function to determine from the Parent
13945 pointer whether the context expects "any real type".
13946 (Resolve_Arithmetic_Op): Do not give an error on calls to the
13947 universal_fixed "*" and "/" operators when they are used in a context
13948 that expects any real type. Also set the type of the node to
13949 Universal_Real in this case, because downstream processing requires it
13950 (mainly static expression evaluation).
13951 Reword some continuation messages
13952 Add some \\ sequences to continuation messages
13953 (Resolve_Call): Refine infinite recursion case. The test has been
13954 sharpened to eliminate some false positives.
13955 Check for Current_Task usage now includes entry barrier, and is now a
13956 warning, not an error.
13957 (Resolve): If the call is ambiguous, indicate whether an interpretation
13958 is an inherited operation.
13959 (Check_Aggr): When resolving aggregates, skip associations with a box,
13960 which are priori correct, and will be replaced by an actual default
13961 expression in the course of expansion.
13962 (Resolve_Type_Conversion): Add missing support for conversion from
13963 a class-wide interface to a tagged type. Minor code cleanup.
13964 (Valid_Tagged_Converion): Add support for abstact interface type
13966 (Resolve_Selected_Component): Call Generate_Reference here rather than
13967 during analysis, and use May_Be_Lvalue to distinguish read/write.
13968 (Valid_Array_Conversion): New procedure, abstracted from
13969 Valid_Conversion, to incorporate accessibility checks for arrays of
13970 anonymous access types.
13971 (Valid_Conversion): For a conversion to a numeric type occurring in an
13972 instance or inlined body, no need to check that the operand type is
13973 numeric, since this has been checked during analysis of the template.
13974 Remove legacy test for scope name Unchecked_Conversion.
13976 * sem_res.ads: Minor reformatting
13978 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
13979 (PE_Current_Task_In_Entry_Body): New exception code
13980 (SE_Restriction_Violation): Removed, not used
13982 * a-except.ads: Update comments.
13984 * types.h, types.ads: Add definition for Validity_Check
13985 (PE_Current_Task_In_Entry_Body): New exception code
13986 (SE_Restriction_Violation): Removed, not used
13988 2006-10-31 Thomas Quinot <quinot@adacore.com>
13990 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
13993 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13994 Jose Ruiz <ruiz@adacore.com>
13996 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
13997 part of Ada.Calendar: all subprogram raise Unimplemented.
13998 (Split_W_Offset): Temp function body, raising Unimplemented
14000 * a-calend.ads, a-calend-vms.ads:
14001 Add imported variable Invalid_TZ_Offset used to designate targets unable
14002 to support time zones.
14003 (Unimplemented): Temporary function raised by the body of new
14005 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14006 unit provides handling of leap seconds and is used by the new Ada 2005
14007 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14008 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14009 version returns an extra value which is the offset to UTC.
14011 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14012 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14013 (Split_W_Offset): New function body.
14014 (Time_Of): When a date is close to UNIX epoch, compute the time for
14015 that date plus one day (that amount is later substracted after
14016 executing mktime) so there are no problems with time zone adjustments.
14018 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14020 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14021 a-catizo.ads, a-catizo.adb: New files.
14023 * impunit.adb: Add new Ada 2005 entries
14025 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14026 Rename all occurences of "__gnat_localtime_r" to
14027 "__gnat_localtime_tzoff".
14028 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14029 zone data and calculate the GMT offset.
14030 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14031 Use the field "tm_gmtoff" to extract the GMT offset.
14032 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14033 the external variable "timezone" to calculate the GMT offset.
14035 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14036 Jose Ruiz <ruiz@adacore.com>
14038 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
14039 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
14040 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14041 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14042 System.Any_Priority to a POSIX priority on the target.
14044 * system-linux-ia64.ads:
14045 Extend range of Priority types on Linux to use the whole range made
14046 available by the system.
14048 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14049 function maps from System.Any_Priority to a POSIX priority on the
14051 (PTHREAD_PRIO_PROTECT): Set real value.
14052 (PTHREAD_PRIO_INHERIT): Now a function.
14053 (SIGCPUFAIL): New signal.
14054 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14055 are documented as reserved by the OS.
14057 * system-aix.ads: Use the full range of priorities provided by the
14060 * s-taprop-posix.adb: Call new function To_Target_Priority.
14061 (Set_Priority): Take into account Task_Dispatching_Policy and
14062 Priority_Specific_Dispatching pragmas when determining if Round Robin
14063 must be used for scheduling the task.
14065 * system-linux-x86_64.ads, system-linux-x86.ads,
14066 system-linux-ppc.ads: Extend range of Priority types on Linux to use
14067 the whole range made available by the system.
14069 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
14070 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
14071 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14072 when deallocating the TCB in order to avoid potential references to
14074 (Set_Priority): Take into account Task_Dispatching_Policy and
14075 Priority_Specific_Dispatching pragmas when determining if Round Robin
14076 or FIFO within priorities must be used for scheduling the task.
14078 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14079 the Thread field (to be used internally by the run-time system) and the
14080 kernel-level task id in the LWP field (to be used by the debugger).
14081 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14082 instance, and propagate the current task options to the spawned task.
14083 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14084 (Initialize): Set Round Robin dispatching when the corresponding pragma
14087 2006-10-31 Robert Dewar <dewar@adacore.com>
14089 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14090 system-linux-hppa.ads, system-hpux-ia64.ads,
14091 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
14092 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14093 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
14094 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
14095 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14096 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14097 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14098 Default_Bit_Order) to kill constant condition warnings for references
14101 2006-10-31 Vincent Celier <celier@adacore.com>
14102 Eric Botcazou <ebotcazou@adacore.com>
14104 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14105 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14106 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14107 Ext_To, when building the library file name
14109 * mlib-tgt-vxworks.adb: ditto.
14110 (Get_Target_Suffix): Add support for x86 targets.
14112 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14114 * mlib-tgt-darwin.adb:
14115 Use Append_To, instead of Ext_To, when building the library file name
14116 (Flat_Namespace): New global variable.
14117 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14118 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14119 (Link_Shared_Libgcc): Delete.
14120 (Build_Dynamic_Library): Adjust for above changes.
14122 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14124 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14126 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14127 (Initialize): Add type conversions required by above change.
14129 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14131 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14132 (getpid): New body for this function that uses the underlying taskIdSelf
14133 function for VxWorks 5 and VxWorks 6 in kernel mode.
14134 (unsigned_int): New type, modular to allow logical bit operations.
14135 (taskOptionsGet): New imported function.
14137 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14138 field to be compliant with the type used by the corresponding operating
14141 2006-10-31 Pascal Obry <obry@adacore.com>
14142 Eric Botcazou <ebotcazou@adacore.com>
14143 Vincent Celier <celier@adacore.com>
14145 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14146 ASCII version of the registry API. This is needed as the GNAT runtime
14147 is now UNICODE by default.
14149 (get_gcc_version): Do not hardcode the return value.
14150 (__gnat_file_time_name): On Windows properly set the default returned
14151 value to -1 which corresponds to Invalid_Time.
14152 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14153 except on Windows where it does conversion for unicode support.
14154 (__gnat_freopen): Idem.
14155 (__gnat_locate_exec_on_path): If environment variable PATH does not
14156 exist, return a NULL pointer
14158 * adaint.h: (__gnat_fopen): Declare.
14159 (__gnat_freopen): Likewise.
14161 * mingw32.h (_tfreopen): Define this macro here for older MingW
14163 Activate the unicode support on platforms using a MingW runtime
14164 version 3.9 or newer.
14166 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14167 This is needed for proper unicode support on Windows.
14170 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14171 Nicolas Setton <setton@adacore.com>
14172 Olivier Hainque <hainque@adacore.com>
14173 Gary Dismukes <dismukes@adacore.com>
14175 * gigi.h: (tree_code_for_record_type): Declare.
14176 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14177 (get_global_renaming_pointers): Rename to
14178 invalidate_global_renaming_pointers.
14179 (static_ctors): Delete.
14180 (static_dtors): Likewise.
14181 (gnat_write_global_declarations): Declare.
14182 (create_var_decl): Adjust descriptive comment to indicate that the
14183 subprogram may return a CONST_DECL node.
14184 (create_true_var_decl): Declare new function, similar to
14185 create_var_decl but forcing the creation of a VAR_DECL node.
14186 (get_global_renaming_pointers): Declare.
14187 (add_global_renaming_pointer): Likewise.
14189 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14191 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14192 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14194 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14196 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14197 designated type if the pointer comes from a limited_with clause. Make
14198 incomplete designated type if it is in the main unit and has a freeze
14200 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14201 Underlying_Full_View similarly. Return earlier if the full view already
14202 has an associated tree.
14203 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14204 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14205 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14206 reference type built for objects with an address clause.
14207 Use create_true_var_decl with const_flag set for
14208 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14210 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14211 for Character and Wide_Character types. This info is read by the
14212 dwarf-2 writer, and is needed to be able to use the command "ptype
14213 character" in the debugger.
14214 (gnat_to_gnu_entity): When generating a type representing
14215 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14216 so that debug writers can distinguish it from ordinary integers.
14217 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14218 addition to TREE_READONLY to assert the constantness of variables for
14219 elaboration purposes.
14220 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14221 parameters to call new Einfo function First_Formal_With_Extras.
14222 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14223 protected type with its corresponding discriminant, to obtain a usable
14225 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14226 for a multiple elaboration of the "equivalent" type.
14227 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14228 into record_global_renaming_pointer.
14229 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14230 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14231 <E_Array_Subtype>: Likewise.
14232 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14233 incomplete subtypes and incomplete subtypes of incomplete types visible
14234 through a limited with clause.
14235 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14236 the base index type for the maximum size of the array only if they are
14238 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14239 expression into a SAVE_EXPR if stabilization failed.
14241 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14242 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14243 by lower level compilation passes.
14244 (gnat_genericize): New function, lowering a function body to GENERIC.
14245 Turn the type of RESULT_DECL into a real reference type if the decl
14246 has been marked DECL_BY_REFERENCE, and adjust references to the latter
14248 (gnat_genericize_r): New function. Tree walking callback for
14250 (convert_from_reference, is_byref_result): New functions. Helpers for
14252 (create_type_decl): Call gnat_pushdecl before calling
14253 rest_of_decl_compilation, to make sure that field TYPE_NAME of
14254 type_decl is properly set before calling the debug information writers.
14255 (write_record_type_debug_info): The heuristics which compute the
14256 alignment of a field in a variant record might not be accurate. Add a
14257 safety test to make sure no alignment is set to a smaller value than
14258 the alignment of the field type.
14259 (make_dummy_type): Use the Non_Limited_View as the underlying type if
14260 the type comes from a limited_with clause. Do not loop on the full view.
14261 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14262 (dummy_node_table): New global variable, moved from decl.c.
14263 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14264 (save_gnu_tree): Use above macros.
14265 (get_gnu_tree): Likewise.
14266 (present_gnu_tree): Likewise.
14267 (init_dummy_type): New function, moved from decl.c. Use above macros.
14268 (make_dummy_type): Likewise.
14269 (tree_code_for_record_type): New function extracted from make_dummy_type
14270 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14271 (static_ctors): Change it to a vector, make static.
14272 (static_dtors): Likewise.
14273 (end_subprog_body): Adjust for above change.
14274 (build_global_cdtor): Moved from trans.c.
14275 (gnat_write_global_declarations): Emit global constructor and
14276 destructor, and call cgraph_optimize before emitting debug info for
14277 global declarations.
14278 (global_decls): New global variable.
14279 (gnat_pushdecl): Store the global declarations in global_decls, for
14281 (gnat_write_global_declarations): Emit debug information for global
14283 (create_var_decl_1): Former create_var_decl, with an extra argument to
14284 state whether the creation of a CONST_DECL is allowed.
14285 (create_var_decl): Behavior unchanged. Now a wrapper around
14286 create_var_decl_1 allowing CONST_DECL creation.
14287 (create_true_var_decl): New function, similar to create_var_decl but
14288 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14289 (create_field_decl): Do not always mark the field as addressable
14290 if its type is an aggregate.
14291 (global_renaming_pointers): New static variable.
14292 (add_global_renaming_pointer): New function.
14293 (get_global_renaming_pointers): Likewise.
14295 * misc.c (gnat_dwarf_name): New function.
14296 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14297 (gnat_post_options): Add comment about structural alias analysis.
14298 (gnat_parse_file): Do not call cgraph_optimize here.
14299 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14301 * trans.c (process_freeze_entity): Don't abort if we already have a
14302 non dummy GCC tree for a Concurrent_Record_Type, as it might
14303 legitimately have been elaborated while processing the associated
14304 Concurrent_Type prior to this explicit freeze node.
14305 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14306 exception handler volatile if it is of variable size.
14307 (process_type): Remove bypass for types coming from a limited_with
14309 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14310 actual, convert the corresponding gnu_actual to the real destination
14311 type when necessary.
14312 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14313 originally TREE_READONLY but whose elaboration cannot be performed
14315 Part of fix for F504-021.
14316 (tree_transform, subprogram cases): Change loops on formal parameters to
14317 call new Einfo function First_Formal_With_Extras.
14318 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14319 stemming from type conversion for the lhs.
14320 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14321 number of bits per unit for components of records.
14322 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14323 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14324 with At_End_Proc after the SJLJ EH cleanup.
14325 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14327 (elaborate_all_entities): Do not retest type_annotate_only.
14328 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14329 result type of an abstract subprogram, which may be an itype associated
14330 with an anonymous access result (related to AI-318-02).
14331 (build_global_cdtor): Move to utils.c.
14332 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14333 this choice is not a null tree nor an integer constant.
14334 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14335 on the body of elaboration routines instead of mark_unvisited.
14336 (add_stmt): Do not mark the tree.
14337 (add_decl_expr): Tweak comment.
14338 (mark_unvisited): Delete.
14339 (unshare_save_expr): New static function.
14340 (call_to_gnu): Issue an error when making a temporary around a
14341 procedure call because of non-addressable actual parameter if the
14342 type of the formal is by_reference.
14343 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14344 after building the elaboration routine.
14346 2006-10-31 Bob Duff <duff@adacore.com>
14348 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14349 as finalization-started, so we can raise Program_Error on 'new'.
14351 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14352 collection has already started.
14354 * s-finimp.ads (Collection_Finalization_Started): Added new special
14355 flag value for indicating that a collection's finalization has started.
14357 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14358 create a task whose master has already waited for dependent tasks.
14360 2006-10-31 Robert Dewar <dewar@adacore.com>
14362 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14364 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
14365 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
14366 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
14367 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
14368 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
14369 a-except-2005.ads: Add pragma Preelaborable_Warning
14371 2006-10-31 Robert Dewar <dewar@adacore.com>
14372 Jose Ruiz <ruiz@adacore.com>
14374 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14376 * ali.adb (Get_Name): Properly handle scanning of wide character names
14377 encoded with brackets notation.
14378 (Known_ALI_Lines): Add S lines to this list.
14379 (Scan_ALI): Acquire S (priority specific dispatching) lines.
14380 New flag Elaborate_All_Desirable in unit table
14382 * ali.ads (Priority_Specific_Dispatching): Add this range of
14383 identifiers to be used for Priority_Specific_Dispatching table entries.
14384 (ALIs_Record): Add First_Specific_Dispatching and
14385 Last_Specific_Dispatching that point to the first and last entries
14386 respectively in the priority specific dispatching table for this unit.
14387 (Specific_Dispatching): Add this table for storing each S (priority
14388 specific dispatching) line encountered in the input ALI file.
14389 New flag Elaborate_All_Desirable in unit table
14391 * bcheck.adb: (Check_Configuration_Consistency): Add call to
14392 Check_Consistent_Dispatching_Policy.
14393 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14394 verifying that the use of Priority_Specific_Dispatching,
14395 Task_Dispatching_Policy, and Locking_Policy is consistent across the
14398 * bindgen.adb: (Public_Version_Warning): function removed.
14399 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14400 required information from ALI files in order to initialize the table
14401 containing the specific dispatching policy.
14402 (Gen_Adainit_Ada): Generate the variables required for priority specific
14403 dispatching entries (__gl_priority_specific_dispatching and
14404 __gl_num_specific_dispatching).
14405 (Gen_Adainit_C): Generate the variables required for priority specific
14406 dispatching entries (__gl_priority_specific_dispatching and
14407 __gl_num_specific_dispatching).
14408 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14410 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14411 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14413 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14414 a call to gnat_set_globals.
14415 Generate a string containing settings from
14416 Priority_Specific_Dispatching pragma entries.
14417 (Gen_Object_Files_Options): Do not include the runtime libraries when
14418 pragma No_Run_Time is specified.
14420 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14421 consistency with s-intman-posix.adb.
14422 (__gnat_error_handler, case FreeBSD): Account for the fact that the
14423 handler is installed with SA_SIGINFO.
14424 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14425 FreeBSD ZCX support, copied from Linux version.
14426 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14427 sigfillset, and sigemptyset so the routines defined by MaRTE.
14428 (__gl_priority_specific_dispatching): Add this variable that stores the
14429 string containing priority specific dispatching policies in the
14431 (__gl_num_specific_dispatching): Add this variable that indicates the
14432 highest priority for which a priority specific dispatching pragma
14434 (__gnat_get_specific_dispatching): Add this routine that returns the
14435 priority specific dispatching policy, as set by a
14436 Priority_Specific_Dispatching pragma appearing anywhere in the current
14437 partition. The input argument is the priority number, and the result
14438 is the upper case first character of the policy name.
14439 (__gnat_set_globals): Now a dummy function.
14440 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14441 mechargs instead of sigargs, as the latter can be retrieved from the
14442 former and sigargs is not what we want on ia64.
14443 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14445 (__gnat_adjust_context_for_raise, ia64-vms): New function.
14446 (tasking_error): Remove unused symbol.
14447 (_abort_signal): Move this symbol to the IRIX specific part since this
14448 is the only target that uses this definition.
14449 (Check_Abort_Status): Move this symbol to the IRIX specific part since
14450 this is the only target that uses this definition.
14451 (Lock_Task): Remove unused symbol.
14452 (Unlock_Task): Remove unused symbol.
14454 * lib-writ.adb (Write_ALI): Output new S lines for
14455 Priority_Specific_Dispatching pragmas.
14456 Implement new flag BD for elaborate body desirable
14458 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14459 (Specific_Dispatching): Add this table for storing the entries
14460 corresponding to Priority_Specific_Dispatching pragmas.
14461 Document new BD flag for elaborate body desirable
14463 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14466 2006-10-31 Javier Miranda <miranda@adacore.com>
14468 * a-tags.ads, a-tags.adb:
14469 (Predefined_DT): New function that improves readability of the code.
14470 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14471 Inherit_DT): Use the new function Predefined_DT to improve code
14473 (Register_Interface_Tag): Update assertion.
14474 (Set_Interface_Table): Update assertion.
14475 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14476 determining progenitor interfaces in Tags.
14477 (Inherit_CPP_DT): New subprogram.
14479 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14480 analysis of the thunk code.
14481 (Expand_Interface_Conversion): Handle run-time conversion of
14482 access to class wide types.
14483 (Expand_Dispatching_Call): When generating the profile for the
14484 subprogram itype for a dispatching operation, properly terminate the
14485 formal parameters chaind list (set the Next_Entity of the last formal
14487 (Collect_All_Interfaces): Removed. This routine has been moved to
14488 sem_util and renamed as Collect_All_Abstract_Interfaces.
14489 (Set_All_DT_Position): Hidden entities associated with abstract
14490 interface primitives are not taken into account in the check for
14491 3.9.3(10); this check is done with the aliased entity.
14492 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14493 interfacing with CPP by default.
14494 (Expand_Interface_Conversion): Add missing support for static conversion
14495 from an interface to a tagged type.
14496 (Collect_All_Interfaces): Add new out formal containing the list of
14497 abstract interface types to cleanup the subprogram Make_DT.
14498 (Make_DT): Update the code to generate the table of interfaces in case
14499 of abstract interface types.
14500 (Is_Predefined_Dispatching_Alias): New function that returns true if
14501 a primitive is not a predefined dispatching primitive but it is an
14502 alias of a predefined dispatching primitive.
14503 (Make_DT): If the ancestor of the type is a CPP_Class and we are
14504 compiling under full ABI compatibility mode we avoid the generation of
14505 calls to run-time services that fill the dispatch tables because under
14506 this mode we currently inherit the dispatch tables in the IP subprogram.
14507 (Write_DT): Emit an "is null" indication for a null procedure primitive.
14508 (Expand_Interface_Conversion): Use an address as the type of the formal
14509 of the internally built function that handles the case in which the
14510 target type is an access type.
14512 2006-10-31 Robert Dewar <dewar@adacore.com>
14514 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14516 2006-10-31 Robert Dewar <dewar@adacore.com>
14518 * bindusg.ads, bindusg.adb:
14519 Change to package and rename procedure as Display, which
14520 now ensures that it only outputs usage information once.
14522 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14524 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14527 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14530 2006-10-31 Robert Dewar <dewar@adacore.com>
14531 Ed Schonberg <schonberg@adacore.com>
14533 * treepr.adb: Use new subtype N_Membership_Test
14535 * checks.ads, checks.adb: Add definition for Validity_Check
14536 (Range_Or_Validity_Checks_Suppressed): New function
14537 (Ensure_Valid): Test Validity_Check suppressed
14538 (Insert_Valid_Check): Test Validity_Check suppressed
14539 (Insert_Valid_Check): Preserve Do_Range_Check flag
14540 (Validity_Check_Range): New procedure
14541 (Expr_Known_Valid): Result of membership test is always valid
14542 (Selected_Range_Checks): Range checks cannot be applied to discriminants
14543 by themselves. Disabling those checks must also be done for task types,
14544 where discriminants may be used for the bounds of entry families.
14545 (Apply_Address_Clause_Check): Remove side-effects if address expression
14546 is non-static and is not the name of a declared constant.
14547 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14548 Code cleanup and new error messages.
14549 (Enable_Range_Check): Test for some cases of suppressed checks
14550 (Generate_Index_Checks): Suppress index checks if index checks are
14551 suppressed for array object or array type.
14552 (Apply_Selected_Length_Checks): Give warning for compile-time detected
14553 length check failure, even if checks are off.
14554 (Ensure_Valid): Do not generate a check on an indexed component whose
14555 prefix is a packed boolean array.
14556 * checks.adb: (Alignment_Checks_Suppressed): New function
14557 (Apply_Address_Clause_Check): New procedure, this is a completely
14558 rewritten replacement for Apply_Alignment_Check
14559 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14560 we request a discriminal value only in case of discriminants.
14561 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14562 assignments where the target subtype is unconstrained and the target
14563 object is a parameter or dereference (other aliased cases are known
14564 to be unconstrained).
14566 2006-10-31 Robert Dewar <dewar@adacore.com>
14568 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14569 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14570 vms_conv.adb: Fix bad table increment values (much too small)
14572 * table.adb (Realloc): Make sure we get at least some new elements
14573 Defends against silly small values for table increment
14575 2006-10-31 Robert Dewar <dewar@adacore.com>
14576 Ed Schonberg <schonberg@adacore.com>
14577 Bob Duff <duff@adacore.com>
14579 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14580 entities. Move other fields around to make this possible
14581 (Is_Derived_Type): Add missing call to Is_Type.
14582 (Extra_Formals): New function for subprograms, entries, subprogram
14584 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14585 (First_Formal_With_Extras): New function for subprogs, entries, subp
14587 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14588 Add node information for E_Return_Statement.
14589 (Elaborate_Body_Desirable): New flag
14590 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14591 to be Is_Inherently_Limited_Type, because return-by-reference has
14592 no meaning in Ada 2005.
14593 (E_Return_Statement): New entity kind.
14594 (Return_Applies_To): Field of E_Return_Statement.
14595 (Is_Return_Object): New flag in object entities.
14596 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14597 (Must_Have_Preelab_Init): New flag
14598 (Known_To_Have_Preelab_Init): New flag
14599 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14600 (Is_Visible_Formal): New flag on entities in formal packages.
14601 (Low_Bound_Known): New flag
14602 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14604 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14605 output when Id is an incomplete subtype.
14607 2006-10-31 Robert Dewar <dewar@adacore.com>
14609 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14610 Avoid abbreviation Creat
14611 (Finalize): List all sources in extended mail source if -gnatl
14613 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14614 (Finalize): Implement new -gnatl=xxx switch to output listing to file
14615 (Set_Specific_Warning_On): New procedure
14616 (Set_Specific_Warning_Off): New procedure
14617 Add implementation of new insertion \\
14618 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14619 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14621 (Error_Msg_Internal): Make sure that we set Last_Killed to
14622 True when a message from another package is suppressed.
14623 Implement insertion character ~ (insert string)
14624 (First_Node): Minor adjustments to get better placement.
14627 Implement new -gnatl=xxx switch to output listing to file
14630 Implement new -gnatl=xxx switch to output listing to file
14632 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14633 (Commands_To_Stdout): New flag
14634 Implement new -gnatl=xxx switch to output listing to file
14635 New switch Dump_Source_Text
14636 (Warn_On_Deleted_Code): New warning flag for -gnatwt
14637 Define Error_Msg_Line_Length
14638 (Warn_On_Assumed_Low_Bound): New switch
14640 * osint.ads, osint.adb
14641 (Normalize_Directory_Name): Fix bug.
14642 Implement new -gnatl=xxx switch to output listing to file
14643 (Concat): Removed, replaced by real concatenation
14644 Make use of concatenation now allowed in compiler
14645 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14646 we find the 'lib' or 'bin' directory even when the tool has been
14647 invoked with a relative path.
14648 (Executable_Name): New function taking string parameters.
14650 * osint-c.ads, osint-c.adb:
14651 Implement new -gnatl=xxx switch to output listing to file
14653 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14656 Implement new -gnatl=xxx switch to output listing to file
14657 Recognize new -gnatL switch
14658 (no longer keep in old warning about old style usage)
14659 Use concatenation to simplify code
14660 Recognize -gnatjnn switch
14661 (Scan_Front_End_Switches): Clean up handling of -gnatW
14662 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14664 2006-10-31 Robert Dewar <dewar@adacore.com>
14666 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14667 (Set_Specific_Warning_Off): New procedure
14668 (Warning_Specifically_Suppressed): New function
14669 (Validate_Specific_Warnings): New procedure
14670 (Output_Msg_Text): Complete rewrite to support -gnatjnn
14672 * err_vars.ads: Implement insertion character ~ (insert string)
14674 2006-10-31 Bob Duff <duff@adacore.com>
14675 Ed Schonberg <schonberg@adacore.com>
14677 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14678 the parent part is a build-in-place function call, generate assignments.
14679 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14680 are build-in-place function calls.
14681 (Replace_Self_Reference): New subsidiary of
14682 Make_OK_Assignment_Statement, to replace an access attribute that is a
14683 self-reference into an access to the appropriate component of the
14684 target object. Generalizes previous mechanism to handle self-references
14685 nested at any level.
14686 (Is_Self_Referential_Init): Remove, not needed.
14687 (Is_Self_Referential_Init): New predicate to simplify handling of self
14688 referential components in record aggregates.
14689 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14690 check for presence of entity before checking for self-reference.
14691 (Has_Default_Init_Comps): Return True if a component association is a
14692 self-reference to the enclosing type, which can only come from a
14693 default initialization.
14694 (Make_OK_Assignment_Statement): If the expression is of the form
14695 Typ'Acc, where Acc is an access attribute, the expression comes from a
14696 default initialized self-referential component.
14697 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14698 that has been derived from several abstract interfaces we must also
14699 initialize the tags of the secondary dispatch tables.
14701 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14702 Thomas Quinot <quinot@adacore.com>
14703 Javier Miranda <miranda@adacore.com>
14704 Robert Dewar <dewar@adacore.com>
14707 (Expand_Access_To_Protected_Op): If the context indicates that an access
14708 to a local operation may be transfered outside of the object, create an
14709 access to the wrapper operation that must be used in an external call.
14710 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14711 target, pass the Valid attribute applied to a floating-point prefix on
14712 to the back end without expansion.
14713 (Storage_Size): Use the new run-time function Storage_Size to retrieve
14714 the allocated storage when it is specified by a per-object expression.
14715 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14716 Nothing to do here, the attribute has been rewritten during semantic
14718 (Expand_Attribute_Reference): Handle expansion of the new Priority
14720 (Find_Fat_Info): Handle case of universal real
14721 (Expand_Access_To_Protected_Op): Fix use of access to protected
14722 subprogram from inside the body of a protected entry.
14723 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14724 'Access and 'Unrestricted_Access, to transform the attribute reference
14725 into a fat pointer.
14726 (Is_Constrained_Aliased_View): New predicate to help determine whether a
14727 subcomponent's enclosing variable is aliased with a constrained subtype.
14728 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14729 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14730 an aliased prefix must be known to be constrained in order to use True
14731 for the attribute value, and now it's possible for some aliased views
14732 to be unconstrained.
14734 2006-10-31 Robert Dewar <dewar@adacore.com>
14736 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14737 (Expand_Entity_Reference): Correct error of not handling subprogram
14738 formals in current_value processing.
14740 2006-10-31 Javier Miranda <miranda@adacore.com>
14741 Robert Dewar <dewar@adacore.com>
14742 Ed Schonberg <schonberg@adacore.com>
14743 Gary Dismukes <dismukes@adacore.com>
14745 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14746 register in the final list objects containing class-wide interfaces;
14747 otherwise we incorrectly register the tag of the interface in the final
14749 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14750 generate the wrapper if the parent primitive is abstract. This is
14751 required to report the correct error message.
14752 (Expand_N_Subtype_Indication): Do validity checks on range
14753 (Clean_Task_Names): If an initialization procedure includes a call to
14754 initialize a task (sub)component, indicate that the procedure will use
14755 the secondary stack.
14756 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14757 compatibility for interfacing with CPP by default.
14758 (Expand_N_Object_Declaration): Only build an Adjust call when the
14759 object's type is a nonlimited controlled type.
14760 * exp_ch3.adb: Add with and use of Exp_Ch6.
14761 (Expand_N_Object_Declaration): Check for object initialization that is a
14762 call to build-in-place function and apply Make_Build_In_Place_Call_In_
14763 Object_Declaration to the call.
14764 (Freeze_Type): When the designated type of an RACW was not frozen at the
14765 point where the RACW was declared, validate the primitive operations
14766 with respect to E.2.2(14) when it finally is frozen.
14767 (Build_Initialization_Call,Expand_Record_Controller): Rename
14768 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14769 return-by-reference has no meaning in Ada 2005.
14770 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14771 to register tag of the immediate ancestor interfaces in the
14772 run-time structure.
14773 (Init_Secondary_Tags): Moved to the specification to allow the
14774 initialization of extension aggregates with abstract interfaces.
14775 (Build_Master_Renaming): Make public, for use by function declarations
14776 whose return type is an anonymous access type.
14777 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14778 Insert_List_Before_And_Analyze after the generation of the specs
14779 associated with null procedures.
14780 (Expand_Tagged_Root): Update documentation in its specification.
14781 (Init_Secondary_Tags): Update documentation.
14782 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14783 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14784 then generate code to inherit the contents of the dispatch table
14785 directly from the ancestor.
14786 (Expand_Record_Controller): Insert controller component after tags of
14787 implemented interfaces.
14788 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14789 create null procedure overridings when null procedures are inherited
14791 (Make_Null_Procedure_Specs): New procedure to generate null procedure
14792 declarations for overriding null primitives inherited from interfaces.
14793 (Is_Null_Interface_Procedure): New function in
14794 Make_Null_Procedure_Specs.
14795 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14796 immediate ancestor of a tagged type is an abstract interface type we
14797 must generate the specification of the predefined primitives associated
14798 with controlled types (because the dispatch table of the ancestor is
14799 null and hence these entries cannot be inherited). This is required to
14800 elaborate well the dispatch table.
14802 2006-10-31 Javier Miranda <miranda@adacore.com>
14803 Ed Schonberg <schonberg@adacore.com>
14804 Bob Duff <duff@adacore.com>
14805 Gary Dismukes <dismukes@adacore.com>
14806 Robert Dewar <dewar@adacore.com>
14808 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14810 (Expand_N_In): Do validity checks on range
14811 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14812 (Expand_N_Allocator): For "new T", if the object is constrained by
14813 discriminant defaults, allocate the right amount of memory, rather than
14814 the maximum for type T.
14815 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14816 when the allocator is initialized by a build-in-place call, since the
14817 allocator is already rewritten as a reference to the function result,
14818 and this prevents an unwanted duplication of the function call.
14819 Add with and use of Exp_Ch6.
14820 (Expand_Allocator_Expresssion): Check for an allocator whose expression
14821 is a call to build-in-place function and apply
14822 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14823 untagged designated types).
14824 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14825 optimization if source or target is biased.
14826 (Expand_N_Allocator): Add comments for case of an allocator within a
14827 function that returns an anonymous access type designating tasks.
14828 (Expand_N_Allocator): apply discriminant checks for access
14829 discriminants of anonymous access types (AI-402, AI-416)
14831 2006-10-31 Bob Duff <duff@adacore.com>
14832 Robert Dewar <dewar@adacore.com>
14833 Gary Dismukes <dismukes@adacore.com>
14834 Ed Schonberg <schonberg@adacore.com>
14836 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14838 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14839 (Expand_N_Assignment_Statement): Call
14840 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14841 build-in-place function call. Currently, this can happen only for
14842 assignments that come from aggregates.
14843 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14844 in order to alleviate the upward compatibility introduced by AI-318.
14845 (Expand_N_Extended_Return_Statement): Add support for handling the
14846 return object as a build-in-place result.
14847 (Expand_Non_Function_Return): Implement simple return statements nested
14848 within an extended return.
14849 (Enable_New_Return_Processing): Turn on the new processing of return
14851 (Expand_Non_Function_Return): For a return within an extended return,
14852 don't raise Program_Error, because Sem_Ch6 now gives a warning.
14853 (Expand_N_Extended_Return_Statement): Implement AI-318
14854 (Expand_Simple_Function_Return): Ditto.
14855 (Expand_N_If_Statement): Handle new -gnatwt warning
14856 (Expand_N_Case_Statement): Handle new -gnatwt warning
14857 (Expand_N_Assignment): Handle assignment to the Priority attribute of
14858 a protected object.
14859 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14860 validity checking of assignments to elementary record components.
14861 (Expand_N_Return_Statement): return Class Wide types on the secondary
14862 stack independantly of their controlled status since with HIE runtimes,
14863 class wide types are not potentially controlled anymore.
14865 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14868 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14869 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14870 it expects a block, procedure, or task. The return statement will get
14871 turned into a block, and Expand_Cleanup_Actions will happen then.
14873 2006-10-31 Robert Dewar <dewar@adacore.com>
14874 Ed Schonberg <schonberg@adacore.com>
14875 Bob Duff <duff@adacore.com>
14876 Gary Dismukes <dismukes@adacore.com>
14878 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14880 (Expand_Inlined_Call): Tagged types are by-reference types, and
14881 therefore should be replaced by a renaming declaration in the expanded
14882 body, as is done for limited types.
14883 (Expand_Call): If this is a call to a function with dispatching access
14884 result, propagate tag from context.
14885 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
14887 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
14888 build-in-place when the right-hand side of an assignment is a
14889 build-in-place function call.
14890 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
14891 of the explicit dereference of the allocator to the result subtype of
14892 the build-in-place function. This is needed to satisfy type checking
14893 in cases where the caller's return object is created by an allocator for
14894 a class-wide access type and the type named in the allocator is a
14896 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
14897 conversion of the reference to the declared object to the result subtype
14898 of the build-in-place function. This is needed to satisfy type checking
14899 in cases where the declared object has a class-wide type. Also, in the
14900 class-wide case, change the type of the object entity to the specific
14901 result subtype of the function, to avoid passing a class-wide object
14902 without explicit initialization to the back end.
14903 (Register_Interface_DT_Entry): Moved outside the body of
14904 Freeze_Subprogram because this routine is now public; it is called from
14905 Check_Dispatching_Overriding to handle late overriding of abstract
14906 interface primitives.
14907 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
14908 adding an implicit access actual on a call to a build-in-place function.
14909 (Expand_Actuals): Test for an actual parameter that is a call to a
14910 build-in-place function and apply
14911 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
14912 (Is_Build_In_Place_Function): New function to determine whether an
14913 entity is a function whose calls should be handled as build-in-place.
14914 (Is_Build_In_Place_Function_Call): New function to determine whether an
14915 expression is a function call that should handled as build-in-place.
14916 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
14917 calls to build-in-place functions as the initialization of an allocator.
14918 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
14919 handling calls to build-in-place functions in contexts that do not
14920 involve init of a separate object (for example, actuals of subprogram
14922 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
14923 handling calls to build-in-place functions as the initialization of an
14924 object declaration.
14925 (Detect_Infinite_Recursion): Add explicit parameter Process to
14926 instantiation of Traverse_Body to avoid unreferenced warning.
14927 (Check_Overriding_Inherited_Interfaces): Removed.
14928 (Register_Interface_DT_Entry): Code cleanup.
14929 (Register_Predefined_DT_Entry): Code cleanup.
14930 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
14931 inlined statements if within a transient scope.
14932 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
14933 formal parameters with occurrences of actuals in inlined body, establish
14934 visibility on the proper view of the actual's subtype for the body's
14936 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
14937 compatibility mode and we have an imported CPP subprogram because
14938 for now we assume that imported CPP primitives correspond with
14939 objects whose constructor is in the CPP side (and therefore we
14940 don't need to generate code to register them in the dispatch table).
14941 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
14942 aligned selected component.
14943 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
14944 the actual of an in-mode parameter is a type conversion.
14945 (Expand_Actuals): If the call does not come from source and the actual
14946 is potentially misaligned, let gigi handle it rather than rejecting the
14947 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
14948 Class Wide types as returning by reference independantly of their
14949 controlled status since with HIE runtimes class wide types are not
14950 potentially controlled anymore.
14952 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14954 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
14955 references that are private components of the protected object.
14956 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
14957 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
14958 instantiation to deal with warnings.
14959 (Initialize_Protection): If expression for priority is non-static, use
14960 System_Priority as its expected type, in case the expression has not
14963 2006-10-31 Robert Dewar <dewar@adacore.com>
14965 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
14966 initialization of Homonym_Len.
14967 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
14968 names from fully qualified name. Fixes problem of duplicate
14969 external names differing only in the presence of such a block name.
14971 2006-10-31 Thomas Quinot <quinot@adacore.com>
14972 Pablo Oliveira <oliveira@adacore.com>
14974 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
14975 subprogram Ids, even if they are not yet assigned.
14976 (Build_Subprogram_Id): It is now this function that will take care of
14977 calling Assign_Subprogram_Ids if necessary.
14978 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
14979 should be done only once they are assigned.
14980 (Build_From_Any_Function, case of tagged types): Add missing call to
14982 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
14983 type for an RACW type.
14984 (Add_RACW_Features): When processing an RACW declaration for which the
14985 designated type is already frozen, enforce E.2.2(14) rules immediately.
14986 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
14987 special reordering of controlling formals.
14989 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
14990 associated stub type for an RACW type.
14992 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14994 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
14995 fixed-point operations in an integer context, i.e. as operands of a
14996 conversion to an integer type, indicate that result must be rounded.
14998 2006-10-31 Robert Dewar <dewar@adacore.com>
15000 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15001 cases, pass the encoding method, since it is now required by the run
15004 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15005 assumption that Str'First = 1.
15006 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15007 it on to the Value_Wide_Wide_Character call.
15008 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15009 properly handles a string of the form quote-encoded_wide_char-quote.
15011 * s-wchcnv.adb: Minor reformatting
15013 2006-10-31 Javier Miranda <miranda@adacore.com>
15015 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15016 run-time membership test to ensure that the constructed object
15017 implements the target abstract interface.
15019 2006-10-31 Robert Dewar <dewar@adacore.com>
15021 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15022 Machine_Attribute pragma internally to implement the user pragma.
15023 Add processing for pragma Interface so that it is now completely
15024 equivalent to pragma Import.
15026 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15027 so that it can be applied to all entities, including record components
15028 and enumeration literals.
15029 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15030 priority ranges are correct, verify compatibility against task
15031 dispatching and locking policies, and if everything is correct an entry
15032 is added to the table containing priority specific dispatching entries
15033 for this compilation unit.
15034 (Delay_Config_Pragma_Analyze): Delay processing
15035 Priority_Specific_Dispatching pragmas because when processing the
15036 pragma we need to access run-time data, such as the range of
15037 System.Any_Priority.
15038 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15039 Allow pragma Unreferenced as a context item
15040 Add pragma Preelaborable_Initialization
15041 (Analyze_Pragma, case Interface): Interface is extended so that it is
15042 now syntactically and semantically equivalent to Import.
15043 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15044 insertion characters.
15045 Add handling for Pragma_Wide_Character_Encoding
15046 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15047 never supercedes a real restriction, and that a real restriction
15048 always supercedes a warning.
15049 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15052 2006-10-31 Bob Duff <duff@adacore.com>
15053 Ed Schonberg <schonberg@adacore.com>
15054 Robert Dewar <dewar@adacore.com>
15056 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15057 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15058 Is_Inherently_Limited_Type, because return-by-reference has no meaning
15060 (Find_Node_To_Be_Wrapped): Use new method of determining the result
15061 type of the function containing a return statement, because the
15062 Return_Type field was removed. We now use the Return_Applies_To field.
15064 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15065 (Build_Task_Image_Decl): If procedure is not called from an
15066 initialization procedure, indicate that function that builds task name
15067 uses the sec. stack. Otherwise the enclosing initialization procedure
15068 will carry the indication.
15069 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15070 N_Object_Declaration instead.
15071 (Kill_Dead_Code): New interface to implement -gnatwt warning for
15072 conditional dead code killed, and change implementation accordingly.
15073 (Insert_Actions): Add N_Return_Object_Declaration case.
15074 Correct comment to mention N_Extension_Aggregate node.
15075 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15076 attempts to save information for global variables which cannot be
15078 (Get_Current_Value_Condition): Handle conditions the other way round
15079 (constant on left). Also handle right operand of AND and AND THEN
15080 (Set_Current_Value_Condition): Corresponding changes
15081 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15082 (Get_Current_Value_Condition): Handle simple boolean operands
15083 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15084 (Get_Current_Value_Condition): If the variable reference is within an
15085 if-statement, does not appear in the list of then_statments, and does
15086 not come from source, treat it as being at unknown location.
15087 (Get_Current_Value_Condition): Enhance to allow while statements to be
15088 processed as well as if statements.
15089 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15091 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15092 of loop. This is safe now that we fixed Kill_Current_Values.
15093 (OK_To_Do_Constant_Replacement): Check whether current scope is
15094 Standard, before examining outer scopes.
15096 2006-10-31 Vincent Celier <celier@adacore.com>
15098 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15099 When True, apply VMS treatment to children of packages A, G, I and S.
15102 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15104 2006-10-31 Robert Dewar <dewar@adacore.com>
15105 Ed Schonberg <schonberg@adacore.com>
15107 * freeze.adb: Add handling of Last_Assignment field
15108 (Warn_Overlay): Supply missing continuation marks in error msgs
15109 (Freeze_Entity): Add check for Preelaborable_Initialization
15111 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15113 * g-expect.adb: Add Warnings (Off) to prevent new warning
15115 * lib-xref.adb: Add handling of Last_Assignment field
15116 (Generate_Reference): Centralize handling of pragma Obsolescent here
15117 (Generate_Reference): Accept an implicit reference generated for a
15118 default in an instance.
15119 (Generate_Reference): Accept a reference for a node that is not in the
15120 main unit, if it is the generic body corresponding to an subprogram
15123 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15125 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15127 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15129 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15130 use clauses, to avoid messages on packages used to qualify, and also
15131 to avoid messages from obsolescent units.
15132 (Warn_On_Useless_Assignments): Don't generate messages for imported
15133 and exported variables.
15134 (Warn_On_Useless_Assignments): New procedure
15135 (Output_Obsolescent_Entity_Warnings): New procedure
15136 (Check_Code_Statement): New procedure
15138 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15139 Change name Is_Ada_2005 to Is_Ada_2005_Only
15140 (Last_Assignment): New field for useless assignment warning
15142 2006-10-31 Olivier Hainque <hainque@adacore.com>
15144 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15145 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15147 2006-10-31 Bob Duff <duff@adacore.com>
15148 Robert Dewar <dewar@adacore.com>
15149 Ed Schonberg <schonberg@adacore.com>
15151 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15152 Ada 95 mode, because it violates the new rules for AI-318.
15154 * g-awk.ads: Use overloaded subprograms in every case where we used to
15155 have a default of Current_Session. This makes the code closer to be
15156 correct for both Ada 95 and 2005.
15158 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15159 code, relying on the fact that the compiler generates a warning
15160 instead of an error in -gnatg mode.
15162 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15163 E_Return_Statement entity kind.
15164 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15166 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15167 report an error if the reserved word abstract has been previously found.
15168 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15170 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15171 parenthesized range attribute usage
15172 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15174 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15175 in the syntax for extended_return_statement. This is not in the latest
15176 RM, but the ARG is expected to issue an AI allowing this.
15177 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15178 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15179 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15180 P_Return_Statement): Parse the new syntax for extended_return_statement.
15182 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15183 Output_End_Missing): Add error-recovery code for the new
15184 extended_return_statement syntax; that is, the new E_Return entry on
15187 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15188 limited to nonlimited, because otherwise we violate the new Ada 2005
15189 rules about returning limited types in function Create_AST_Handler in
15192 * sem.adb (Analyze): Add cases for new node kinds
15193 N_Extended_Return_Statement and N_Return_Object_Declaration.
15195 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15196 type is in the same category as type of context before applying check,
15197 to prevent anomalies in instantiations.
15198 (Resolve_Aggregate): Remove test for limited components in aggregates.
15199 It's unnecessary in Ada 95, because if it has limited components, then
15200 it must be limited. It's wrong in Ada 2005, because limited aggregates
15202 (Resolve_Record_Aggregate): Move check for limited types later, because
15203 OK_For_Limited_Init requires its argument to have been resolved.
15204 (Get_Value): When copying the component default expression for a
15205 defaulted association in an aggregate, use the sloc of the aggregate
15206 and not that of the original expression, to prevent spurious
15207 elaboration errors, when the expression includes function calls.
15208 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15209 were missing. We also didn't handle qualified expressions. Now also
15210 allow function calls. Use new common routine OK_For_Limited_Init.
15211 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15212 with space can upper case letter).
15214 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15215 Has_Static_Discriminants flag
15216 (Record_Type_Declaration): Diagnose an attempt to declare an interface
15217 type with discriminants.
15218 (Process_Range_Expr_In_Decl): Do validity checks on range
15219 (Build_Discriminant_Constraints): Use updated form of
15220 Denotes_Discriminant.
15221 (Process_Subtype): If the subtype is a private subtype whose full view
15222 is a concurrent subtype, introduce an itype reference to prevent scope
15224 (Build_Derived_Record_Type, Collect_Interface_Primitives,
15225 Record_Type_Declaration): The functionality of the subprograms
15226 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15227 is now performed by a single routine.
15228 (Build_Derived_Record_Type): If the type definition includes an explicit
15229 indication of limitedness, then the type must be marked as limited here
15230 to ensure that any access discriminants will not be treated as having
15231 a local anonymous access type.
15232 (Check_Abstract_Overriding): Issue a detailed error message when an
15233 abstract subprogram was not overridden due to incorrect mode of its
15235 (Analyze_Private_Extension_Declaration): Add support for the analysis of
15236 synchronized private extension declarations. Verify that the ancestor is
15237 a limited or synchronized interface or in the generic case, the ancestor
15238 is a tagged limited type or synchronized interface and all progenitors
15239 are either limited or synchronized interfaces.
15240 Derived_Type_Declaration): Check for presence of private extension when
15241 dealing with synchronized formal derived types.
15242 Process_Full_View): Enchance the check done on the usage of "limited" by
15243 testing whether the private view is synchronized.
15244 Verify that a synchronized private view is completed by a protected or
15246 (OK_For_Limited_Init_In_05): New function.
15247 (Analyze_Object_Declaration): Move check for limited types later,
15248 because OK_For_Limited_Init requires its argument to have been resolved.
15249 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15250 in order to alleviate the upward compatibility introduced by AI-318.
15251 (Constrain_Corresponding_Record): If the constraint is for a component
15252 subtype, mark the itype as frozen, to avoid out-of-scope references to
15253 discriminants in the back-end.
15254 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15255 this subprogram against wrong sources.
15256 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15257 discriminant of limited type completed with a protected type, when the
15258 discriminant is used to constrain a private component of the type, and
15259 expansion is disabled.
15260 (Find_Type_Of_Object): Do not treat a return subtype that is an
15261 anonymous subtype as a local_anonymous_type, because its accessibility
15262 level is the return type of the enclosing function.
15263 (Check_Initialization): In -gnatg mode, turn the error "cannot
15264 initialize entities of limited type" into a warning.
15265 (OK_For_Limited_Init): Return true for generated nodes, since it
15266 sometimes violates the legality rules.
15267 (Make_Incomplete_Declaration): If the type for which an incomplete
15268 declaration is created happens to be the currently visible entity,
15269 preserve the homonym chain when removing it from visibility.
15270 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15271 inherited subprograms.
15272 (Access_Definition): If this is an access to function that is the return
15273 type of an access_to_function definition, context is a type declaration
15274 and the scope of the anonymous type is the current one.
15275 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15276 incomplete subtype to the set of private dependents of the original
15278 (Constrain_Discriminated_Type): Emit an error message whenever an
15279 incomplete subtype is being constrained.
15280 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15281 corresponding subtype of the full view of the original incomplete type.
15282 (Check_Incomplete): Properly detect invalid usage of incomplete types
15285 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15287 * g-catiio.ads, g-catiio.adb (Value): New function.
15288 Given an input String, try and parse a valid Time value.
15290 2006-10-31 Vincent Celier <celier@adacore.com>
15292 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15293 Integer_Address arithmetic, as in Set_Valid.
15295 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15296 Robert Dewar <dewar@adacore.com>
15298 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15299 handling executable extension manually and duplicating code.
15301 * make.adb: Implement new -S switch
15302 (Gnatmake): Use new function Osint.Executable_Name instead
15303 of handling executable extension manually.
15305 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15306 is specified, the executable name ends with this suffix.
15307 Take advantage of Osint.Executable_Name instead of duplicating code.
15309 * switch-m.adb: Recognize new gnatmake -S switch
15311 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15313 (Get_Target_Parameters): Set Executable_Extension_On_Target if
15316 * makeusg.adb: Add line for gnatmake -S switch
15318 2006-10-31 Vincent Celier <celier@adacore.com>
15320 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15321 call it with -static-libgcc, as there are some platforms, such as
15322 Darwin, where one of these two switches is compulsory to link.
15324 2006-10-31 Vincent Celier <celier@adacore.com>
15326 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15327 instead of ADA_PROJECT_PATH, for the project path.
15328 (Gnatls): When displaying the project path directories, use host dir
15331 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15332 names in the project path, as absolute paths may correspond to
15333 multi-valued VMS logical names.
15335 2006-10-31 Vincent Celier <celier@adacore.com>
15337 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15338 absolute path name.
15339 (Locate_Regular_File): Ditto
15340 (Change_Dir): Remove, no longer used
15341 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15342 on Windows. Get it calling Get_Current_Dir.
15343 (OpenVMS): Remove imported boolean, no longer needed.
15344 (Normalize_Pathname)[VMS]: Do not resolve directory names.
15345 (Pid_To_Integer): New function to convert a Process_Id to Integer
15347 2006-10-31 Thomas Quinot <quinot@adacore.com>
15349 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15350 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15352 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15355 2006-10-31 Robert Dewar <dewar@adacore.com>
15357 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15358 initial letter o as a zero.
15360 2006-10-31 Robert Dewar <dewar@adacore.com>
15362 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15364 2006-10-31 Robert Dewar <dewar@adacore.com>
15366 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15368 (Layout_Variant_Record): Retrieve the discriminants from the entity
15369 rather than from the type definition, because in the case of a full
15370 type for a private type we need to take the discriminants from the
15372 (Layout_Component_List): When applying the Max operator to variants with
15373 a nonstatic size, check whether either operand is static and scale that
15374 operand from bits to storage units before applying Max.
15375 (Layout_Type): In VMS, if a C-convention access type has no explicit
15376 size clause (and does not inherit one in the case of a derived type),
15377 then the size is reset to 32 from 64.
15379 2006-10-31 Vincent Celier <celier@adacore.com>
15381 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15382 its file has already been loaded, according to the unit being loaded,
15383 not to the current value of Multiple_Unit_Index.
15385 2006-10-31 Thomas Quinot <quinot@adacore.com>
15386 Eric Botcazou <ebotcazou@adacore.com>
15387 Arnaud Charlet <charlet@adacore.com>
15389 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15390 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15392 (a-except.o): Pass it to the compiler.
15393 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15394 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15395 a-calend-mingw.adb version.
15397 * Makefile.rtl: Added s-dsaser.
15398 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15399 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15400 Ada.Dispatching.Round_Robin.
15401 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15403 * Make-lang.in: Remove all references to gt-ada-decl.h.
15404 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15406 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15407 Update dependencies.
15409 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15411 2006-10-31 Vincent Celier <celier@adacore.com>
15413 * mlib-utl.adb (Initialized): Remove, no longer used
15414 (Initialize): Remove, no longer used
15415 (Ar): If Ar_Exec is null, get the location of the archive builder and,
15416 if there is one, the archive indexer. Fail if the archive builder cannot
15418 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15421 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15423 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15424 Process_Body_Clauses): If the context of a body includes a use clause
15425 for P.Q then a with_clause for P in the same body is not redundant,
15426 even if the spec also has a with_clause on P.
15427 Add missing continuation mark to error msg
15428 (Build_Limited_Views): A limited view of a type is tagged if its
15429 declaration includes a record extension.
15430 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15431 node, even if the subunit has errors. This avoids malfunction by
15432 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15433 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15434 generation of obsolescent messages for with statements (cannot do
15435 this too early, or we cannot implement avoiding the messages in the
15436 case of obsolescent units withing obsolescent units).
15437 (Install_Siblings): If the with_clause is on a remote descendant of
15438 an ancestor of the current compilation unit, find whether there is
15439 a sibling child unit that is immediately visible.
15440 (Remove_Private_With_Clauses): New procedure, invoked after completing
15441 the analysis of the private part of a nested package, to remove from
15442 visibility the private with_clauses of the enclosing package
15444 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15445 now centralized in Generate_Reference.
15446 (Install_Limited_Context_Clauses): Remove superfluous error
15447 message associated with unlimited view visible through use
15448 and renamings. In addition, at the point in which the error
15449 is reported, we add the backslash to the text of the error
15450 to ensure that it is reported as a single error message.
15451 Use new // insertion for some continuation messages
15452 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15453 to create implicit with_clause for parent unit mentioned in original
15454 limited_with_clause.
15455 (Install_Limited_With_Unit): Set entity of parent identifiers if the
15456 unit is a child unit. For ASIS queries.
15457 (Analyze_Subunit): If the subunit appears within a child unit, make all
15458 ancestor child units directly visible again.
15460 2006-10-31 Robert Dewar <dewar@adacore.com>
15462 * par-ch10.adb (P_Context_Clause): Minor error message fix
15464 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15465 Javier Miranda <miranda@adacore.com>
15467 * par-ch12.adb: Grammar update and cleanup.
15468 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15469 support for synchronized derived type definitions.
15470 Add the new actual Abstract_Present to every call to
15471 P_Interface_Type_Definition.
15472 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15473 a formal object declaration with an access definition or a subtype mark
15474 with a null exclusion.
15475 (P_Generic_Association): Handle association with box, and others_choice
15476 with box, to support Ada 2005 partially parametrized formal packages.
15478 2006-10-31 Robert Dewar <dewar@adacore.com>
15479 Javier Miranda <miranda@adacore.com>
15481 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15482 (P_Type_Declaration): Remove barrier against the reserved word "limited"
15483 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15484 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15485 private extensions.
15486 (P_Type_Declaration): Add the new actual Abstract_Present to every call
15487 to P_Interface_Type_Definition.
15488 (P_Interface_Type_Definition): Addition of one formal to report an error
15489 if the reserved word abstract has been previously found.
15490 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15491 object renaming declaration with an access definition or subtype mark
15492 with a possible null exclusion.
15494 * par-ch9.adb: Minor error msg fix
15496 * par-load.adb: Add missing continuation mark to error msg
15498 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15500 2006-10-31 Vincent Celier <celier@adacore.com>
15502 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15503 unknown attribute in unknown package or in package that does not need
15505 (Parse_Package_Declaration): Do not issue warning for unknown package in
15508 2006-10-31 Vincent Celier <celier@adacore.com>
15510 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15511 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15514 2006-10-31 Vincent Celier <celier@adacore.com>
15516 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15517 on VMS, change "__" to '.' before checking the name.
15518 (Record_Ada_Source): Always add the source file name in the list of
15519 of sources, even if it is not the first time, as it is for another
15521 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15522 dot, instead of replacing only the first '_'.
15524 * prj-part.adb (Parse): Convert project file path to canonical form
15526 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15527 extended, the project id of the project extending it is recorded in its
15528 data, even when it has already been processed as an imported project.
15530 2006-10-31 Robert Dewar <dewar@adacore.com>
15532 * repinfo.adb (List_Entities): Don't list entities from renaming
15535 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15536 Robert Dewar <dewar@adacore.com>
15538 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15539 only a restriction warning is active for the given restriction. This is
15540 desirable because we do not want to modify code in the case where only
15542 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15543 causes overriding of real restrictions.
15544 Take advantage of new No_Restrictions constant.
15546 * raise.h: (__gnat_set_globals): Change profile.
15548 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15550 * rtsfind.adb: Remove s-polint from comment as it exists no more.
15553 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15554 Move all the entities in obsolete package System.PolyORB_Interface to
15555 System.Partition_Interface.
15556 (RE_Storage_Size): New function in System.Tasking.
15557 (RE_Get_Ceiling): New entity.
15558 (RE_Set_Ceiling): New entity.
15559 (RO_PE_Get_Ceiling): New entity.
15560 (RO_RE_Set_Ceiling): New entity.
15561 (Inherit_CPP_DT): New entity
15563 2006-10-31 Robert Dewar <dewar@adacore.com>
15565 * scng.adb (Scan, case of numeric literal): Better msg for identifier
15566 starting with a digit.
15568 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15569 Thomas Quinot <quinot@adacore.com>
15570 Javier Miranda <miranda@adacore.com>
15571 Gary Dismukes <dismukes@adacore.com>
15573 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15574 properly an attempt to apply Unchecked_Access to a protected operation.
15575 (OK_Self_Reference): New subprogram to check the legality of an access
15576 attribute whose prefix is the type of an enclosing aggregate.
15577 Generalizes previous mechanism to handle attribute references nested
15578 arbitrarily deep within the aggregate.
15579 (Analyze_Access_Attribute): An access attribute whose prefix is a type
15580 can appear in an aggregate if this is a default-initialized aggregate
15581 for a self-referential type.
15582 (Resolve_Attribute, case Access): Ditto.
15583 Add support for new implementation defined attribute Stub_Type.
15584 (Eval_Attribute, case Attribute_Stub_Type): New case.
15585 (Analyze_Attribute, case Attribute_Stub_Type): New case.
15586 (Stream_Attribute_Available): Implement using new subprogram from
15587 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15588 Has_Specified_Stream_Attribute flag.
15589 Disallow Storage_Size and Storage_Pool for access to subprogram
15590 (Resolve_Attribute, case 'Access et al): Take into account anonymous
15591 access types of return subtypes in extended return statements. Remove
15592 accessibility checks on anonymous access types when Unchecked_Access is
15594 (Analyze_Attribute): Add support for the use of 'Class to convert
15595 a class-wide interface to a tagged type.
15596 Add support for the attribute Priority.
15597 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15598 whether the designated type is discriminated with a constrained partial
15599 view and require static matching in that case.
15600 Add local variable Des_Btyp. The Designated_Type
15601 of an access to incomplete subtype is either its non-limited view if
15602 coming from a limited with or its etype if regular incomplete subtype.
15604 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15605 Fix predicate to identify and allow cases of (expander-generated)
15606 references to tag of designated object of a RACW.
15607 (Validate_Static_Object_Name): In Ada 2005, a formal object is
15608 non-static, and therefore cannot appear as a primary in a preelaborable
15610 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15611 Has_Read_Write_Attributes.
15612 (Has_Read_Write_Attributes): Reimplement in termes of
15613 Has_Stream_Attribute_Definition.
15614 (Missing_Read_Write_Attributes): When checking component types in a
15615 record, unconditionally call Missing_Read_Write_Attributes recursively
15616 (remove guard checking for Is_Record_Type / Is_Access_Type).
15618 2006-10-31 Robert Dewar <dewar@adacore.com>
15620 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15621 useless assignments here and conditionalize it on absence of exception
15623 (Analyze_Exception_Handlers): Small code reorganization of error
15624 detection code, for new handling of formal packages.
15626 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15627 Hristian Kirtchev <kirtchev@adacore.com>
15629 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15630 that has been constant-folded, preserve information of original tree,
15632 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15633 generated private extension declaration if the formal derived type is
15634 synchronized. Carry synchronized present over to the generated private
15636 (Validate_Derived_Type_Instance): Ensure that the actual of a
15637 synchronized formal derived type is a synchronized tagged type.
15638 (Instantiate_Formal_Package): When creating the instantiation used to
15639 validate the actual package of a formal declared without a box, check
15640 whether the formal itself depends on a prior actual.
15641 (Instantiate_Formal_Subprogram): Create new entities for the defining
15642 identifiers of the formals in the renaming declaration, for ASIS use.
15643 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15644 a renaming declaration or a subtype declaration for an actual in an
15645 instance, capture location information of declaration in generic, for
15647 (Instantiate_Formal_Package): Add comments on needed additional tests.
15648 AI-317 (partial parametrization) is fully implemented.
15649 (Validate_Private_Type_Instance): Add check for actual which
15650 must have preelaborable initialization
15651 Use new // insertion for some continuation messages
15652 (Analyze_Formal_Object_Declaration): Change usage of Expression to
15653 Default_Expression. Add type retrieval when the declaration has an
15654 access definition. Update premature usage of incomplete type check.
15655 (Check_Access_Definition): New subsidiary routine. Check whether the
15656 current compilation version is Ada 05 and the supplied node has an
15658 (Instantiate object): Alphabetize local variables. Handle the creation
15659 of new renaming declarations with respect to the kind of definition
15660 used - either an access definition or a subtype mark. Guard against
15661 unnecessary error message in the context of anonymous access types after
15662 they have been resolved. Add check for required null exclusion in a
15663 formal object declaration.
15664 (Switch_View): A private subtype of a non-private type needs to be
15665 switched (the base type can have been switched without its private
15666 dependents because of the last branch of Check_Private_View.
15667 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15669 (Instantiate_Type): Emit an error message whenever a class-wide type of
15670 a tagged incomplete type is used as a generic actual.
15671 (Find_Actual_Type): Extend routine to handle a component type in a child
15672 unit that is imported from a formal package in a parent.
15673 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15674 agree on constrainedness, rather than checking against ultimate ancestor
15675 (Instantiate_Subprogram_Body): Create a cross-reference link to the
15676 generic body, for navigation purposes.
15678 2006-10-31 Robert Dewar <dewar@adacore.com>
15679 Thomas Quinot <quinot@adacore.com>
15681 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15683 (New_Stream_Subprogram): When processing an attribute definition clause
15684 for a stream-oriented subprogram, record an entity node occurring at
15685 the point of clause to use for checking the visibility of the clause,
15686 as defined by 8.3(23) as amended by AI-195.
15687 (New_Stream_Subprogram): New procedure, factoring behaviour from both
15688 New_Stream_Function and New_Stream_Procedure.
15689 (New_Stream_Function, New_Stream_Procedure): Removed.
15690 (Analyze_Attribute_Definition_Clause, case Address): Check new
15691 Alignment_Check check
15693 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15694 Javier Miranda <miranda@adacore.com>
15695 Robert Dewar <dewar@adacore.com>
15697 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15698 generate the same errors compiling under -gnatc.
15699 (Try_Object_Operation): If no candidate interpretation succeeds, but
15700 there is at least one primitive operation with the right name, report
15701 error in call rather than on a malformed selected component.
15702 (Analyze_Selected_Component): If the prefix is an incomplete type from
15703 a limited view, and the full view is available, use the full view to
15704 determine whether this is a prefixed call to a primitive operation.
15705 (Operator_Check): Verify that a candidate interpretation is a binary
15706 operation before checking the type of its second formal.
15707 (Analyze_Call): Add additional warnings for function call contexts not
15709 (Analyze_Allocator): Move the check for "initialization not allowed for
15710 limited types" after analyzing the expression. This is necessary,
15711 because OK_For_Limited_Init looks at the structure of the expression.
15712 Before analysis, we don't necessarily know what sort of expression it
15713 is. For example, we don't know whether F(X) is a function call or an
15714 indexed component; the former is legal in Ada 2005; the latter is not.
15715 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15716 were missing. We also didn't handle qualified expressions. Now also
15717 allow function calls. Use new common routine OK_For_Limited_Init.
15718 (Analyze_Type_Conversion): Do not perform some legality checks in an
15719 instance, because the error message will be redundant or spurious.
15720 (Analyze_Overloaded_Selected_Component): Do not do style check when
15721 setting an entity, since we do not know it is the right entity yet.
15722 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15723 (Analyze_Overloaded_Selected_Component): Same change
15724 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15725 since regular incomplete subtypes are transformed into corresponding
15726 subtypes of their full views.
15727 (Complete_Object_Operation): Treat name of transformed subprogram call
15728 as coming from source, for browsing purposes.
15729 (Try_Primitive_Operation): If formal is an access parameter, compare
15730 with base type of object to determine whether it is a primitive
15732 (Operator_Check): If no interpretation of the operator matches, check
15733 whether a use clause on any candidate might make the operation legal.
15734 (Try_Class_Wide_Operation): Check whether the first parameter is an
15735 access type whose designated type is class-wide.
15737 2006-10-31 Robert Dewar <dewar@adacore.com>
15738 Ed Schonberg <schonberg@adacore.com>
15739 Gary Dismukes <dismukes@adacore.com>
15741 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15742 warn on infinite loops.
15743 Add \\ to some continuation messages
15744 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15745 (Process_Bounds): If the bounds are integer literals that result from
15746 constant-folding, and they carry a user-defined type, preserve that type
15747 rather than treating this as an integer range.
15748 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15749 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15750 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15751 left hand side of assignment.
15752 (Analyze_Assignment): Add suport to manage assigments to the attribute
15753 priority of a protected object.
15754 (Check_Possible_Current_Value_Condition): Allow fully qualified names
15755 not just identifiers.
15756 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15757 or AND THEN for possible tracking.
15758 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15759 case of while loops so we can track values in the loop body.
15761 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15762 Hristian Kirtchev <kirtchev@adacore.com>
15763 Bob Duff <duff@adacore.com>
15765 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15766 procedure cannot be a protected operation (it is a basic_declaration,
15767 not a subprogram_declaration).
15768 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15769 Subp. Add logic for entry processing.
15770 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15771 Determine whether an entry or subprogram of a protected or task type
15772 override an inherited primitive of an implemented interface.
15773 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15774 Update the actual used in calls to Check_Overriding_Indicator.
15775 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15776 generate the proper reference to the parent unit, for cross-reference.
15777 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15779 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15780 (Add_Extra_Formal): Revise procedure to allow passing in associated
15781 entity, scope, and name suffix, and handle setting of the new
15782 Extra_Formals field.
15783 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15784 pass new parameters. Add support for adding the new extra access formal
15785 for functions whose calls are treated as build-in-place.
15786 (Analyze_A_Return_Statement): Correct casing in error message.
15787 Move Pop_Scope to after Analyze_Function_Return, because an extended
15788 return statement really is a full-fledged scope. Otherwise, visibility
15789 doesn't work right. Correct use of "\" for continuation messages.
15790 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15791 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15792 the node doesn't get properly marked as analyzed.
15793 (Analyze_Subprogram_Body): If subprogram is a function that returns
15794 an anonymous access type that denotes a task, build a Master Entity
15796 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15797 proper usage of null exclusion in a result definition.
15798 (Process_Formals): Code cleanup and new error message.
15799 (Process_Formals): Detect incorrect application of null exclusion to
15801 (Conforming_Types): Handle conformance between [sub]types and itypes
15802 generated for entities that have null exclusions applied to them.
15803 (Maybe_Primitive_Operation): Add an additional type retrieval when the
15804 base type is an access subtype. This case arrises with null exclusions.
15805 (New_Overloaded_Entity): Do not remove the overriden entity from the
15806 homonym chain if it corresponds with an abstract interface primitive.
15807 (Process_Formals): Replace membership test agains Incomplete_Kind with a
15808 call to the synthesized predicate Is_Incomplete_Type.
15809 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15811 (Analyze_Subprogram_Declaration): Check that abstract interface
15812 primitives are abstract or null.
15813 (Analyze_Subprogram_Specification): Remove previous check for abstract
15814 interfaces because it was not complete.
15815 (Has_Interface_Formals): Removed.
15817 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15818 Javier Miranda <miranda@adacore.com>
15820 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15821 of Analyze_Package_Body, to create Itype references for anonymous
15822 access types created in the package declaration, whose designated types
15823 may have only a limited view.
15824 (Analyze_Package_Specification): For the private part of a nested
15825 package, install private_with_clauses of enclosing compilation unit if
15826 we are in its visible part.
15827 (Declare_Inherited_Private_Subprograms): Complete barrier
15828 to ensure that the primitive operation has an alias to some parent
15829 primitive. This is now required because, after the changes done for the
15830 implementation of abstract interfaces, the contents of the list of
15831 primitives has entities whose alias attribute references entities of
15832 such list of primitives.
15833 (Analyze_Package_Specification): Simplify code that handles parent units
15834 of instances and formal packages.
15835 (Uninstall_Declarations): Check the convention consistency among
15836 primitive overriding operations of a tagged record type.
15838 2006-10-31 Robert Dewar <dewar@adacore.com>
15839 Hristian Kirtchev <kirtchev@adacore.com>
15840 Javier Miranda <miranda@adacore.com>
15841 Ed Schonberg <schonberg@adacore.com>
15843 * sem_ch8.adb: Minor error msg rewording
15844 (Undefined): When checking for misspellings, invert arguments (to get
15845 expected and found set right)
15846 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15847 (Analyze_Generic_Renaming): Same fix
15848 (Use_One_Package): Do not take into account the internal entities of
15849 abstract interfaces during the analysis of entities that are marked
15850 as potentially use-visible.
15851 (Find_Type): Handle the case of an attribute reference for
15852 implementation defined attribute Stub_Type (simply let the analysis of
15853 the attribute reference rewrite it).
15854 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15855 type that appears in a Use_Type clause.
15856 (Analyze_Object_Renaming): Add support for renaming of the Priority
15858 (Find_Type): In Ada 2005, a task type can be used within its own body,
15859 when it appears in an access definition.
15860 (Analyze_Object_Renaming): Remove warning on null_exclusion.
15861 (Analyze_Object_Renaming): Introduce checks for required null exclusion
15862 in a formal object declaration or in a subtype declaration.
15863 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15864 (Check_Null_Exclusion): New local routine to
15865 Analyze_Subprogram_Renaming. Check whether the formals and return
15866 profile of a renamed subprogram have required null exclusions when
15867 their counterparts of the renaming already impose them.
15868 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15869 Determine whether an entity is inside a generic scope.
15870 (In_Open_Scope): First pass of documentation update.
15871 (Find_Expanded_Name): Add support for shadow entities associated with
15872 limited withed packages. This is required to handle nested packages.
15873 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15874 that makes a renaming of a limited withed package illegal.
15876 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15877 Ed Schonberg <schonberg@adacore.com>
15879 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15880 Check_Overriding_Indicator.
15881 (Analyze_Task_Definition): Ditto.
15882 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
15883 (Check_Overriding_Indicator): To find overridden interface operation,
15884 examine only homonyms that have an explicit subprogram declaration, not
15885 inherited operations created by an unrelated type derivation.
15886 (Check_Overriding_Indicator): When checking for the presence of "null"
15887 in a procedure, ensure that the queried node is a procedure
15889 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
15890 type when the formal is an access to variable.
15891 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
15892 (Analyze_Task_Type): Same addition
15893 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
15894 provide navigation capabilities for entries.
15896 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15897 Ed Schonberg <schonberg@adacore.com>
15898 Javier Miranda <miranda@adacore.com>
15899 Gary Dismukes <dismukes@adacore.com>
15901 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
15902 inherited from an interface ancestor by another interface in the
15903 context of an instance as 'late'.
15904 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
15905 of a call to a function that dispatches on access result.
15906 (Check_Dispatching_Operation): In case of late overriding of a primitive
15907 that covers abstract interface subprograms we register it in all the
15908 secondary dispatch tables associated with abstract interfaces.
15909 (Check_Dispatching_Call): Add check that a dispatching call is not made
15910 to a function with a controlling result of a limited type. This is a
15911 current implementation restriction.
15912 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
15913 (Check_Dispatching_Operation): Do no emit a warning if the controlling
15914 argument is an interface type that is a generic formal.
15915 (Is_Interface_Subprogram): Removed.
15916 (Check_Dispatching_Operation): If the subprogram is not a dispatching
15917 operation, check the formals to handle the case in which it is
15918 associated with an abstract interface type.
15920 2006-10-31 Robert Dewar <dewar@adacore.com>
15921 Ed Schonberg <schonberg@adacore.com>
15923 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
15924 Add new calls to this procedure during traversal
15925 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
15926 another unit if expansion is disabled.
15928 2006-10-31 Robert Dewar <dewar@adacore.com>
15930 * sem_eval.adb (Compile_Time_Compare): Make use of information from
15931 Current_Value in the conditional case, to evaluate additional
15932 comparisons at compile time.
15934 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15935 Hristian Kirtchev <kirtchev@adacore.com>
15936 Javier Miranda <miranda@adacore.com>
15938 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
15939 subprogram type to provide better diagnostics in case of ambiguity.
15940 (Covers): Handle coverage of formal and actual anonymous access types in
15941 the context of generic instantiation.
15942 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
15943 abstract interface types; this is required to handle concurrent types
15944 with discriminants and abstract interface types.
15945 (Covers): Include type coverage of both regular incomplete subtypes and
15946 incomplete subtypes of incomplete type visibles through a limited with
15949 2006-10-31 Robert Dewar <dewar@adacore.com>
15950 Hristian Kirtchev <kirtchev@adacore.com>
15951 Ed Schonberg <schonberg@adacore.com>
15953 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
15954 messages for entities in packages which are not used.
15955 (Collect_Synchronized_Interfaces): New procedure.
15956 (Overrides_Synchronized_Primitive): New function.
15957 (Denotes_Discriminant): Extend predicate to apply to task types.
15958 Add missing continuation marks in error msgs
15959 (Unqualify): New function for removing zero or more levels of
15960 qualification from an expression. There are numerous places where this
15961 ought to be used, but we currently only deal properly with zero or one
15963 (In_Instance); The analysis of the actuals in the instantiation of a
15964 child unit is not within an instantiation, even though the parent
15965 instance is on the scope stack.
15966 (Safe_To_Capture_Value): Exclude the case of variables that are
15968 (Check_Obsolescent): Removed
15969 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
15970 is an aliased view, even when rewritten as a reference to the target
15971 object in an assignment.
15972 (Get_Subprogram_Entity): New function
15973 (Known_To_Be_Assigned): New function
15974 (Type_Access_Level): Compute properly the access level of a return
15975 subtype that is an anonymous access type.
15976 (Explain_Limited_Type): Correct use of "\" for continuation messages.
15977 (Is_Transfer): The new extended_return_statement causes a transfer of
15979 (Has_Preelaborable_Initialization): New function
15980 (Has_Null_Exclusion): New function. Given a node N, determine whether it
15981 has a null exclusion depending on its Nkind.
15982 Change Is_Lvalue to May_Be_Lvalue
15983 (May_Be_Lvalue): Extensive additional code to deal with subprogram
15984 arguments (IN parameters are not Lvalues, IN OUT parameters are).
15985 (Safe_To_Capture_Value): Extend functionality so it can be used for
15986 the current value condition case.
15987 (Has_Compatible_Alignment): New function
15988 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
15989 objects to handle the Ada 2005 case, where aliasedness no longer implies
15990 that the object is constrained. In particular, for dereferenced names,
15991 the designated object must be assumed to be unconstrained.
15992 (Kill_Current_Values): Properly deal with the case where we encounter
15993 a loop in the scope chain.
15994 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
15996 (Compile_Time_Constraint_Error): Improve error message in error case
15998 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
15999 associated with entities of abstract interface primitives.
16000 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16002 2006-10-31 Robert Dewar <dewar@adacore.com>
16004 * s-osinte-tru64.adb:
16005 Mark Asm statements Volatile to prevent warnings (seems a
16006 reasonable change anyway)
16009 * s-mastop-irix.adb: Add Volatile to Asm statements
16010 Suppresses warning, and seems appropriate in any case
16012 * s-osinte-vms.adb: Add Volatile to Asm statement
16014 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16016 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16018 Add call to Check_Code_Statement
16020 2006-10-31 Robert Dewar <dewar@adacore.com>
16021 Ed Schonberg <schonberg@adacore.com>
16022 Bob Duff <duff@adacore.com>
16024 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16025 Synchronized_Present): Add Formal_Derived_Type_Definition and
16026 Private_Extension_Declaration to the list of assertions.
16027 (Is_Entry_Barrier_Function): New flag
16028 (Has_Self_Reference): New flag on aggregates, to indicate that they
16029 contain a reference to the enclosing type, inserted through a default
16031 (Next_Rep_Item): Move from Node4 to Node5.
16032 (Entity): Add this field for N_Attribute_Definition_Clause.
16033 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16034 (N_Return_Object_Declaration): Remove this node kind. We now use
16035 N_Object_Declaration instead.
16036 (Actual_Designated_Subtype): Move to a different place to make room in
16037 N_Extended_Return_Statement.
16038 (Procedure_To_Call): Move to a different place to make room in
16039 N_Extended_Return_Statement.
16040 (Return_Type): Removed this field to make room in return statements
16042 (Return_Statement_Entity): New field in return statements, in part to
16043 replace Return_Type, and in part to support the fact that return
16044 statements are now pushed on the scope stack during semantic analysis.
16045 (Return_Object_Declarations): New field to support extended return
16047 (N_Extended_Return_Statement): New node for extended_return_statement
16049 (N_Return_Object_Declaration): New node for part of
16050 extended_return_statement nonterminal. Needed because all the necessary
16051 fields won't fit in N_Extended_Return_Statement.
16052 Generic_associations now carry the Box_Present flag, to indicate a
16053 default for an actual in a partially parametrized formal package.
16055 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16056 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16057 and for the new predefined dispatching policies: EDF_Across_Priorities,
16058 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16059 Introduce new name Stub_Type for implementation defined attribute.
16060 Add pragma Preelaborable_Initialization
16061 Add entry for Priority attribute.
16062 Add Pragma_Wide_Character_Encoding
16063 (Get_Convention_Name): Given a convention id, this function returns the
16064 corresponding name id from the names table.
16066 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16067 Robert Dewar <dewar@adacore.com>
16068 Bob Duff <duff@adacore.com>
16070 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16071 print null exclusion twice in the case of an access definition,
16072 Implement new -gnatL switch
16073 Remove N_Return_Object_Declaration. We now use
16074 N_Object_Declaration instead. Implement the case for
16075 N_Extended_Return_Statement. Alphabetize the cases.
16076 Add cases for new nodes N_Extended_Return_Statement and
16077 N_Return_Object_Declaration. The code is not yet written.
16078 Update the output for N_Formal_Object_Declaration
16079 and N_Object_Renaming_Declaration.
16080 (Write_Itype): Account for the case of a modular integer subtype whose
16081 base type is private.
16083 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16085 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16086 Remove elaboration code, now done in the binder.
16088 * s-rident.ads: Make this unit Preelaborate.
16089 (No_Restrictions): New constant used to clean up code and follow
16090 preelaborate constraints.
16093 Add System.Restrictions dependence, referenced directly from the
16094 binder generated file.
16096 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16098 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16099 True when AAMP extended floating-point is in use (48-bit). Change type
16100 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16101 the two byte array types on AFloat. Change type of IV_Ilf overlay
16102 variable from Byte8 to ByteLF. Add appropriate initializations of
16103 floating-point overlays for AAMP cases.
16105 2006-10-31 Javier Miranda <miranda@adacore.com>
16107 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16108 (Get_Ceiling): New subprogram that returns
16109 the ceiling priority of the protected object.
16110 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16111 the protected object.
16113 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16115 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16117 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16119 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16120 requeuing to the same protected object to give higher priority tasks
16121 the opportunity to execute.
16123 2006-10-31 Robert Dewar <dewar@adacore.com>
16125 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16126 add more precise check for the character sequence that follows '[' to
16127 avoid possible confusion in case if '[' is the last character of a
16129 (Scan_Wide): Always allow brackets encoding
16131 2006-10-31 Olivier Hainque <hainque@adacore.com>
16133 * s-stchop.ads: make this unit preelaborate. This is desirable in
16134 general and made mandatory by the use of this unit by s-taprop which
16135 is itself preelaborate.
16137 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16138 Td_Events component.
16140 2006-10-31 Vincent Celier <celier@adacore.com>
16142 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16145 2006-10-31 Vincent Celier <celier@adacore.com>
16147 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16149 2006-10-31 Vincent Celier <celier@adacore.com>
16151 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16153 (Check_Compilation_Needed): When checking a C or C++ source, do not
16154 resolve symbolic links.
16155 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16156 When not in verbose mode and Ellipse is True, display "..." for the
16157 first argument with Display set to False.
16158 (Build_Global_Archive): Always set Display True for the first object
16159 file. Call Display_Command with Ellipse set to True.
16161 2006-10-31 Matt Heaney <heaney@adacore.com>
16163 * a-crbtgo.ads: Commented each subprogram
16165 * a-crbtgo.adb: Added reference to book from which algorithms were
16168 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16169 indicate which child.
16170 (Generic_Conditional_Insert): changed parameter name from "Success" to
16172 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16174 * a-coorse.adb (Replace_Element): changed parameter name in call to
16175 conditional insert operation.
16177 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16179 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16182 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16183 conditional insert operation.
16185 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16188 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16189 instead of mode inout.
16191 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16193 (Generic_Read): preserve existing buckets array if possible
16194 (Generic_Write): don't send buckets array length anymore
16196 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16197 instead of mode inout.
16199 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16200 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16202 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16203 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16204 (Replace_Element): local operation is now an instantiation
16206 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16207 check current length.
16208 (Generic_Replace_Element): new operation
16210 2006-10-31 Doug Rupp <rupp@adacore.com>
16212 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16213 Call TBK$SYMBOLIZE without omitting parameters.
16215 2006-10-31 Vincent Celier <celier@adacore.com>
16217 * symbols-processing-vms-ia64.adb,
16218 symbols-processing-vms-alpha.adb (Process): Do not include symbols
16219 that come from generic instantiations in bodies.
16221 2006-10-31 Pat Rogers <rogers@adacore.com>
16223 * a-rttiev.ads, a-rttiev.adb:
16224 This is a significant redesign primarily for the sake of automatic
16225 timer task termination but also to fix a design flaw.
16226 Therefore we are now using an RTS lock, instead of a protected
16227 object, to provide mutual exclusion to the queue of pending events
16228 and the type Timing_Event is no longer a protected type.
16230 2006-10-31 Robert Dewar <dewar@adacore.com>
16231 Cyrille Comar <comar@adacore.com>
16232 Ben Brosgol <brosgol@adacore.com>
16234 * debug.adb: Update flags documentation
16236 * gnat_ugn.texi: Add documentation for new -gnatwq switch
16237 Clean up documentation for several other warning switches
16238 Clarify how task stack size can be specified with various
16239 versions of Windows.
16240 Add note that -gnatVo includes ranges including loops
16241 Add documentation for -gnatL switch
16242 Add note on elaboration warning for initializing variables
16243 Add documentation for new -gnatwt warning switch
16244 Document new form of pragma Warnings (On|Off, string)
16245 Add comment on use of pragma Warnings to control warnings
16246 Add documentation for -gnatjnn switch
16247 Modify section on interfacing with C for VMS 64-bit.
16248 Add doc for -gnatVe/E
16249 Add documentation of new warning flags -gnatww/-gnatwW
16250 Add warnings about address clause overlays to list of warnings
16251 (Exception Handling Control): Document that the option --RTS must be
16252 used consistently for gcc and gnatbind.
16253 Clarify that inlining is not always possible
16254 Update documentation on pragma Unchecked_Union.
16257 Add documentation for new extended version of pragma Obsolescent
16258 Add documentation for implementation defined attribute 'Stub_Type.
16259 Add note on use of Volatile in asm statements
16260 Add documentation on use of pragma Unreferenced in context clause
16261 Document new form of pragma Warnings (On|Off, pattern)
16262 Document pragma Wide_Character_Encoding
16263 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16264 enforced if code generation is active.
16265 Add section on pragma Suppress to document GNAT specific check
16267 Clarify difference between No_Dispatching_Calls & No_Dispatch.
16268 Add documentation for pragma Restrictions (No_Elaboration_Code)
16271 Add comments on layout of subprogram local variables in the
16272 presence of nested subprograms.
16274 * ug_words: Resync.
16276 * elists.ads: Minor reformatting
16277 Node returns Node_Or_Entity_Id (doc change only)
16279 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16281 * g-arrspl.ads (Create): Update comments.
16283 * sem.ads: Add details on the handling of the scope stack.
16285 * usage.adb: Update documentation.
16287 * validsw.ads, validsw.adb:
16288 Add definition of Validity_Check_Components and implement -gnatVe/E
16290 * vms_data.ads: Add missing VMS qualifiers.
16292 * s-addope.ads: Add documentation on overflow and divide by zero
16294 2006-10-31 Robert Dewar <dewar@adacore.com>
16295 Thomas Quinot <quinot@adacore.com>
16296 Arnaud Charlet <charlet@adacore.com>
16298 * fmap.adb: Put routines in alpha order
16300 * g-boumai.ads: Remove redundant 'in' keywords
16302 * g-cgi.adb: Minor reformatting
16304 * g-cgi.ads: Remove redundant 'in' keywords
16306 * get_targ.adb: Put routines in alpha order
16308 * prj-attr.ads: Minor reformatting
16310 * s-atacco.ads: Minor reformatting
16312 * scn.adb: Put routines in alpha order
16314 * sinput-l.adb: Minor comment fix
16316 * sinput-p.adb: Minor comment fix
16318 * s-maccod.ads: Minor reformatting
16320 * s-memory.adb: Minor reformatting
16322 * s-htable.adb: Fix typo in comment.
16324 * s-secsta.adb: Minor comment update.
16326 * s-soflin.adb: Minor reformatting
16329 Add comment about odd qualification in Storage_Offset declaration
16332 Remove unnecessary 'in' keywords for formal parameters.
16334 * treeprs.adt: Minor reformatting
16336 * urealp.adb: Put routines in alpha order
16338 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16341 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16343 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16345 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16346 workaround as on other platforms.
16348 * g-eacodu-vms.adb: Remove redundant 'in' keywords
16349 * g-expect-vms.adb: Remove redundant 'in' keywords
16351 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16352 clear error message if the list-of-files file cannot be opened.
16354 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16355 equality operator is always visible.
16357 * lang.opt: Woverlength-strings: New option.
16360 Update copyright, since nmake.ads and nmake.adb have changed.
16362 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16363 (Binder_Output_Time_Stamps_Set): removed.
16364 (Old_Binder_Output_Time_Stamp): idem.
16365 (New_Binder_Output_Time_Stamp): idem.
16366 (Recording_Time_From_Last_Bind): idem.
16367 (Recording_Time_From_Last_Bind): Make constant.
16369 * output.ads, output.adb (Write_Str): Allow LF characters
16370 (Write_Spaces): New procedure
16372 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16374 * inline.adb: Minor reformatting
16376 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16378 * s-mastop-vms.adb: Remove redundant 'in' keywords
16380 * s-osprim-vms.adb: Remove redundant 'in' keywords
16382 * s-trafor-default.adb: Remove redundant 'in' keywords
16384 * 9drpc.adb: Remove redundant 'in' keywords
16386 * s-osinte-mingw.ads: Minor reformatting
16388 * s-inmaop-posix.adb: Minor reformatting
16390 * a-direio.ads: Remove quotes from Compile_Time_Warning message
16392 * a-exexda.adb: Minor code reorganization
16394 * a-filico.adb: Minor reformatting
16396 * a-finali.adb: Minor reformatting
16398 * a-nudira.ads: Remove quote from Compile_Time_Warning message
16400 * a-numeri.ads: Minor reformatting
16402 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16404 * exp_pakd.ads: Fix obsolete comment
16406 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16407 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16408 Probably not a bug, but certainly neater and more efficient.
16410 * a-tienio.adb: Minor reformatting
16412 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16413 Avoid assuming low bound of string is 1.
16415 * gnatbind.adb: Change Bindusg to package and rename procedure as
16416 Display, which now ensures that it only outputs usage information once.
16417 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16419 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16422 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16424 (Match): Add pragma Assert to ensure that Matches'First is zero
16426 * g-regpat.ads (Match): Document that Matches lower bound must be zero
16428 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16429 documented preconditions (also kills warnings about bad indexes).
16431 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16433 (Build_Import_Library): Ditto;
16435 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16437 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16439 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16440 lower bound of choice table is 1.
16442 * sem_case.ads (Analyze_Choices): Document that lower bound of
16445 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16448 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16449 and add appropriate Assert pragma to suppress warnings.
16451 * atree.h, atree.ads, atree.adb
16452 Change Elist24 to Elist25
16453 Add definitions of Field28 and Node28
16454 (Traverse_Field): Use new syntactic parent table in sinfo.
16456 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16458 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16460 * exp_tss.adb: Put routines in alpha order
16462 * fe.h: Remove redundant declarations.
16464 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
16466 * utils.c (builtin_function): Rename to gnat_builtin_function.
16467 Move common code to add_builtin_function.
16468 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16469 gnat_builtin_function.
16470 * gigi.h (builtin_function): Rename to gnat_builtin_function.
16471 Change the signature.
16473 2006-10-16 Brooks Moses <bmoses@stanford.edu>
16475 * Makefile.in: Add TEXI2PDF definition.
16476 * Make-lang.in: Add "ada.pdf" target.
16478 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
16480 * decl.c, utils.c: Fix comment typos.
16481 * utils.c: Fix a typo.
16483 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
16485 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16486 on "pure" Ada subprograms if SJLJ exceptions are used.
16487 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16488 on the declaration node of JMPBUF_SAVE.
16489 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16490 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16491 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16493 2006-08-20 Laurent Guerby <laurent@guerby.net>
16496 g-socket.adb (Bind_Socket): Call Set_Address.
16498 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
16501 * decl.c (same_discriminant_p): New static function.
16502 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16503 subtype and we have discriminants, fix up the COMPONENT_REFs
16504 for the discriminants to make them reference the corresponding
16505 fields of the parent subtype after it has been built.
16507 2006-09-15 Roger Sayle <roger@eyesopen.com>
16510 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16511 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16513 2006-09-13 Olivier Hainque <hainque@adacore.com>
16516 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16517 of a SAVE_EXPR, just make the operand addressable/not-readonly and
16518 let the common gimplifier code make and propagate a temporary copy.
16519 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16520 out/in-out actuals and defer setting the addressable/readonly bits
16523 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16526 * decl.c (components_to_record): Defer emitting debug info for the
16527 record type associated with the variant until after we are sure to
16530 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16533 * gigi.h (gnat_internal_attribute_table): Declare.
16534 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16535 * utils.c (gnat_internal_attribute_table): New global variable.
16536 (builtin_function): Always call decl_attributes on the builtin.
16537 (handle_const_attribute): New static function.
16538 (handle_nothrow_attribute): Likewise.
16540 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16542 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16544 2006-06-23 Olivier Hainque <hainque@adacore.com>
16546 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16547 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16549 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
16550 Eric Botcazou <ebotcazou@adacore.com>
16553 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
16554 check-gnat into check-acats.
16556 2006-06-17 Karl Berry <karl@gnu.org>
16558 * gnat-style.texi (@dircategory): Use "Software development"
16559 instead of "Programming", following the Free Software Directory.
16561 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16564 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16566 2006-06-06 Laurent Guerby <laurent@guerby.net>
16569 mlib-utl.adb: Use Program_Name.
16571 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
16573 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16574 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16575 trans.c, utils.c: Fix comment typos. Follow spelling
16577 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
16580 2006-05-19 Nicolas Setton <setton@adacore.com>
16582 * misc.c (gnat_dwarf_name): New function.
16583 (LANG_HOOKS_DWARF_NAME): Define to it.
16585 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
16587 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16588 (ada/misc.o): Likewise.
16589 (ada/utils.o): Likewise.
16591 2006-04-08 Aurelien Jarno <aurel32@debian.org>
16593 * Makefile.in: Add Ada support for GNU/kFreeBSD.
16594 * s-osinte-kfreebsd-gnu.ads: New file.
16596 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
16598 * Make-lang.in: Rename docdir to gcc_docdir.
16600 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
16602 * gigi.h (get_ada_base_type): Delete.
16603 * utils2.c (get_ada_base_type): Likewise.
16604 * trans.c (convert_with_check): Operate in the real base type.
16606 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16608 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16610 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16612 * utils.c (create_var_decl): Use have_global_bss_p when deciding
16613 whether to make the decl common.
16615 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16617 * Make-lang.in (Ada): Remove.
16618 (.PHONY): Remove Ada
16620 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16622 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16623 aggregate, check the interpretations of the other operand to find one
16624 that may be a boolean array.
16626 (Analyze_Selected_Component): Fix flow-of-control typo in case where
16627 the prefix is a private extension.
16629 2006-02-17 Eric Botcazou <botcazou@adacore.com>
16632 * utils2.c (find_common_type): If both input types are BLKmode and
16633 have the same constant size, keep using the first one.
16635 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16637 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16639 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16641 2006-02-17 Jose Ruiz <ruiz@adacore.com>
16643 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16644 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
16645 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
16646 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16647 Abort_Defer/Undefer pairs to avoid the possibility of a task being
16648 aborted while owning a lock.
16650 2006-02-17 Javier Miranda <miranda@adacore.com>
16651 Robert Dewar <dewar@adacore.com>
16653 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16654 through an access to class-wide interface we force the displacement of
16655 the pointer to the allocated object to reference the corresponding
16656 secondary dispatch table.
16657 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16658 if Long_Shifts are supported on the target, even if 64 bit divides
16659 are not supported (configurable run time mode).
16660 (Expand_N_Type_Conversion): Do validity check if validity checks on
16661 operands are enabled.
16662 (Expand_N_Qualified_Expression): Do validity check if validity checks
16663 on operands are enabled.
16665 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16667 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16668 must be materialized when the renamed expression is an explicit
16671 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16673 * freeze.adb (Statically_Discriminated_Components): Return false if
16674 the bounds of the type of the discriminant are not static expressions.
16676 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16677 the bounds of the discriminant type are not static.
16679 2006-02-17 Robert Dewar <dewar@adacore.com>
16681 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16682 then we close To if it is valid.
16684 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16686 * init.c (facility_resignal_table): new array
16687 (__gnat_default_resignal_p): enhance default predicate to resignal if
16688 VMS condition has one of the predefined facility codes.
16690 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16692 * Makefile.in: Use VMS64 specialized versions of several units in
16693 Interfaces.C hierarchy to be compatible with HP C default size choices.
16694 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16696 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16698 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16699 instantiation, the corresponding entity is the related_instance of the
16700 wrapper package created for the instance.
16702 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16704 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16705 the current instance is nested within another instance in a child unit.
16707 2006-02-17 Javier Miranda <miranda@adacore.com>
16708 Ed Schonberg <schonberg@adacore.com>
16710 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16711 type we cannot inherit the primitive operations; we inherit the
16712 Corresponding_Record_Type (which has the list of primitive operations).
16713 (Check_Anonymous_Access_Types): When creating anonymous access types for
16714 access components, use Rewrite in order to preserve the tree structure,
16716 (Analyze_Object_Declaration): For limited types with access
16717 discriminants with defaults initialized by an aggregate, obtain
16718 subtype from aggregate as for other mutable types.
16719 (Derived_Type_Declaration): If the derived type is a limited interface,
16720 set the corresponding flag (Is_Limited_Record is not sufficient).
16722 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16724 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16725 to inline a function that returns an unconstrained type, the return
16726 expression must be the first variable declared in the body of the
16729 2006-02-17 Javier Miranda <miranda@adacore.com>
16731 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16732 abstract interface type, the static analysis is not enough to know if
16733 the interface is implemented or not by the source tagged type. Hence
16734 we must pass the work to the expander to generate the required code to
16735 evaluate the conversion at run-time.
16736 (Resolve_Equality_Op): Do not apply previous
16737 transformation if expansion is disasbled, to prevent anomalies when
16738 locating global references in a generic unit.
16740 2006-02-17 Vincent Celier <celier@adacore.com>
16742 * snames.ads, snames.adb: New standard names for new project attributes:
16743 archive_builder, archive_indexer, compiler_pic_option,
16744 config_body_file_name, config_body_file_name_pattern,
16745 config_file_switches, config_file_unique, config_spec_file_name,
16746 config_spec_file_name_pattern, default_builder_switches,
16747 default_global_compiler_switches, default_language,
16748 dependency_file_kind, global_compiler_switches, include_path,
16749 include_path_file, language_kind, linker_executable_option,
16750 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16751 roots, runtime_project.
16753 2006-02-17 Matthew Heaney <heaney@adacore.com>
16755 * a-convec.ads, a-convec.adb:
16756 (operator "&"): handle potential overflow for large index types
16757 (Insert): removed Contraint_Error when using large index types
16758 (Insert_Space): removed Constraint_Error for large index types
16759 (Length): moved constraint check from Length to Insert
16761 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16762 as not null access.
16763 Explicit raise statements now include an exception message.
16764 (operator "&"): handle potential overflow for large index types
16765 (Insert): removed Contraint_Error when using large index types
16766 (Insert_Space): removed Constraint_Error for large index types
16767 (Length): moved constraint check from Length to Insert
16769 2006-02-17 Robert Dewar <dewar@adacore.com>
16771 * s-wchcnv.adb: Document handling of [ on output (we do not change
16772 this to ["5B"] and the new comments say why not.
16775 Add note for -gnatVo that this now includes the cases of type
16776 conversions and qualified expressions.
16777 Add comments on handling of brackets encoding for Text_IO
16779 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
16780 Thomas Quinot <quinot@adacore.com>
16781 Robert Dewar <dewar@adacore.com>
16782 Javier Miranda <miranda@adacore.com>
16784 * expander.adb: Fix typo in comment
16786 * exp_pakd.adb: Fix typo
16787 Minor comment reformatting.
16789 * g-dyntab.adb: Minor reformatting
16791 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16792 aliased subprograms to look for the abstract interface subprogram.
16794 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
16796 * env.c (__gnat_setenv): Use size_t.
16797 (__gnat_unsetenv): Likewise.
16798 (__gnat_clearenv): Likewise.
16800 2006-02-16 Arnaud Charlet <charlet@adacore.com>
16802 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16804 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16806 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16807 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16808 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16809 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16810 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16811 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16812 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16813 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16814 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16817 2006-02-13 Jose Ruiz <ruiz@adacore.com>
16819 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16820 protection against race conditions is not needed.
16821 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16823 (Set_Specific_Handler): Add mutual exclusive access to the specific
16825 (Specific_Handler): Add mutual exclusive access for retrieving the
16828 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16831 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16832 Fall_Back_Handler and Specific_Handler.
16834 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16835 termination handlers.
16836 Set two different owerflow depending on the maximal stack size.
16838 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16839 protection against race conditions is not needed when executing the
16840 task termination handler.
16842 2006-02-13 Robert Dewar <dewar@adacore.com>
16844 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16845 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16846 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16847 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16848 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16849 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16850 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16851 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16852 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16853 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16854 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16855 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16856 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16857 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16858 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16859 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16860 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16861 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16862 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16863 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16864 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16865 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16866 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16867 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16868 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16869 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16870 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16871 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16872 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16873 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16874 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16875 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16876 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16877 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16880 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16882 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
16883 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
16884 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
16885 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
16886 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
16887 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
16888 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
16889 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
16890 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
16892 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16894 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
16895 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
16896 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
16897 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
16898 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
16899 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
16900 replaced by anonymous access type.
16901 (pthread_sigmask): Now take an access sigset_t
16903 * s-osinte-hpux.ads: Ditto.
16904 (pthread_mutex_t, pthread_cond_t): Update definitions to support
16905 properly 32 and 64 bit ABIs.
16907 2006-02-13 Pascal Obry <obry@adacore.com>
16909 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
16910 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
16911 s-taprop-linux.adb, s-taprop-solaris.adb,
16912 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
16913 adjustement is already done when calling this routine.
16915 2006-02-13 Pascal Obry <obry@adacore.com>
16917 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
16918 table to take advantage of the 16 priority levels available on Windows
16919 2000 and XP. On NT4 there are only 7 priority levels, this is properly
16920 supported by this new mapping.
16922 2006-02-13 Nicolas Setton <setton@adacore.com>
16924 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
16925 (get_encoding): New subprogram. Extracts the encodings from an encoded
16928 2006-02-13 Pascal Obry <obry@adacore.com>
16929 Nicolas Roche <roche@adacore.com>
16930 Arnaud Charlet <charlet@adacore.com>
16932 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
16934 (__gnat_try_lock): Add unicode support by using a specific section on
16936 (__gnat_get_current_dir): Idem.
16937 (__gnat_open_read): Idem.
16938 (__gnat_open_rw): Idem.
16939 (__gnat_open_create): Idem.
16940 (__gnat_create_output_file): Idem.
16941 (__gnat_open_append): Idem.
16942 (__gnat_open_new): Idem.
16943 (__gnat_file_time_name): Idem.
16944 (__gnat_set_file_time_name): Idem.
16945 (__gnat_stat): Idem.
16946 (win32_no_block_spawn): Idem.
16947 (__gnat_locate_exec_on_path): Idem.
16948 (__gnat_opendir): New routine.
16949 (__gnat_closedir): Idem.
16950 (__gnat_readdir): Add new parameter length (pointer to int). Update
16951 implementation to use it and add specific Win32 code for Unicode
16953 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
16954 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
16955 (convert_addresses): Do not define this dummy routine on VMS.
16957 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
16958 runtime Unicode support will be activated.
16959 (S2WS): String to Wide-String conversion. This version just copy a
16960 string in non Unicode version.
16961 (WS2S): Wide-String to String conversion. This version just copy a
16962 string in non Unicode version.
16964 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
16965 (Open): Now import __gnat_opendir from adaint.c.
16966 (Read): Change the implementation to support unicode characters. It is
16967 not possible to use strlen() on Windows as this version supports only
16968 standard ASCII characters. So the length of the directory entry is now
16969 returned from the imported __gnat_readdir routine.
16970 Update copyright notice.
16972 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
16973 (opendir): Moved to adaint.c.
16975 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
16976 (Get_Directory): Fix wrong indexing.
16977 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
16978 __gnat_getenv from env.c
16979 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
16982 * env.h, env.c: New file.
16984 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
16985 adaint.c by __gnat_getenv from env.c
16987 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
16988 adaint.c by __gnat_getenv from env.c
16990 * Make-lang.in: Add env.o in the list of C object needed by gnat1
16992 Update dependencies.
16994 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16995 Olivier Hainque <hainque@adacore.com>
16996 Eric Botcazou <ebotcazou@adacore.com>
16998 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17000 * gigi.h (value_factor_p): Add prototype and description, now public.
17002 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17003 promotion for field with rep clause if the associated size was proven
17005 Expand comments describing attempts to use a packable type.
17006 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17007 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17008 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17009 necessary since these are not different types and pointers may
17010 actually designate any subtype in this hierarchy.
17011 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17012 discriminants but put them into record only if not Unchecked_Union;
17013 pass flag to components_to_record showing Unchecked_Union.
17014 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17015 components before variants; don't set TYPE_UNCHECKED_UNION_P.
17016 (components_to_record): New argument UNCHECKED_UNION.
17017 Remove special case code for Unchecked_Union and instead use main code
17018 with small changes.
17021 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17022 variable with the expression being built, only its inner field.
17024 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17025 emit_sequence_entry_statements.
17026 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17027 (establish_gnat_vms_condition_handler): Move before
17028 Subprogram_Body_to_gnu.
17029 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17030 for a subprogram if it has a foreign convention or is exported.
17031 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17032 substituted for a CONST_DECL.
17033 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17034 Etype to assoc_to_constructor.
17035 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17036 discriminants of Unchecked_Union.
17037 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17038 don't need cluttering preprocessor directives.
17039 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17040 condition handler as current in the compiled function.
17041 (body_with_handlers_p): New function. Tell whether a given sequence of
17042 statements node is attached to a package or subprogram body and involves
17043 exception handlers possibly nested within inner block statements.
17044 (emit_sequence_entry_statements): New function, to emit special
17045 statements on entry of sequences when necessary. Establish GNAT
17046 condition handler in the proper cases for VMS.
17047 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17048 emit_sequence_entry_statements.
17050 * utils2.c (find_common_type): If both input types are BLKmode and
17051 have a constant size, use the smaller one.
17052 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17055 * utils.c (value_factor_p): Make public, to allow uses from other gigi
17057 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17058 (convert, case UNION_TYPE): Remove special treatment for unchecked
17062 (update_pointer_to): Update variants of pointer types to unconstrained
17063 arrays by attaching the list of fields of the main variant.
17065 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17066 Robert Dewar <dewar@adacore.com>
17068 * a-exexpr.adb, a-exexpr-gcc.adb
17069 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17070 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17071 Remove code unused for exception propagation for the compiler itself
17072 from a-except.adb and update to still share separate packages.
17074 * a-except.ads, a-except.adb: Ditto.
17075 Add comments that this version is now used only by the compiler and
17076 other basic tools. The full version that includes the Ada 2005 stuff
17077 is in separate files a-except-2005.ads/adb. The reason is that we do
17078 not want to cause bootstrap problems with compilers not recognizing
17080 Add exception reason code PE_Implicit_Return
17081 Add new exception reason code (Null Exception_Id)
17083 * a-except-2005.adb, a-except-2005.ads: New files.
17085 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17087 * s-wchcon.adb: New file.
17089 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17090 (traceback.o deps): Likewise.
17091 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17092 Activate build of GMEM instrumentation library on VMS targets.
17093 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17094 Use a-except-2005.ads/adb for all run-time library builds unless
17095 specified otherwise.
17096 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17097 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17098 Use s-parame.adb on all native platforms.
17099 Use s-parame-vxworks.adb on all vxworks platforms.
17100 Add env.c env.h in LIBGNAT_SRCS
17101 Add env.o in LIBGNAT_OBJS
17102 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17103 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17104 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17105 supports VxWorks 6 RTPs.
17106 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17107 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17109 * types.h, types.ads (Terminate_Program): New exception
17110 Add comment on modifying multiple versions of a-except.adb when the
17111 table of exception reasons is modified.
17112 Add exception reason code PE_Implicit_Return
17113 Add new exception reason code (Null Exception_Id)
17115 * clean.adb (Initialize): Get the target parameters before checking
17116 if target is OpenVMS. Move the OpenVMS specific code here from package
17117 body elaboration code.
17119 2006-02-13 Thomas Quinot <quinot@adacore.com>
17120 Vincent Celier <celier@adacore.com>
17121 Robert Dewar <dewar@adacore.com>
17123 * ali-util.adb (Get_File_Checksum): Update to account for change in
17124 profile of Initialize_Scanner.
17126 * gprep.adb (Gnatprep): Update to account for change in profile of
17127 Initialize_Scanner.
17128 (Process_One_File): Same.
17130 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17131 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17132 that behaviour using the new Unit information recorded in the source
17133 files table, rather than going through all units every time.
17134 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17135 (Get_Source_Unit): Same.
17137 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17138 change in profile of Initialize_Scanner.
17139 (Prepare_To_Preprocess): Same.
17141 * lib.ads: Fix typo in comment (templace -> template).
17143 * prj-part.adb (Parse_Single_Project): Update to account for change in
17144 profile of Initialize_Scanner.
17146 * scn.adb (Initialize_Scanner): Account for change in profile of
17147 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17148 Also record the association of the given Source_File_Index to the
17149 corresponding Unit_Number_Type.
17151 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17153 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17154 Remove Unit formal for generic scanner: this formal
17155 is only relevant to Scn (the scanner instance used to parse Ada source
17156 files), not to other instances. Update comment accordingly.
17157 (Scan): Use new function Snames.Is_Keyword_Name.
17159 * sinfo-cn.adb: Fix typo in comment.
17161 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17164 * sinput.ads (Source_File_Record): New component Unit, used to capture
17165 the unit identifier (if any) associated to a source file.
17167 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17168 Unit in Source_File_Record.
17170 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17171 in profile of Initialize_Scanner.
17173 * scans.adb (Initialize_Ada_Keywords): New procedure
17175 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17176 Ada keywords in the Namet table, without the need to call
17177 Initialize_Scanner.
17179 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17180 (Is_Keyword_Name): New function
17182 * snames.ads: Add subtype Configuration_Pragma_Names
17183 Add pragma Ada_2005 (synonym for Ada_05)
17184 (Is_Keyword_Name): New function
17186 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17188 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17190 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17193 * a-stwima.adb (To_Set): Add extra check when N = 0.
17195 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17197 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17199 * s-parame-mingw.adb, s-parame-linux.adb,
17200 s-parame-solaris.adb: Removed, replaced by s-parame.adb
17202 * s-parame-vxworks.ads: Fix typo.
17204 * s-parame-vxworks.adb: New file.
17206 * s-parame.adb: Version now used by all native platforms.
17207 (Default_Stack_Size): Use 2 megs for default stack size and use
17208 __gl_default_stack_size when available.
17209 (Minimum_Stack_Size): Use 12K.
17211 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17212 (Create_Task): Refine implementation taking advantage of the XP stack
17213 size support. On XP, we now create the thread using the flag
17214 STACK_SIZE_PARAM_IS_A_RESERVATION.
17216 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17218 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17219 XP and 0 on older Windows versions.
17221 * interfac-vms.ads: Removed, no longer used.
17223 2006-02-13 Matthew Heaney <heaney@adacore.com>
17225 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
17226 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
17227 a-cohase.adb: All explicit raise statements now include an exception
17230 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17231 (Update_Element_Preserving_Key): renamed op to just Update_Element.
17232 Explicit raise statements now include an exception message
17234 * a-cihase.ads, a-cohase.ads: Removed comment.
17236 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17237 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17238 a-szbzha.adb, a-szfzha.ads: New files.
17240 2006-02-13 Matthew Heaney <heaney@adacore.com>
17242 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17245 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17247 * lang.opt: Wvariadic-macros: New option.
17248 Wold-style-definition: Likewise.
17249 Wmissing-format-attribute: Likewise.
17251 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17252 -Wold-style-definition and -Wmissing-format-attribute.
17254 2006-02-13 Robert Dewar <dewar@adacore.com>
17256 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17258 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17260 2006-02-13 Nicolas Roche <roche@adacore.com>
17262 * a-envvar.adb, a-envvar.ads: New files.
17264 2006-02-13 Douglas Rupp <rupp@adacore.com>
17266 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17268 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17270 2006-02-13 Pat Rogers <rogers@adacore.com>
17272 * a-rttiev.adb, a-rttiev.ads: New files.
17274 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17276 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17277 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
17279 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17281 2006-02-13 Robert Dewar <dewar@adacore.com>
17283 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
17284 sem_case.adb: Minor code reorganization (not Present should be No)
17286 2006-02-13 Geert Bosch <bosch@adacore.com>
17287 Gary Dismukes <dismukes@adacore.com>
17289 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17290 0, since the lower bound of the actual string may be greater than one.
17293 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17294 layout is requested.
17296 2006-02-13 Vincent Celier <celier@adacore.com>
17298 * back_end.adb (Scan_Compiler_Arguments): Check if
17299 Search_Directory_Present is True and, if it is, add the argument in
17300 the source search directory path.
17302 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17303 Search_Directory_Present to True.
17305 2006-02-13 Joel Brobecker <brobecke@adacore.com>
17307 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17308 volatile, to tell the compiler to preserve this variable at any level
17310 (Gen_Versions_Ada): Temporarily work around codegen bug.
17312 2006-02-13 Vincent Celier <celier@adacore.com>
17314 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17315 gcc to link with option -shared-libgcc.
17316 (Gnatlink): Remove duplicate switches -shared-libgcc
17318 2006-02-13 Robert Dewar <dewar@adacore.com>
17320 * gnatvsn.ads (Current_Year): New constant, used to easily update
17321 copyright on all GNAT tools.
17323 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17326 2006-02-13 Robert Dewar <dewar@adacore.com>
17328 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17329 after hyphen (small aesthetic change useful for a range of numbers
17331 Suppress range checks for a couple of assignments which otherwise
17332 cause validity checks with validity checking turned on.
17334 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17335 Improvement in error message for object.
17336 (Rep_Item_Too_Late): Remove '!' in warning message.
17338 2006-02-13 Robert Dewar <dewar@adacore.com>
17339 Eric Botcazou <ebotcazou@adacore.com>
17341 * err_vars.ads: Suppress range checks for a couple of assignments
17342 which otherwise cause validity checks with validity checking turned on.
17345 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17346 Make message unconditional if it is a warning.
17347 (Error_Msg_NEL): Always output warning messages.
17348 Suppress range checks for a couple of assignments which otherwise
17349 cause validity checks with validity checking turned on.
17351 * errout.ads (Message Insertion Characters): Document that '!' is
17352 implied by '?' in error messages.
17354 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17355 (Gnat1drv): Use a goto to end of main subprogram instead of
17356 Exit_Program (E_Success) so that finalization can occur normally.
17358 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17360 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17363 2006-02-13 Vincent Celier <celier@adacore.com>
17365 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17366 Unchecked_Conversion functions.
17367 (Modification_Time): Use direct conversion of OS_Time to Calendar time
17368 when OpenVMS returns False.
17370 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17371 a-dirval.adb (OpenVMS): New Boolean function
17373 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17374 Thomas Quinot <quinot@adacore.com>
17376 * checks.adb (Build_Discriminant_Checks): If the expression being
17377 checks is an aggregate retrieve the values of its discriminants to
17378 generate the check, rather than creating a temporary and a reference
17380 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17381 (Install_Null_Excluding_Check): Ditto
17382 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17383 not for the renamed object, so that the actual itype is attached in the
17386 2006-02-13 Robert Dewar <dewar@adacore.com>
17387 Vincent Celier <celier@adacore.com>
17389 * debug.adb: Eliminate numeric switches for binder/gnatmake
17391 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17392 switches for the compiler.
17393 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17394 (Scan_Make_Switches): When failing with an illegal switch, output an
17395 error message with the full switch.
17396 Eliminate numeric switches for binder/gnatmake
17398 * switch.ads, switch.adb (Bad_Switch): New procedure
17400 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17401 Remove 0-9 as debug flag character possibilities
17402 -d is now controlling the primary stack size when its value is a
17403 positive. Also add checks against invalid values, and support for kb,
17404 mb. Ditto for -D switch.
17406 2006-02-13 Robert Dewar <dewar@adacore.com>
17407 Serguei Rybin <rybin@adacore.com>
17409 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17410 save/restore routines.
17411 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17412 were not always properly handled previously.
17413 Since we are changing the tree format anyway, also get rid of the
17414 junk obsolete Immediate_Errors flag.
17415 (Tree_Read): Change the way of reading Tree_Version_String - now we
17416 read the version string from the tree even if its length is not the
17417 same as the length of the version string computed from Gnatvsn.
17418 (Search_Directory_Present): New Boolean flag for the compiler.
17419 Define Tree_Version_String as a dynamic string.
17420 (Default_Stack_Size): new variable, used to handle switch -d.
17423 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17424 only for main unit.
17425 Add pragma Ada_2005 (synonym for Ada_05)
17426 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17427 were not always properly handled previously.
17429 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17430 explicit Ada_95 to Ada_2005.
17432 2006-02-13 Javier Miranda <miranda@adacore.com>
17433 Robert Dewar <dewar@adacore.com>
17434 Ed Schonberg <schonberg@adacore.com>
17436 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17437 against errors in the source program: a private types for which the
17438 corresponding full type declaration is missing and pragma CPP_Virtual
17440 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17441 (Is_Known_Null): New flag
17442 (Has_Pragma_Pure): New flag
17443 (No_Return): Present in all entities, set only for procedures
17444 (Is_Limited_Type): A type whose ancestor is an interface is limited if
17445 explicitly declared limited.
17446 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17447 entities. Only used for component marked Is_Tag. If present it stores
17448 the Offset_To_Top function used to provide this value in tagged types
17449 whose ancestor has discriminants.
17451 * exp_ch2.adb: Update status of new Is_Known_Null flag
17453 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17455 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17456 the categorization sense if Is_Pure was set by pragma Pure_Function.
17458 2006-02-13 Quentin Ochem <ochem@adacore.com>
17459 Olivier Hainque <hainque@adacore.com>
17461 * bindusg.adb: Updated documentation for -d and -D switches.
17463 * raise.h (__gnat_set_globals): added new parameter for
17464 Default_Stack_Size.
17466 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17467 (__gnat_handle_vms_condition): Adjust context before raise.
17468 (__gnat_install_handler): Restore the global vector setup for GCC
17469 versions before 3.4, as the frame based circtuitry is not available
17471 (__gnat_set_globals): added a parameter default_stack_size
17472 (__gl_default_stack_size): new variable.
17474 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17476 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17477 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17478 does not exist in the Ada RM.
17479 (Compatible_Int_Bounds): Determine whether two integer range bounds
17480 are of equal length and have the same start and end values.
17481 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17482 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17483 aggregate when it is part of an object declaration.
17484 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
17485 constrains discriminants of its parent, add explicitly the discriminant
17486 constraints of the ancestor by retrieving them from the
17487 stored_constraint of the parent.
17489 2006-02-13 Robert Dewar <dewar@adacore.com>
17491 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17492 attribute Mechanism_Code is applied to renamed subprogram, modify
17493 prefix to point to base subprogram.
17494 Max/Min attributes now violate Restriction No_Implicit_Conditionals
17496 * sinfo.ads: Document that Mechanism_Code cannot be applied to
17497 renamed subprograms so that the front-end must replace the prefix
17500 2006-02-13 Javier Miranda <miranda@adacore.com>
17501 Gary Dismukes <dismukes@adacore.com>
17503 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17504 availability of RE_Interface_Tag.
17505 (Build_Initialization_Call): Fix wrong access to the discriminant value.
17506 (Freeze_Record_Type): Do not generate the tables associated with
17507 timed and conditional dispatching calls through synchronized
17508 interfaces if compiling under No_Dispatching_Calls restriction.
17509 When compiling for Ada 2005, for a nonabstract
17510 type with a null extension, call Make_Controlling_Function_Wrappers
17511 and insert the wrapper function declarations and bodies (the latter
17512 being appended as freeze actions).
17513 (Predefined_Primitive_Bodies): Do not generate the bodies of the
17514 predefined primitives associated with timed and conditional
17515 dispatching calls through synchronized interfaces if we are
17516 compiling under No_Dispatching_Calls.
17517 (Build_Init_Procedure): Use RTE_Available to check if a run-time
17518 service is available before generating a call.
17519 (Make_Controlling_Function_Wrappers): New procedure.
17520 (Expand_N_Full_Type_Declaration): Create a class-wide master for
17521 access-to-limited-interfaces because they can be used to reference
17522 tasks that implement such limited interface.
17523 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17524 procedure spec and body of the Offset_To_Top function that is generated
17525 when the parent of a type with discriminants has secondary dispatch
17527 (Init_Secondary_Tags): Handle the case in which the parent of the type
17528 containing secondary dispatch tables has discriminants to generate the
17529 correct arguments to call Set_Offset_To_Top.
17530 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17532 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17533 Add Wide_[Wide_]Expanded_Name.
17534 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17535 the same functionality of Get_Prim_Op_Address but applied to predefined
17536 primitive operations because the pointers to the predefined primitives
17537 are now saved in a separate table.
17538 (Parent_Size): Modified to get access to the separate table of primitive
17539 operations or the parent type.
17540 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17541 functionality of Set_Prim_Op_Address but applied to predefined primitive
17543 (Set_Signature): New subprogram used to store the signature of a DT.
17544 (Displace): If the Offset_To_Top value is not static then call the
17545 function generated by the expander to get such value; otherwise use
17546 the value stored in the table of interfaces.
17547 (Offset_To_Top): The type of the actual has been changed to Address to
17548 give the correct support to tagged types with discriminants. In this
17549 case this value is stored just immediately after the tag field.
17550 (Set_Offset_To_Top): Two new formals have been added to indicate if the
17551 offset_to_top value is static and hence pass this value to the run-time
17552 to store it in the table of interfaces, or else if this value is dynamic
17553 and then pass to the run-time the address of a function that is
17554 generated by the expander to provide this value for each object of the
17557 * rtsfind.ads (Default_Prin_Op_Count): Removed.
17558 (Default_Prim_Op_Count): New entity
17559 (Get_Predefined_Prim_Op_Address): New entity
17560 (Set_Predefined_Prim_Op_Address): New entity
17561 (RE_Set_Signature): New entity
17563 2006-02-13 Thomas Quinot <quinot@adacore.com>
17564 Ed Schonberg <schonberg@adacore.com>
17566 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17567 Make_Adjust_Call done for a newly-allocated object.
17569 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17570 in a subprogram are wrapped in a cleanup block, indicate that the
17571 subprogram contains an inner block with an exception handler.
17572 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17573 Adjust call is for a newly-allocated object. In that case we must not
17574 assume that the finalization list chain pointers are correct (since they
17575 come from a bit-for-bit copy of the original object's pointers) so if
17576 the attach level would otherwise be zero (no change), we set it to 4
17577 instead to cause the pointers to be reset to null.
17579 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17580 reset chain pointers to null.
17582 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17584 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17585 string, and the context requires a loop for the assignment (e.g.
17586 because the left-hand side is packed), generate a unique name for the
17587 temporary that holds the string, to prevent spurious name clashes.
17589 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17590 Javier Miranda <miranda@adacore.com>
17591 Robert Dewar <dewar@adacore.com>
17592 Gary Dismukes <dismukes@adacore.com>
17594 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17595 return unconstrained arrays.
17597 (Expand_Call): An indirect call through an access parameter of a
17598 protected operation is not a protected call.
17599 Add circuit to raise CE in Ada 2005 mode following call
17600 to Raise_Exception.
17601 (Register_DT_Entry): Do nothing if
17602 the run-time does not give support to abstract interfaces.
17603 (Freeze_Subprogram): In case of dispatching operations, do not generate
17604 code to register the operation in the dispatch table if the source
17605 is compiled with No_Dispatching_Calls.
17606 (Register_Predefined_DT_Entry): Generate code that calls the new
17607 run-time subprogram Set_Predefined_Prim_Op_Address instead of
17608 Set_Prim_Op_Address.
17610 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17611 on array assignments if the right-hand side is a function call that has
17612 been inlined. Check is performed on the assignment in the block.
17613 (Process_Bounds): If bounds and range are overloaded, apply preference
17614 rule for root operations to disambiguate, and diagnose true ambiguity.
17615 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17616 a tag-indeterminate right-hand side even when Expander_Active is True.
17617 Needed to ensure that dispatching calls to T'Input are allowed and
17618 get the tag of the target class-wide object.
17620 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17621 an inherited primitive operation that already overrides several
17622 abstract interface primitives. For transitivity, the new entity must
17623 also override all the abstract interface primitives covered by the
17624 inherited overriden primitive.
17625 Emit warning if new entity differs from homograph in same scope only in
17626 that one has an access parameter and the other one has a parameter of
17627 a general access type with the same designated type, at the same
17628 position in the signature.
17629 (Make_Inequality_Operator): Use source locations of parameters and
17630 subtype marks from corresponding equality operator when creating the
17631 tree structure for the implicit declaration of "/=". This does not
17632 change anything in behaviour except that the decoration of the
17633 components of the subtree created for "/=" allows ASIS to get the
17634 string images of the corresponding identifiers.
17635 (Analyze_Return_Statement): Remove '!' in warning message.
17636 (Check_Statement_Sequence): Likewise.
17637 (Analyze_Subprogram_Body): For an access parameter whose designated type
17638 is an incomplete type imported through a limited_with clause, use the
17639 type of the corresponding formal in the body.
17640 (Check_Returns): Implicit return in No_Return procedure now raises
17641 Program_Error with a compile time warning, instead of beging illegal.
17642 (Has_Single_Return): Function returning unconstrained type cannot be
17643 inlined if expression in unique return statement is not an identifier.
17644 (Build_Body_To_Inline): It is possible to inline a function call that
17645 returns an unconstrained type if all return statements in the function
17646 return the same local variable. Subsidiary procedure Has_Single_Return
17647 verifies that the body conforms to this restriction.
17649 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17650 same type, and one of them is of an anonymous access type, convert
17651 the other operand to it, so that this is a valid binary operation for
17653 (Resolve_Type_Conversion): Handle subtypes of protected types and
17654 task types when accessing to the corresponding record type.
17655 (Resolve_Allocator): Add '\' in 2-line warning message.
17656 Remove '!' in warning message.
17657 (Resolve_Call): Add '\' in 2-line warning message.
17658 (Valid_Conversion): Likewise.
17659 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17660 resulting type may be an access type with an implicit dereference.
17661 Obtain the proper component from the designated type.
17662 (Make_Call_Into_Operator): Handle properly a call to predefined equality
17663 given by an expanded name with prefix Standard, when the operands are
17664 of an anonymous access type.
17665 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17666 Explicit_Dereference and Resolve_Selected_Component, to verify that the
17667 prefix of the expression is not of an incomplete type. Allows full
17668 diagnoses of all semantic errors.
17669 (Resolve_Actuals): If the actual is an allocator whose directly
17670 designated type is a class-wide interface we build an anonymous
17671 access type to use it as the type of the allocator. Later, when
17672 the subprogram call is expanded, if the interface has a secondary
17673 dispatch table the expander will add a type conversion to force
17674 the displacement of the pointer.
17675 (Resolve_Call): If a function that returns an unconstrained type is
17676 marked Inlined_Always and inlined, the call will be inlined and does
17677 not require the creation of a transient scope.
17678 (Check_Direct_Boolean_Op): Removed
17679 (Resolve_Comparison_Op): Remove call to above
17680 (Resolve_Equality_Op): Remove call to above
17681 (Resolve_Logical_Op): Inline above, since this is only call.
17682 (Valid_Conversion): Handle properly conversions between arrays of
17683 convertible anonymous access types.
17686 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17687 the literal in an unchecked conversion, because GCC 4.x needs a static
17688 value for a string bound.
17690 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17691 Hristian Kirtchev <kirtchev@adacore.com>
17693 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17694 components of the corresponding record, take into account component
17695 definitions that are access definitions.
17696 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17697 procedure is not considered a dispatching call and will be expanded
17700 2006-02-13 Javier Miranda <miranda@adacore.com>
17702 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17703 controlling argument of the dispatching call is an abstract interface
17704 class-wide type then we use it directly.
17705 Check No_Dispatching_Calls restriction.
17706 (Default_Prim_Op_Position): Remove the code that looks for the last
17707 entity in the list of aliased subprograms. This code was wrong in
17709 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17710 when the source is compiled with the No_Dispatching_Calls restriction.
17711 (Init_Predefined_Interface_Primitives): No need to inherit primitives
17712 if we are compiling with restriction No_Dispatching_Calls.
17713 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17714 subprograms if we are compiling under No_Dispatching_Calls restriction.
17715 (Make_DT): Generate a dispatch table with a single dummy entry if
17716 we are compiling with the No_Dispatching_Calls restriction. In
17717 addition, in this case we don't generate code that calls to the
17718 following run-time subprograms: Set_Type_Kind, Inherit_DT.
17719 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17720 of this subprogram if compiling with the No_Dispatching_Calls
17722 (Expand_Type_Conversion): Instead of using the actual parameter,
17723 the argument passed as parameter to the conversion function was
17724 erroneously referenced by the expander.
17725 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17726 Set_Predefined_Primitive_Op_Address and Set_Signature.
17727 (Expand_Dispatching_Call): Generate call to
17728 Get_Predefined_Prim_Op_Address for predefined primitives.
17729 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17730 predefined primitives.
17731 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17732 primitives we reserve one dummy entry to ensure that the tag does not
17733 point to some memory that is associated with some other object. In
17734 addition, remove all the old code that generated the assignments
17735 associated with the signature of the dispatch table and replace them
17736 by a call to the new subprogram Set_Signature.
17737 (Set_All_DT_Position): Change the algorithm because now we have a
17738 separate dispatch table associated with predefined primitive operations.
17739 (Expand_Interface_Conversion): In case of non-static offset_to_top
17740 add explicit dereference to get access to the object after the call
17741 to displace the pointer to the object.
17742 (Expand_Interface_Thunk): Modify the generation of the actual used
17743 in the calls to the run-time function Offset_To_Top to fulfil its
17745 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17747 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17749 * exp_dist.adb (Copy_Specification): For access parameters, copy
17750 Null_Exclusion flag, which will have been set for stream subprograms
17753 2006-02-13 Pascal Obry <obry@adacore.com>
17755 * expect.c (__gnat_expect_portable_execvp): New implementation. The
17756 previous implementation was using the C runtime spawnve routine but
17757 the corresponding wait was using directly the Win32 API. This was
17758 causing some times a lock when waiting for an event using
17759 WaitForSingleObject in __gnat_waitpid. This new implementation uses
17760 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17761 API fixes this problem.
17763 2006-02-13 Robert Dewar <dewar@adacore.com>
17765 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17768 2006-02-13 Thomas Quinot <quinot@adacore.com>
17770 * exp_pakd.ads: Fix typos in comments.
17772 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17773 array reference that is an explicit dereference, mark the converted
17774 (packed) array reference as analyzed to prevent a forthcoming
17775 reanalysis from resetting its type to the original (non-packed) array
17778 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17779 Javier Miranda <miranda@adacore.com>
17780 Eric Botcazou <ebotcazou@adacore.com>
17782 * exp_util.ads, exp_util.adb (Find_Prim_Op,
17783 Is_Predefined_Primitive_Operation): When
17784 searching for the predefined equality operator, verify that operands
17785 have the same type.
17786 (Is_Predefined_Dispatching_Operation): Remove the code that looks
17787 for the last entity in the list of aliased subprograms. This code
17788 was wrong in case of renamings.
17789 (Set_Renamed_Subprogram): New procedure
17790 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17791 Exp_Type constant computed when entering this subprogram.
17792 (Known_Null): New function
17793 (OK_To_Do_Constant_Replacement): New function
17794 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17795 (Side_Effect_Free): An attribute reference 'Input is not free of
17796 side effect, unlike other attributes that are functions. (from code
17798 (Remove_Side_Effects): Expressions that involve packed arrays or records
17799 are copied at the point of reference, and therefore must be marked as
17800 renamings of objects.
17801 (Is_Predefined_Dispatching_Operation): Return false if the operation is
17802 not a dispatching operation.
17805 (Remove_Side_Effects): Lift enclosing type conversion nodes for
17806 elementary types in all cases.
17808 2006-02-13 Javier Miranda <miranda@adacore.com>
17810 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17811 task types when accessing to the corresponding record type.
17812 Remove '!' in warning message.
17814 2006-02-13 Olivier Hainque <hainque@adacore.com>
17816 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17817 to avoid useless and space inefficient overalignments on targets where
17818 Max_Alignment is larger than 16.
17820 2006-02-13 Pascal Obry <obry@adacore.com>
17822 * g-catiio.adb (Sec_Number): New type used to compute the number of
17823 seconds since 1-1-1970.
17824 (Image) [Natural]: The parameter was an Integer, as we can't deal with
17825 negative numbers (years, months...) it is better to have a Natural here.
17827 (Image) [Number]: Change parameter from Long_Integer to Number.
17828 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17829 overflow for dates past year 2038.
17831 2006-02-13 Matthew Heaney <heaney@adacore.com>
17833 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17836 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17838 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17840 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17841 finalization can occur normally.
17843 2006-02-13 Vincent Celier <celier@adacore.com>
17845 * gnatcmd.adb (Rules_Switches): New table
17846 (Add_To_Rules_Switches): New procedure
17847 (GNATCmd): For command CHECK, put all options following "-rules" in the
17848 Rules_Switches table. Append these -rules switches after the -cargs
17851 2006-02-13 Robert Dewar <dewar@adacore.com>
17853 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17854 These two cases were generating incorrect output, and if this unit
17855 was built with checks on, generated a discriminant mismatch constraint
17858 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17859 Robert Dewar <dewar@adacore.com>
17861 * lib-xref.adb (Get_Type_Reference): For a private type whose full
17862 view is an array type, indicate the component type as well, for
17863 navigation purposes.
17864 (Generate_Reference): Don't consider array ref on LHS to be a case
17865 of violating pragma Unreferenced.
17866 Do not give Ada 2005 warning except on real reference.
17868 2006-02-13 Vincent Celier <celier@adacore.com>
17870 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17871 main source, add switch -mdebug-main=_ada_ so that the executable can
17872 be debugged by the standard VMS debugger.
17873 (Gnatmake): Set No_Main_Subprogram to True when there is no main
17874 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17875 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17876 of the last source, as the binding and linking phases are never
17878 Set all executable obsolete when rebuilding a library.
17880 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17883 2006-02-13 Javier Miranda <miranda@adacore.com>
17886 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
17887 code to improve the error message reported when the program has
17888 declarations of abstract interface types and it is not compiled with
17889 the -gnat05 switch.
17890 (P_Access_Definition): Reorganize the code to improve the error
17891 message reported when the new Ada 2005 syntax for anonymous
17892 access types is used and the program is not compiled with the
17895 2006-02-13 Robert Dewar <dewar@adacore.com>
17897 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
17898 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
17901 2006-02-13 Javier Miranda <miranda@adacore.com>
17903 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
17904 against source containing syntax errors.
17906 2006-02-13 Vincent Celier <celier@adacore.com>
17908 * prj.adb (Reset): Initialize the first element of table Namings with
17909 the standard naming data.
17911 2006-02-13 Vincent Celier <celier@adacore.com>
17913 * prj.ads (Error_Warning): New enumeration type
17915 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
17916 unknown, use the location of the project to report the error.
17917 (When_No_Sources): New global variable
17918 (Report_No_Ada_Sources): New procedure
17919 (Check): New parameter When_No_Sources. Set value of global variable
17921 (Find_Sources): Call Report_No_Ada_Sources when appropriate
17922 (Get_Sources_From_File): Ditto
17923 (Warn_If_Not_Sources): Better warning messages indicating the unit name
17926 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
17927 Call Prj.Proc.Process with parameter When_No_Sources.
17929 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
17930 Call Recursive_Check with parameter When_No_Sources.
17931 (Recursive_Check): New parameter When_No_Sources. Call itself and
17932 Prj.Nmsc.Check with parameter When_No_Sources.
17933 (Process): New parameter When_No_Sources. Call Check with parameter
17935 (Copy_Package_Declarations): New procedure to copy renamed parameters
17936 and setting the location of the declared attributes to the location
17937 of the renamed package.
17938 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
17941 2006-02-13 Vincent Celier <celier@adacore.com>
17943 * prj-makr.adb (Make): Preserve the comments from the original project
17945 When removing nodes (attributes Source_Dirs, Source_Files,
17946 Source_List_File and package Naming), save the comments and attach the
17947 saved comments to the newly created nodes.
17948 Do not add a with clause for the naming package if one already exists.
17950 2006-02-13 Javier Miranda <miranda@adacore.com>
17951 Gary Dismukes <dismukes@adacore.com>
17952 Robert Dewar <dewar@adacore.com>
17954 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
17956 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
17957 aliased entities to look for the overriden abstract interface
17959 (Is_Interface_Subprogram): Complete documentation.
17960 (Check_Dispatching_Operation): Do not generate code to register the
17961 operation in the dispatch table if the source is compiled with
17962 restriction No_Dispatching_Calls.
17963 (Override_Dispatching_Operation): Check for illegal attempt to override
17964 No_Return procedure with procedure that is not No_Return
17965 (Check_Dispatching_Call): Suppress the check for an abstract operation
17966 when the original node of an actual is a tag-indeterminate attribute
17967 call, since the attribute, which must be 'Input, can never be abstract.
17968 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
17969 call to the Input attribute (even when rewritten).
17970 (Propagate_Tag): Augment comment to indicate the possibility of a call
17971 to an Input attribute.
17973 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
17974 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
17976 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
17977 No_Wide_Characters is no longer partition-wide
17978 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
17981 2006-02-13 Douglas Rupp <rupp@adacore.com>
17983 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
17985 2006-02-13 Javier Miranda <miranda@adacore.com>
17987 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
17988 handles default-initialized components to keep separate the management
17989 of this feature but also avoid the unrequired resolution and
17990 expansion of components that do not have partially initialized
17992 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
17993 (Check_Bounds): Likewise.
17994 (Check_Length): Likewise.
17996 2006-02-13 Javier Miranda <miranda@adacore.com>
17997 Ed Schonberg <schonberg@adacore.com>
17999 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18000 abstract interface type call analyze_and_resolve to expand the type
18001 conversion into the corresponding displacement of the
18002 reference to the base of the object.
18003 (Eval_Attribute, case Width): For systems where IEEE extended precision
18004 is supported, the maximum exponent occupies 4 decimal digits.
18005 (Accessibility_Message): Add '\' in 2-line warning message.
18006 (Resolve_Attribute): Likewise.
18007 (case Attribute_Access): Significantly revise checks
18008 for illegal access-to-subprogram Access attributes to properly enforce
18009 the rules of 3.10.2(32/2).
18010 Diagnose use of current instance with an illegal attribute.
18012 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18014 (Enclosing_Generic_Unit): New function to return a node's innermost
18015 enclosing generic declaration node.
18016 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18017 (Type_Access_Level): The accessibility level of anonymous acccess types
18018 associated with discriminants is that of the current instance of the
18019 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18020 (Compile_Time_Constraint_Error): Handle case of conditional expression.
18021 (Kill_Current_Values_For_Entity): New function
18022 (Enter_Name): Change formal type to Entity_Id
18024 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18025 Ed Schonberg <schonberg@adacore.com>
18026 Gary Dismukes <dismukes@adacore.com>
18028 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18029 Analyze_Compilation_Unit.
18030 Detect and warn on redundant with clauses detected in a package spec
18031 and/or body when -gnatwr is used.
18032 (Analyze_Context): Analyze config pragmas before other items
18033 (Install_Context_Items): Don't analyze config pragmas here
18034 (Install_Limited_Withed_Unit): Set limited entity of package in
18035 with_clause so that cross-reference information or warning messages on
18036 unused packages can be properly generated
18037 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18038 has Error_Posted set. Prevent infinite loops in illegal programs.
18039 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18040 to the point of the error test requiring the current unit to be private.
18041 This ensures that private with clauses are not exempted from the basic
18042 checking for being a descendant of the same library unit parent as a
18043 withed private descendant unit.
18044 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18045 handle private with clauses properly, as well as to account for cases
18046 where the withed unit is a public descendant of a private ancestor
18047 (in which case the current unit must be a descendant of the private
18048 ancestor's parent). The spec comments were updated accordingly. Also,
18049 the old error message in this subprogram was replaced with error
18050 messages that mirror the errors tested and reported by
18051 Check_Private_Child_Unit.
18052 Parameter and variable names improved for readability.
18053 (Install_Limited_Context_Clauses): Remove test for a withed unit being
18054 private as the precondition for calling
18055 Check_Private_Limited_Withed_Unit since that subprogram has been
18056 revised to test public units as well as private units.
18058 2006-02-13 Thomas Quinot <quinot@adacore.com>
18059 Robert Dewar <dewar@adacore.com>
18060 Ed Schonberg <schonberg@adacore.com>
18061 Javier Miranda <miranda@adacore.com>
18063 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18064 that Scope_Stack.First = 1.
18065 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18066 were not always properly handled previously.
18067 (Formal_Entity): Complete rewrite, to handle properly some complex case
18068 with multiple levels of parametrization by formal packages.
18069 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18070 to the corresponding derived type declaration for proper semantics.
18072 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18073 (Check_Component): Enforce restriction on components of
18074 unchecked_unions: a component in a variant cannot contain tasks or
18076 (Unchecked_Union): Allow nested variants and multiple discriminants, to
18078 Add pragma Ada_2005 (synonym for Ada_05)
18079 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18080 were not always properly handled previously.
18081 Document that pragma Propagate_Exceptions has no effect
18082 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18083 (Set_Convention_From_Pragma): Check that if a convention is
18084 specified for a dispatching operation, then it must be
18085 consistent with the existing convention for the operation.
18086 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18087 longer required to specify an vtable-ptr component in the record. For
18088 compatibility reasons we leave the support for the previous definition.
18089 (Analyze_Pragma, case No_Return): Allow multiple arguments
18091 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18092 non-overrideen inherited operation with a controlling result as
18093 illegal only its implicit declaration comes from the derived type
18094 declaration of its result's type.
18095 (Check_Possible_Deferred_Completion): Relocate the object definition
18096 node of the subtype indication of a deferred constant completion rather
18097 than directly analyzing it. The analysis of the generated subtype will
18098 correctly decorate the GNAT tree.
18099 (Record_Type_Declaration): Check whether this is a declaration for a
18100 limited derived record before analyzing components.
18101 (Analyze_Component_Declaration): Diagnose record types not explicitly
18102 declared limited when a component has a limited type.
18103 (Build_Derived_Record_Type): Code reorganization to check if some of
18104 the inherited subprograms of a tagged type cover interface primitives.
18105 This check was missing in case of a full-type associated with a private
18107 (Constant_Redeclaration): Check that the subtypes of the partial and the
18108 full view of a constrained deferred constant statically match.
18109 (Mentions_T): A reference to the current type in an anonymous access
18110 component declaration must be an entity name.
18111 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18112 class_wide type to refer to full type, not to the incomplete one.
18113 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18114 available. Required to give support to the certified run-time.
18115 (Analyze_Component_Declaration): In case of anonymous access components
18116 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18117 (Process_Discriminants): For an access discriminant, use the
18118 discriminant specification as the associated_node_for_itype, to
18119 simplify accessibility checks.
18121 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18122 Javier Miranda <miranda@adacore.com>
18124 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18125 abstract interpretations on an operator, remove interpretations that
18126 yield Address or a type derived from it, if one of the operands is an
18128 (Try_Object_Operation.Try_Primitive_Operation,
18129 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18130 location when creating the new reference to a primitive or class-wide
18131 operation as a part of rewriting a subprogram call.
18132 (Try_Primitive_Operations): If context requires a function, collect all
18133 interpretations after the first match, because there may be primitive
18134 operations of the same type with the same profile and different return
18135 types. From code reading.
18136 (Try_Primitive_Operation): Use the node kind to choose the proper
18137 operation when a function and a procedure have the same parameter
18139 (Complete_Object_Operation): If formal is an access parameter and prefix
18140 is an object, rewrite as an Access reference, to match signature of
18141 primitive operation.
18142 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18143 by an expanded name with prefix Standard, when the operands are of an
18144 anonymous access type.
18145 (Remove_Abstract_Operations): If the operation is abstract because it is
18146 inherited by a user-defined type derived from Address, remove it as
18147 well from the set of candidate interpretations of an overloaded node.
18148 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18151 2006-02-13 Bob Duff <duff@adacore.com>
18153 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18154 redundant use clauses.
18155 In particular, if the scope of two use clauses overlaps, but one is not
18156 entirely included in the other, we should not warn. This can happen
18157 with nested packages.
18158 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18159 reported errors. The bug was reported when the compiler was built
18160 with assertions enabled.
18161 (Find_Type): If the node is a 'Class reference and the prefix is a
18162 synchronized type without a corresponding record, return the type
18165 2006-02-13 Javier Miranda <miranda@adacore.com>
18167 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18168 if this is the full-declaration associated with a private declaration
18169 that implement interfaces, then the private type declaration must be
18171 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18172 as aliased. The use of the 'access attribute is not available for such
18173 object (for this purpose the object should be explicitly marked as
18174 aliased, but being an anonymous type this is not possible).
18176 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18177 Robert Dewar <dewar@adacore.com>
18179 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18180 compilation unit is an elaboration scope.
18181 (Add_Task_Proc): Add '\' in 2-line warning message.
18182 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18184 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18185 Javier Miranda <miranda@adacore.com>
18187 * sem_type.adb (Write_Overloads): Improve display of candidate
18189 (Add_One_Interp): Do not add to the list of interpretations aliased
18190 entities corresponding with an abstract interface type that is an
18191 immediate ancestor of a tagged type; otherwise we have a dummy
18192 conflict between this entity and the aliased entity.
18193 (Disambiguate): The predefined equality on universal_access is not
18194 usable if there is a user-defined equality with the proper signature,
18195 declared in the same declarative part as the designated type.
18196 (Find_Unique_Type): The universal_access equality operator defined under
18197 AI-230 does not cover pool specific access types.
18198 (Covers): If one of the types is a generic actual subtype, check whether
18199 it matches the partial view of the other type.
18201 2006-02-13 Thomas Quinot <quinot@adacore.com>
18203 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18204 line. This is necessary to allow In_Extended_Main_Unit to provide
18205 correct results for itypes while writing out expanded source.
18206 (Close_File): No need to update the source_index_table here since it's
18207 now done for each line.
18209 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18210 Robert Dewar <dewar@adacore.com>
18212 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18213 preserve the source unit where the itype is declared, and prevent a
18215 (Note_Implicit_Run_Time_Call): New procedure
18216 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18219 * sprint.ads: Document use of $ for implicit run time routine call
18221 2006-02-13 Quentin Ochem <ochem@adacore.com>
18223 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18226 2006-02-13 Bob Duff <duff@adacore.com>
18228 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18229 Scan_Unsigned, so we do not scan leading blanks and sign twice.
18230 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18231 raise Constraint_Error.
18233 * s-vallli.adb (Scan_Long_Long_Integer): Call
18234 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18235 do not scan leading blanks and sign twice.
18236 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18237 raise Constraint_Error.
18239 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18240 Scan_Long_Long_Unsigned): Split out most of the processing from
18241 Scan_Long_Long_Unsigned out into
18242 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18243 This prevents scanning leading blanks and sign twice.
18244 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18247 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18248 out most of the processing from Scan_Unsigned out into
18249 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18250 This prevents scanning leading blanks and sign twice.
18252 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18253 use with Modular'Value attribute.
18254 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18257 2006-02-13 Robert Dewar <dewar@adacore.com>
18259 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18261 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18263 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18264 (PPC VxWorks): Likewise.
18265 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18266 (forced_callee): Make non-inlinable and non-pure.
18267 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18269 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18270 Ben Brosgol <brosgol@adacore.com>
18271 Robert Dewar <dewar@adacore.com>
18273 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18275 Document that gnatbind -M option is for cross environments only.
18276 Added description of using gnatmem to trace gnat rtl allocs and deallocs
18277 Add note on use of $ to label implicit run time calls
18278 Add documentation for -gnatyI (check mode IN)
18279 Updated chapter on compatibility with HP Ada
18280 VMS-oriented edits.
18281 Ran spell and corrected errors
18282 Add documentation for gnatbind -d and rework documentation of -D
18284 Add subprogram/data elimination section.
18285 Minor editing of annex A.
18286 Add section for gnatcheck.
18287 Add documentation for restriction No_Dispatching_Calls
18288 Add documentation for pragma Ada_2005
18289 Remove mention of obsolete pragma Propagate_Exceptions
18290 Document that pragma Unreferenced can appear after DO in ACCEPT
18291 Clarify Pure_Function for library level units
18292 Mention Max/Min in connection with No_Implicit_Conditionals
18293 No_Wide_Characters restriction is no longer partition-wide
18294 Add a nice example for Universal_Literal_String attribute
18295 Document that pragma No_Return can take multiple arguments
18297 * ug_words: Added entry for gnatcheck
18299 * g-ctrl_c.ads (Install_Handler): Enhance comments
18301 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18303 * g-trasym.ads: Add documentation on how to do off line symbolic
18304 traceback computation.
18306 * s-fatgen.adb: Add comments for Unaligned_Valid
18308 * stand.ads: Fix typo in comment
18310 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18312 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18314 2006-02-06 Roger Sayle <roger@eyesopen.com>
18316 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18318 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18321 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18322 implementation that calls __main.
18324 2006-01-25 Peter O'Gorman <peter@pogma.com>
18327 * Makefile.in (GCC_LINK): Remove quotes.
18328 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18331 (powerpc-darwin): Pass -shared-libgcc when building shared library.
18333 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18336 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18338 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18340 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18342 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18344 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18347 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18349 * Make-lang.in: Update dependencies
18351 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18353 * Make-lang.in: Add rule for ada/exp_sel.o
18355 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18357 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18359 2005-12-09 Arnaud Charlet <charlet@adacore.com>
18361 * gnatvsn.ads (Library_Version): Bump to version 4.2
18362 (ASIS_Version_Number): Bumped.
18364 2005-12-09 Doug Rupp <rupp@adacore.com>
18366 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18367 Ada bind file prefix on VMS from b$ to b__.
18368 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18371 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18372 Targparm.OpenVMS_On_Target.
18373 (Object_Suffix): Initialize with target object suffix.
18374 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18376 * butil.adb: Change some Hostparm.OpenVMS checks to
18377 Targparm.OpenVMS_On_Target.
18379 * clean.adb: Change some Hostparm.OpenVMS checks to
18380 Targparm.OpenVMS_On_Target.
18381 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18382 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18383 Ada bind file prefix on VMS from b$ to b__.
18385 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18386 --GCC so that Get_Target_Parameters can find system.ads.
18387 (Gnatlink): Call Get_Target_Parameters in mainline.
18388 Initialize standard packages for Targparm.
18389 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18390 (Process_Args): Also Check for object files with target object
18392 (Make_Binder_File_Names): Create with target object extension.
18393 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18396 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18397 Targparm.OpenVMS_On_Target.
18398 ({declaration},Build_Library,Check_Library): Change Ada bind file
18399 prefix on VMS from b$ to b__.
18401 * osint-b.adb: Change some Hostparm.OpenVMS checks to
18402 Targparm.OpenVMS_On_Target.
18403 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18406 * targext.c: New file.
18408 * Makefile.in: add support for vxworks653 builds
18409 (../../vxaddr2line): gnatlink with targext.o.
18410 (TOOLS_LIBS): Move targext.o to precede libgnat.
18411 (init.o, initialize.o): Minor clean up in dependencies.
18412 (GNATLINK_OBJS): Add targparm.o, snames.o
18413 Add rules fo building targext.o and linking it explicitly with all
18415 Also add targext.o to gnatlib.
18417 * Make-lang.in: Add rules for building targext.o and linking it in
18418 with gnat1 and gnatbind.
18419 Add entry for exp_sel.o.
18421 * osint.adb Change some Hostparm.OpenVMS checks to
18422 Targparm.OpenVMS_On_Target.
18423 (Object_File_Name): Use target object suffix.
18425 * osint.ads (Object_Suffix): Remove, no longer used.
18426 (Target_Object_Suffix): Initialize with target object suffix.
18428 * rident.ads: Add special exception to license.
18430 * targparm.adb (Get_Target_Parameters): Set the value of
18431 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18433 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18435 * targparm.ads: Add special exception to license.
18437 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18439 (Copy_File): Make sure from file is closed if error on to file
18440 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18442 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18443 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18445 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18446 target object suffix.
18448 2005-12-09 Jose Ruiz <ruiz@adacore.com>
18449 Quentin Ochem <ochem@adacore.com>
18450 Florian Villoing <villoing@adacore.com>
18452 * a-taster.ads, a-taster.adb: New files.
18454 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18455 link to the version that does nothing. This way the task termination
18456 routine is not executed twice for the environment task when finishing
18457 because of an unhandled exception.
18459 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18460 handler because of an unhandled exception.
18462 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18463 System.Tasking.Utilities instead of that in System.Tasking.Stages.
18465 * s-finimp.adb (initialization code): Modify the soft link for the
18466 finalization of the global list instead of Adafinal.
18468 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18469 non-tasking version of the soft link for task termination. We do
18470 nothing since if we are using the non-tasking version it
18471 means that the task termination functionality is not used.
18472 (Null_Finalize_Global_List): Add this null version for the procedure
18473 in charge of finalizing the global list for controlled objects.
18474 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18475 instead for handling run-time termination in a more flexible way.
18476 (Adafinal_NT): This new procedure will take care of finalizing the
18477 global list for controlled objects if needed, but no tasking
18480 * s-tarest.adb (Task_Lock): Do not try to lock again the
18481 Global_Task_Lock if we already own it. Otherwise, we get blocked in
18482 some run-time operations.
18483 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18484 until all nested locks have been released.
18485 (Task_Wrapper): Call the fall-back task termination handler. It
18486 applies to all tasks but the environment task.
18487 (Finalize_Global_Tasks): Add the call for the task termination
18488 procedure for the environment task.
18489 (Task_Wrapper): suppress warnings around declaration of
18490 Secondary_Stack_Address.
18492 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18493 moved to the Common_ATCB record.
18494 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18495 Common_ATCB record.
18496 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18497 Common_ATCB record.
18499 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18500 Fall_Back_Handler, and Specific_Handler.
18502 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18503 defined in Ada.Task_Termination, to avoid circular dependencies.
18504 (Termination_Handler): Redefine this type here, alredy defined in
18505 Ada.Task_Termination, for avoiding circular dependencies.
18506 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18507 for storing task termination handlers. In addition,
18508 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18509 Common_ATCB because it is used by both the regular and the restricted
18511 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18512 Common_ATCB because it is used by both the regular and the restricted
18514 (Common_ATCB): Added a dynamic task analyzer field.
18516 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18517 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18518 (Task_Wrapper): Call the task termination handler. It applies to all
18519 tasks but the environment task.
18520 (Finalize_Global_Tasks): Call the task termination procedure for the
18521 environment task. The call to Finalize_Global_List is now performed
18522 using the soft links mechanism.
18523 (Task_Wrapper): added dynamic stack analysis.
18525 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18526 potentially blocking operations has been moved from
18527 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18528 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18529 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18530 this run-time check.
18532 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18533 of task termination procedure.
18534 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18535 link for the task termination procedure.
18537 * bindusg.adb: (Bindusg): Added documentation for -u option.
18539 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18540 (Get_Main_C): Add handling of dynamic stack analysis.
18541 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18543 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18544 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18545 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18547 * opt.ads: Added flags used by dynamic stack measurement.
18548 (Max_Line_Length): Remove (not used anymore)
18550 * s-io.ads, s-io.adb (Standard_Error): new subprogram
18551 (Standart_Output): new subprogram
18552 (Set_Output): new subprogram
18553 (Put): now uses the value of Current_Out to know if the output has to be
18554 send to stderr or stdout.
18556 * s-stausa.ads: Complete implementation.
18558 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18560 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18561 list of Ada 05 files.
18562 (GNAT Library Units): Add AltiVec files.
18564 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18565 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18566 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18568 2005-12-09 Nicolas Setton <setton@adacore.com>
18570 * adaint.c (__gnat_locate_regular_file): Return immediately if
18571 file_name is empty.
18573 2005-12-09 Javier Miranda <miranda@adacore.com>
18574 Hristian Kirtchev <kirtchev@adacore.com>
18576 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18577 to the specification because the frontend generates code that uses this
18579 (Set_Interface_Table): Add missing assertion.
18580 Update documentation describing the run-time structure.
18581 (Displace): New subprogram that displaces the pointer to the object
18582 to reference one of its secondary dispatch tables.
18583 (IW_Membership): Modified to use the new table of interfaces.
18584 (Inherit_TSD): Modified to use the new table of interfaces.
18585 (Register_Interface_Tag): Use the additional formal to fill the
18586 contents of the new table of interfaces.
18587 (Set_Interface_Table): New subprogram that stores in the TSD the
18588 pointer to the table of interfaces.
18589 (Set_Offset_To_Top): Use the additional formal to save copy of
18590 the offset value in the table of interfaces.
18591 Update structure of GNAT Primary and Secondary dispatch table diagram.
18592 Add comment section on GNAT dispatch table prologue.
18593 (Offset_To_Signature): Update the constant value of the Signature field.
18594 (Dispatch_Table): Update comment on hidden fields in the prologue.
18595 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18596 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18597 the type of formal parameter T to Tag, introduce additional assertions.
18598 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18600 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18602 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18603 in all the calls to Expand_Interface_Thunk. Instead of referencing the
18604 record component containing the tag of the secondary dispatch table we
18605 have to use the Offset_To_Top run-time function to get this information;
18606 otherwise if the pointer to the base of the object has been displace
18607 we get a wrong value if we use the 'position attribute.
18609 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18610 all the calls to Expand_Interface_Thunk.
18611 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18612 interfaces; hence the call to Set_Interface_Table was clearly wrong.
18613 (Collect_All_Interfaces): Modify the internal subprogram Collect to
18614 ensure that the interfaces implemented by the ancestors are placed
18615 at the header of the generated list.
18616 (Expand_Interface_Conversion): Handle the case in which the displacement
18617 associated with the interface conversion is not statically known. In
18618 this case we generate a call to the new run-time subprogram Displace.
18619 (Make_DT): Generate and fill the new table of interfaces.
18620 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18621 Get_Tagged_Kind and Set_Tagged_Kind.
18622 (Tagged_Kind): New function that determines the tagged kind of a type
18623 with respect to limitedness and concurrency and returns a reference to
18625 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18626 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18627 primary dispatch table for a type.
18628 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18629 secondary dispatch table respectively of a tagged type.
18631 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18632 (Expand_Interface_Conversion): New subprogram to indicate if the
18633 displacement of the type conversion is statically known.
18634 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18636 * rtsfind.ads (RE_Offset_To_Top): New entity
18637 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18638 accessible to users.
18639 (Re_Displace): New entity
18640 (RE_Interface_Data): New entity
18641 (RE_Set_Interface_Data): New_Entity
18642 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18643 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18644 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18645 RE_TK_Tagged, RE_TK_Task.
18647 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18648 Init_Secondary_Tags_Internal to allow its use with interface types and
18649 also to generate the code for the new additional actual required
18650 by Set_Offset_To_Top.
18651 (Build_Init_Statements): In case of components associated with abstract
18652 interface types there is no need to generate a call to its IP.
18653 (Freeze_Record_Type): Generate Select Specific Data tables only for
18655 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18656 the bodies and specifications of the predefined primitive operations
18657 dealing with dispatching selects and abort, 'Callable, 'Terminated only
18658 for concurrent types.
18660 * exp_sel.ads, exp_sel.adb: New files.
18662 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18663 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18664 properly protected objects and attach handler in the case of the
18665 restricted profile.
18666 Move embeded package Select_Expansion_Utilities into a separate external
18668 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18669 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18670 (Build_K, Build_S_Assignment): New subprograms, part of the select
18671 expansion utilities.
18672 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18673 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18674 where the trigger is a dispatching procedure of a limited tagged type.
18676 2005-12-09 Olivier Hainque <hainque@adacore.com>
18678 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18679 pointer initialization values. Make a SAVE_EXPR instead. Add comments
18680 about the use and expansion of SAVE_EXPRs in the various possible
18681 renaming handling cases.
18682 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18683 abusing DECL_FCONTEXT.
18685 2005-12-09 Matthew Heaney <heaney@adacore.com>
18687 * a-convec.adb (Merge): Added assertions to check whether vector params
18690 * a-coinve.adb (Merge): Added assertions to check whether vector params
18693 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18695 (Cursor'Read): raises PE
18697 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18698 to its default value.
18700 * a-cihama.adb: Manually check whether cursor's key and elem are
18703 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18704 (Merge): Assert that target and source lists are in order
18705 (Swap): Declare non-const temporaries, to pass to Splice
18707 * a-cdlili.ads: (Splice): Changed param name and param mode
18709 * a-cdlili.adb: (Splice): Changed param name and param mode
18710 (Merge): Assert that target and source lists are in order
18711 (Swap): Declare non-const temporaries, to pass to Splice
18713 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18714 (Write): declare Stream param as not null
18716 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18717 an exception message.
18719 2005-12-09 Thomas Quinot <quinot@adacore.com>
18720 Robert Dewar <dewar@adacore.com>
18722 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18723 which is the absolute maximum length we can support.
18725 * frontend.adb: For the processing of configuration pragma files,
18726 remove references to Opt.Max_Line_Length, which is not checked anymore.
18728 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18731 * scn.adb, scng.adb:
18732 Always check line length against the absolute supported maximum,
18733 Hostparm.Max_Line_Length.
18735 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18736 value for the maximum line length is Max_Line_Length (not
18737 Column_Number'Last).
18738 Minor error msg update
18739 (Set_Style_Check_Options): New interface returning error msg
18740 Minor code reorganization (processing for 'M' was out of alpha order)
18742 * switch-c.adb: New interface for Set_Style_Check_Options
18744 * stylesw.ads (Set_Style_Check_Options): New interface returning error
18747 2005-12-09 Javier Miranda <miranda@adacore.com>
18749 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18750 with IP subprogram were only supported if there were limited types.
18752 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18753 records with IP subprogram were only supported if there were limited
18756 2005-12-09 Olivier Hainque <hainque@adacore.com>
18757 Eric Botcazou <ebotcazou@adacore.com>
18759 * trans.c (tree_transform, emit_check): Adjust calls to
18760 build_call_raise, passing the now expected GNAT_NODE argument.
18762 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18763 source line information than what the current global locus indicates
18766 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18767 field has overflowed.
18768 (build_call_raise): Add a GNAT_NODE argument to convey better source
18769 line information than what the current global locus indicates when
18771 (build_component_ref): Adjust call to build_call_raise.
18773 2005-12-09 Pascal Obry <obry@adacore.com>
18775 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18776 the iterator is quitting iteration on parent directory.
18778 2005-12-09 Javier Miranda <miranda@adacore.com>
18780 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18781 and the assignment to a class-wide object, before the assignment we
18782 generate a run-time check to ensure that the tag of the Target is
18783 covered by the tag of the source.
18785 2005-12-09 Robert Dewar <dewar@adacore.com>
18787 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18788 parameter in call to Image_Wide_Character.
18790 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18791 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18792 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18793 annoying FFFE/FFFF inconsistency.
18795 2005-12-09 Robert Dewar <dewar@adacore.com>
18796 Javier Miranda <miranda@adacore.com>
18797 Ed Schonberg <schonberg@adacore.com>
18799 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18800 of type conversion.
18801 (Find_Interface): New subprogram that given a tagged type and one of its
18802 component associated with the secondary table of an abstract interface
18803 type, return the entity associated with such abstract interface type.
18804 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18805 base type to create anonymous subtype, because entity may be a locally
18806 declared subtype or generic actual.
18807 (Find_Interface): New subprogram that given a tagged type and one of its
18808 component associated with the secondary table of an abstract interface
18809 type, return the entity associated with such abstract interface type.
18811 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18812 conversion cannot be handled at compile time. In this case we pass this
18813 information to the expander to generate the appropriate code.
18815 2005-12-09 Robert Dewar <dewar@adacore.com>
18816 Ed Schonberg <schonberg@adacore.com>
18817 Gary Dismukes <dismukes@adacore.com>
18818 Javier Miranda <miranda@adacore.com>
18819 Hristian Kirtchev <kirtchev@adacore.com>
18821 * einfo.adb (Itype_Printed): New flag
18822 (Is_Limited_Type): Derived types do not inherit limitedness from
18823 interface progenitors.
18824 (Is_Return_By_Reference_Type): Predicate does not apply to limited
18827 * einfo.ads (Itype_Printed): New flag
18828 Move Is_Wrapper_Package to proper section
18829 Add missing Inline for Is_Volatile
18831 * output.ads, output.adb (Write_Erase_Char): New procedure
18832 (Save/Restore_Output_Buffer): New procedures
18833 (Save/Restore_Output_Buffer): New procedures
18835 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18836 Add missing support for anonymous access type
18837 (Write_Id): Insert calls to Write_Itype
18838 (Write_Itype): New procedure to output itypes
18840 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18841 use of "limited" in declaration.
18843 * sinfo.ads, sinfo.adb:
18844 Formal derived types can carry an explicit "limited" indication.
18846 * sem_ch3.adb: Add with and use of Targparm.
18847 (Create_Component): If Frontend_Layout_On_Target is True and the
18848 copied component does not have a known static Esize, then reset
18849 the size and positional fields of the new component.
18850 (Analyze_Component_Declaration): A limited component is
18851 legal within a protected type that implements an interface.
18852 (Collect_Interfaces): Do not add to the list the interfaces that
18853 are implemented by the ancestors.
18854 (Derived_Type_Declaration): If the parent of the full-view is an
18855 interface perform a transformation of the tree to ensure that it has
18856 the same parent than the partial-view. This simplifies the job of the
18857 expander in order to generate the correct object layout, and it is
18858 needed because the list of interfaces of the full-view can be given in
18860 (Process_Full_View): The parent of the full-view does not need to be
18861 a descendant of the parent of the partial view if both parents are
18863 (Analyze_Private_Extension_Declaration): If declaration has an explicit
18864 "limited" the parent must be a limited type.
18865 (Build_Derived_Record_Type): A derived type that is explicitly limited
18866 must have limited ancestor and progenitors.
18867 (Build_Derived_Type): Ditto.
18868 (Process_Full_View): Verify that explicit uses of "limited" in partial
18869 and full declarations are consistent.
18870 (Find_Ancestor_Interface): Remove function.
18871 (Collect_Implemented_Interfaces): New procedure used to gather all
18872 implemented interfaces by a type.
18873 (Contain_Interface): New function used to check whether an interface is
18875 (Find_Hidden_Interface): New function used to determine whether two
18876 lists of interfaces constitute a set equality. If not, the first
18877 differing interface is returned.
18878 (Process_Full_View): Improve the check for the "no hidden interface"
18879 rule as defined by AI-396.
18881 2005-12-09 Robert Dewar <dewar@adacore.com>
18883 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
18884 types, not on record subtypes.
18885 (Freeze_Entity): Code cleanup. Add barrier to the loop
18886 that generates the references for primitive operations. This allows to
18887 remove an unnecessary exception handler.
18888 Code reformatting and comment clean ups.
18890 2005-12-09 Vincent Celier <celier@adacore.com>
18892 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
18893 If GNAT CHECK is called with a project file, but with no
18894 source on the command line, call gnatcheck with all the compilable
18895 sources of the project.
18896 Take into account the new command Check, for gnatcheck. Treat as for
18897 other ASIS tools: take into account project, specific package Check and
18899 For ASIS tools, add the switches in package Compiler for
18900 the invocation of the compiler.
18902 * prj-attr.adb: Add package Check and its attributes
18904 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
18906 * vms_conv.adb (Initialize): Change Params of command Check to
18908 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18909 Add data for new command Check
18911 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
18913 Add qualifiers for Check command options
18914 (Command_Type): New command Check
18916 2005-12-09 Thomas Quinot <quinot@adacore.com>
18918 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
18919 command line switch overruns the output buffer.
18921 2005-12-09 Robert Dewar <dewar@adacore.com>
18923 * sem_prag.adb: Processing for new pragma Complete_Representation
18924 (Analyze_Pragma, case Debug): Implement two argument form.
18926 * par-prag.adb: Entry for new pragma Complete_Representation
18927 (Prag, case Debug): Recognize two argument form of pragma Debug
18928 New interface for Set_Style_Check_Options.
18930 * sem_ch13.adb: Implement new pragma Complete_Representation.
18932 * snames.adb, snames.ads, snames.h: Entry for new pragma
18933 Complete_Representation.
18935 2005-12-09 Gary Dismukes <dismukes@adacore.com>
18937 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
18938 available user-specified stream attributes on limited parameters to
18939 also test the type directly rather than only its underlying type (for
18940 Ada 95) and, in the case of Ada 2005, to check that the user-specified
18941 attributes are visible at the point of the subprogram declaration.
18942 For Ada 2005, the error message is modified to indicate that the
18943 type's stream attributes must be visible (again, only for -gnat05).
18945 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18947 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
18948 anonymous access types.
18950 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
18951 matching of anonymous access types and anonymous access to subprogram
18952 types. 'R'M 4.9.1 (2/2).
18954 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18956 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
18957 rule prematurely when operands are universal, remaining ambiguities
18958 will be removed during resolution.
18961 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
18962 that are Ada 2005 functions.
18963 (Has_Abstract_Interpretation): Subsidiary to
18964 Remove_Conversions, to remove ambiguities caused by abstract operations
18965 on numeric types when operands are universal.
18967 2005-12-09 Robert Dewar <dewar@adacore.com>
18969 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
18970 for case where spec is categorized.
18972 2005-12-09 Javier Miranda <miranda@adacore.com>
18974 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
18975 types use the corresponding record type. This was not needed before
18976 the implementation of Ada 2005 synchronized types because
18977 concurrent types were never tagged types in Ada 95.
18979 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18981 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
18982 first subtype of the type of the expression to verify that it is a
18985 2005-12-09 Robert Dewar <dewar@adacore.com>
18987 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
18990 2005-12-09 Quentin Ochem <ochem@adacore.com>
18991 Robert Dewar <dewar@adacore.com>
18992 Ed Falis <falis@adacore.com>
18993 Florian Villoing <villoing@adacore.com>
18994 Thomas Quinot <quinot@adacore.com>
18995 Arnaud Charlet <charlet@adacore.com>
18997 * gnat_ugn.texi: Created section "Stack Related Tools"
18998 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
18999 "Stack Related Tools"
19000 Added subsection "Static Stack Usage Analysis"
19001 Added subsection "Dynamic Stack Usage Analysis"
19002 Include documentation of itypes in sprint listing (-gnatG)
19003 Documented gnatbind -D switch (default sec stack size for fixed sec
19005 Added Interrupt_State and Persistent_BSS to list of configuration
19007 Add missing doc for maximum value of nnn in -gnatyMnnn
19009 * gnat_rm.texi: Document the AltiVec binding.
19010 Add documentation for pragma Complete_Representation
19011 Shortened an overly long line (> 79 chars)
19012 Clarify documentation of unchecked conversion in implementation
19014 Document two argument form of pragma Debug
19016 * types.ads (Column_Number): Update documentation.
19018 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19019 library level Finalize_Storage_Only objects (these are not attached to
19020 any finalization list).
19022 * system-mingw.ads: (Underlying_Priorities): Update comment.
19024 2005-12-09 Robert Dewar <dewar@adacore.com>
19026 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19027 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19028 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19029 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19030 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19031 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19032 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19033 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19036 2005-12-09 Robert Dewar <dewar@adacore.com>
19038 * s-vaflop-vms-alpha.adb: (Ne_F): New function
19039 (Ne_G): New function
19041 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19042 for tag assignment.
19043 (Rewrite_Comparison): Handle case where operation is not a comparison
19044 and ignore, and also handle type conversion case.
19046 2005-12-09 Thomas Quinot <quinot@adacore.com>
19048 * exp_aggr.ads: Fix typo in comment.
19049 ???-mark Convert_Aggr_In_Assignment as needing documentation.
19051 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19053 * layout.adb: Replace various uses of byte by storage unit throughout.
19054 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19055 static size, convert to storage units before returning, to conform to
19058 2005-12-09 Matthew Gingell <gingell@adacore.com>
19060 * g-exctra.ads: Fix typo in comment.
19062 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19064 * utils.c: Minor reformatting.
19066 2005-12-09 Robert Dewar <dewar@adacore.com>
19069 Further comment fixes to make the status of the default file clear
19071 * s-bitops.adb: Clarify comment for Bits_Array
19073 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19075 * Make-lang.in (ada.install-normal): Remove.
19077 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19079 * Make-lang.in: Remove all dependencies on s-gtype.
19081 2005-12-05 Richard Guenther <rguenther@suse.de>
19083 * utils.c (convert): Use fold_convert where appropriate.
19085 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
19087 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19090 2005-12-02 Richard Guenther <rguenther@suse.de>
19092 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19094 2005-12-01 Roger Sayle <roger@eyesopen.com>
19096 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19099 2005-11-23 Laurent Guerby <laurent@guerby.net>
19101 * mlib-prj.adb (Build_Library): Initialize Delete.
19103 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19105 * socket.c: Add extern int h_errno for rtems since networking header
19106 files are not available at this point in a tool bootstrap. Newlib
19107 only has basic C library header files.
19109 2005-11-19 Richard Guenther <rguenther@suse.de>
19110 Roger Sayle <roger@eyesopen.com>
19113 * misc.c (internal_error_function): Don't use vsprintf to format
19114 the error message text, instead use pp_format_text and the new
19115 pretty printer APIs. This allows handling of %qs, %w, etc.
19117 2005-11-18 Laurent Guerby <laurent@guerby.net>
19120 * Makefile.in: Use s-auxdec-empty for RTEMS.
19122 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19125 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19126 a temporary if taking the address of something that is neither
19127 reference, declaration, or constant, since the gimplifier
19128 can't handle that case.
19130 2005-11-17 Laurent Guerby <laurent@guerby.net>
19133 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19135 2005-11-16 Richard Guenther <rguenther@suse.de>
19137 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19139 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19142 * raise-gcc.c: Add missing stdarg.h include.
19144 2005-11-16 Richard Guenther <rguenther@suse.de>
19146 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19147 (ada/misc.o): Likewise.
19149 2005-11-14 Thomas Quinot <quinot@adacore.com>
19151 * g-soccon.ads: Minor reformatting. Update comments.
19153 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19154 gain visibility on the declaration of struct timeval.
19156 * g-soccon-freebsd.ads,
19157 g-soccon-darwin.ads,
19158 g-soccon-tru64.ads,
19162 g-soccon-solaris.ads,
19164 g-soccon-mingw.ads,
19165 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19167 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19168 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19169 g-soccon-linux-x86.ads: New files.
19171 * g-socthi-mingw.adb:
19172 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19174 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19175 (time_t, suseconds_t): New types constructed to match the tv_sec
19176 and tv_usec fields of C struct timeval.
19177 (Timeval): Construct structure in terms of the new types.
19178 (Host_Errno): New function (imported from socket.c), returns last hosts
19181 * g-socthi-vxworks.adb: Add error handling circuitry.
19183 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19184 components of struct timeval.
19185 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19186 (Check_Selector): In error conditions, clear internal socket sets to
19187 avoid a memory leak.
19188 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19189 Send_Timeout, Receive_Timeout.
19191 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19192 the tv_sec and tv_usec fields of C struct timeval.
19193 (Timeval): Construct structure in terms of the new types.
19194 (Host_Errno): New function (imported from socket.c), returns last hosts
19197 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19198 hosts database last error code.
19200 * gen-soccon.c: Complete value expansion should not be performed on
19201 TARGET, as it has the form of a math expression, and some components
19202 may be platform-defined macros.
19203 For VxWorks, generate the OK and ERROR values.
19204 New constants giving the sizes of the components of C struct timeval.
19206 2005-11-14 Robert Dewar <dewar@adacore.com>
19207 Ed Schonberg <schonberg@adacore.com>
19210 * types.ads: Include All_Checks in Suppress_Array
19212 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19213 not(a=b), since we no longer do this rewriting, and hence it is not
19215 (Elaboration_Checks_Suppressed): Add special casing to
19216 deal with different cases of static and dynamic elaboration checks (all
19217 checks does not count in the first case, but does in the second).
19218 (Expr_Known_Valid): Do not assume that the result of any arbitrary
19219 function call is valid, since this is not the case.
19220 (Ensure_Valid): Do not apply validity check to a real literal
19221 in a universal or fixed context
19223 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19224 elementary types using the operator in standard. It is cleaner not to
19225 modify the programmers intent, especially in the case of floating-point.
19226 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19227 it did not matter because we always rewrote a/=b to not(a=b).
19228 (Expand_Allocator_Expression): For an allocator expression whose nominal
19229 subtype is an unconstrained packed type, convert the expression to its
19230 actual constrained subtype.
19231 Implement warning for <= or >= where < or > not possible
19232 Fix to Vax_Float tests (too early in many routines, causing premature
19233 Vax_Float expansions.
19235 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19236 to be used with packages and generic packages as well as with
19238 (Suppress): Set All_Checks, but not Elaboration_Check, for case
19239 of pragma Suppress (All_Checks)
19240 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19241 a string literal for precise control over warnings.
19242 Avoid raise of pragma in case of unrecognized pragma and just return
19245 * sem_prag.ads: Minor reformatting
19247 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19248 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19249 Switch. Do not handle any exception.
19250 Include -gnatwx as part of -gnatg (warn on redundant parens)
19251 Allow optional = after -gnatm
19252 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19253 longer sets Elaboration_Checks.
19254 Code to set warning mode moved to Sem_Warn
19255 so that it can be shared by pragma processing.
19257 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19260 * s-taprop-solaris.adb:
19261 Change some <= to =, to avoid new warning
19263 * a-exexda.adb, prj-proc.adb:
19264 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19265 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19267 2005-11-14 Robert Dewar <dewar@adacore.com>
19269 * exp_vfpt.adb: Handle /= case
19270 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19271 so that we do not get duplicate scaling for fixed point conversions.
19273 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19275 2005-11-14 Matthew Gingell <gingell@adacore.com>
19277 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
19278 Increase default priority on Lynx from 15 to 17, and meet the Ada
19279 requirement that Default_Priority be ((Priority'First +
19280 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19282 2005-11-14 Vincent Celier <celier@adacore.com>
19284 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19285 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19286 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19287 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19288 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19289 mlib-tgt-lynxos.adb (DLL_Prefix): New function
19291 2005-11-14 Doug Rupp <rupp@adacore.com>
19293 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19296 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19298 * s-traces-default.adb, s-trafor-default.ads,
19299 s-tratas-default.adb: Fix compilation errors.
19301 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19303 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19304 raising the exception so the memory used is freed.
19306 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19308 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19309 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19310 (convert_address): Update comments and list of platforms using this.
19312 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19315 2005-11-14 Pascal Obry <obry@adacore.com>
19316 Vincent Celier <celier@adacore.com>
19318 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19321 * memroot.adb: Remove redundant with/use clause on
19322 System.Storage_Elements.
19324 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19326 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19327 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19328 related code to a-exexpr.adb
19329 (Save_Occurrence_And_Private): Move GCC EH related code to
19331 (Raise_Current_Excep): Add new variable Id with pragma
19332 volatile, to ensure that the variable lives on stack.
19334 * a-exexpr-gcc.adb, raise-gcc.c: New file.
19336 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19338 Move GCC EH related code to a-exexpr-gcc.adb
19340 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19342 Split the Linux version of g-soccon into separate variants for 32 and 64
19344 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19345 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19346 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19347 of host variable $(RANLIB_FLAGS).
19348 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19349 Code clean up: remove unused/obsolete targets.
19350 (EH_MECHANISM): New variable introduced to differenciate between the
19351 two EH mechanisms statically.
19352 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19353 (LIBGNAT_OBJS): Add raise-gcc.o
19354 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19355 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19356 supports VxWorks 6 RTPs.
19357 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19358 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19360 * raise.c: Move all GCC EH-related routines to raise-gcc.c
19362 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19364 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19365 deferral level, when abort is not allowed, to a later stage (the
19367 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19368 it will not get changed by the generated code. It was previously done
19371 2005-11-14 Thomas Quinot <quinot@adacore.com>
19372 Olivier Hainque <hainque@adacore.com>
19373 Eric Botcazou <ebotcazou@adacore.com>
19376 Factor common code to build a storage type for an unconstrained object
19377 from a fat or thin pointer type and a constrained object type.
19378 (annotate_value): Handle BIT_AND_EXPR.
19379 (annotate_rep): Don't restrict the back annotation of inherited
19380 components to the type_annotate_only case.
19381 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19382 we are not defining the type.
19383 <E_Record_Type>: Likewise.
19384 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19385 to get advantage of the new maybe_stabilize_reference interface, to
19386 ensure that what we reference is indeed stabilized instead of relying
19387 on assumptions on what the stabilizer does.
19388 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19389 type imported through a limited_with clause, use its non-limited view.
19390 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19392 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19393 of #if sections + explicit comparisons of convention identifiers.
19394 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19395 before early-returning for certain types when code generation is
19397 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19398 nullification of gnu_expr we do for objects with address clause and
19399 that we are not defining.
19400 (elaborate_expression_1): Do not create constants when creating
19401 variables needed by the debug info: the dwarf2 writer considers that
19402 CONST_DECLs is used only to represent enumeration constants, and emits
19404 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19405 object with an address clause into an indirect reference, drop the
19406 initializing expression.
19408 (STACK_CHECK_BUILTIN): Delete.
19409 (STACK_CHECK_PROBE_INTERVAL): Likewise.
19410 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19411 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19412 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19413 corresponding to the renamed object as ignored for debugging purposes.
19415 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19416 related): For a prefix that is a dereference of a fat or thin pointer,
19417 if there is an actual subtype provided by the front-end, use that
19418 subtype to build an actual type with bounds template.
19419 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19420 is provided by the front-end, use that subtype to compute the size of
19421 the deallocated object.
19422 (gnat_to_gnu): When adding a statement into an elaboration procedure,
19423 check for a potential violation of a No_Elaboration_Code restriction.
19424 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19425 with extra arguments to control whether to recurse through non-values
19426 and to let the caller know if the stabilization has succeeded.
19427 (gnat_stabilize_reference): Now a simple wrapper around
19428 maybe_stabilize, for common uses without restriction on lvalues and
19429 without need to check for the success indication.
19430 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19431 pass false instead of 0 as the FORCE argument which is a bool.
19432 (Identifier_to_gnu): Remove checks ensuring that an renamed object
19433 attached to a renaming pointer has been properly stabilized, as no such
19434 object is attached otherwise.
19435 (call_to_gnu): Invoke create_var_decl to create the temporary when the
19436 function uses the "target pointer" return mechanism.
19437 Reinstate conversion of the actual to the type of the formal
19438 parameter before any other specific treatment based on the passing
19439 mechanism. This turns out to be necessary in order for PLACEHOLDER
19440 substitution to work properly when the latter type is unconstrained.
19442 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19444 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19445 with extra arguments to control whether to recurse through non-values
19446 and to let the caller know if the stabilization has succeeded.
19448 * utils2.c (gnat_build_constructor): Only sort the fields for possible
19449 static output of record constructor if all the components are constant.
19450 (gnat_build_constructor): For a record type, sort the list of field
19451 initializers in increasing bit position order.
19452 Factor common code to build a storage type for an unconstrained object
19453 from a fat or thin pointer type and a constrained object type.
19454 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19455 types variants, and process special cases of VIEW_CONVERT expressions
19456 as their NOP_EXPR counterpart to ensure we get to the
19457 CORRESPONDING_VARs associated with CONST_DECls.
19458 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19459 on the right-hand side.
19461 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19463 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19464 are converting back to its original type.
19465 (convert) <JM input>: Fallthrough regular conversion code instead of
19466 extracting the object if converting to a type variant.
19467 (create_var_decl): When a variable has an initializer requiring code
19468 generation and we are at the top level, check for a potential violation
19469 of a No_Elaboration_Code restriction.
19470 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19471 SIZE and SIZE_UNIT which we need for later back-annotations.
19472 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19473 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19474 is an unchecked union.
19475 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19476 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19477 main variant, just replace the VIEW_CONVERT_EXPR.
19478 <UNION_TYPE>: Revert 2005-03-02 change.
19480 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19482 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19484 2005-11-14 Matthew Heaney <heaney@adacore.com>
19486 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
19487 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
19488 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
19489 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
19490 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19491 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
19492 Compiles against the spec for ordered maps described in sections
19493 A.18.6 of the most recent (August 2005) AI-302 draft.
19495 2005-11-14 Olivier Hainque <hainque@adacore.com>
19497 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19498 to ensure bias adjustments take place when need be and to prevent
19499 occurrences of intermediate overflows.
19501 2005-11-14 Matthew Gingell <gingell@adacore.com>
19502 Olivier Hainque <hainque@adacore.com>
19504 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19507 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19508 tracebacks on ia64 HP-UX and provide explanatory comment.
19509 Enable backtraces on ia64 GNU/Linux.
19510 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19511 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19513 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19514 Javier Miranda <miranda@adacore.com>
19516 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19517 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19518 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19519 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19521 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19522 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19525 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19526 subprogram that generates the external name associated with a
19527 secondary dispatch table.
19528 (Get_Secondary_DT_External_Name): New subprogram that generates the
19529 external name associated with a secondary dispatch table.
19531 2005-11-14 Emmanuel Briot <briot@adacore.com>
19533 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19534 line in the ALI file to include both an instantiation reference, and a
19537 2005-11-14 Vincent Celier <celier@adacore.com>
19539 * clean.adb (Check_Project): Look for Ada code in extending project,
19540 even if Ada is not specified as a language.
19541 Use new function DLL_Prefix for DLL_Name
19542 (Clean_Interface_Copy_Directory): New procedure
19543 (Clean_Library_Directory): New procedure
19544 (Clean_Directory): Remove procedure, no longer used
19545 (Clean_Project): Do not delete any file in an externally built project
19547 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19548 directory of an extending project, even when there are no Ada source
19550 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19551 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19553 * mlib-prj.adb (Check_Library): For all library projects, get the
19554 library file timestamp.
19555 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19556 (Build_Library): Use new function DLL_Prefix for the DLL_Name
19557 (Clean): Remove procedure, no longer used
19558 (Ultimate_Extension_Of): New function
19559 (Build_Library): When cleaning the library directory, only remove an
19560 existing library file and any ALI file of a source of the project.
19561 When cleaning the interface copy directory, remove any source that
19562 could be a source of the project.
19564 * prj.ads, prj.adb (Project_Empty): Add values of new components
19565 Library_TS and All_Imported_Projects.
19566 (Project_Empty): Add values for new components of Project_Data:
19567 Library_ALI_Dir and Display_Library_ALI_Dir
19569 * prj-attr.adb: New project level attribute name Library_ALI_Dir
19571 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19572 attribute Library_ALI_Dir.
19573 (Check_Library_Attributes): The library directory cannot be the same as
19574 any source directory of the project tree.
19575 (Check_Stand_Alone_Library): The interface copy directory cannot be
19576 the same as any source directory of the project tree.
19578 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19579 all temporary files.
19581 2005-11-14 Robert Dewar <dewar@adacore.com>
19582 Ed Schonberg <schonberg@adacore.com>
19584 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19585 (Check_Elab_Call): A call within a protected body is never an
19586 elaboration call, and does not require checking.
19587 (Same_Elaboration_Scope): Take into account protected types for both
19589 (Activate_Elaborate_All_Desirable): New procedure
19591 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19594 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19595 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19597 * lib-writ.ads, lib-writ.adb:
19598 Implement new AD/ED for Elaborate_All/Elaborate desirable
19599 Use new Elaborate_All_Desirable flag in N_With_Clause node
19601 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19602 N_Free_Statement nodes.
19603 Define new class N_Subprogram_Instantiation
19604 Add Elaborate_Desirable flag to N_With_Clause node
19605 Add N_Delay_Statement (covering two kinds of delay)
19607 * debug.adb: Introduce d.f flag for compiler
19608 Add -da switch for binder
19610 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19611 Cyrille Comar <comar@adacore.com>
19613 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19614 for task component, in the case of a limited aggregate. The enclosed
19615 object declaration will create it earlier. Otherwise, in the case of a
19616 nested aggregate, the object may appear in the wrong scope.
19617 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19618 (Gen_Assign): If the component being assigned is an array type and the
19619 expression is itself an aggregate, wrap the assignment in a block to
19620 force finalization actions on the temporary created for each row of the
19622 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19623 structures are initialized after all discriminants are set so that
19624 they can be accessed even when their offset is dynamic.
19626 2005-11-14 Robert Dewar <dewar@adacore.com>
19627 Hristian Kirtchev <kirtchev@adacore.com>
19629 * sem_attr.adb: Implement Machine_Rounding attribute
19630 (Analyze_Access_Attribute): The access attribute may appear within an
19631 aggregate that has been expanded into a loop.
19632 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19633 'Terminated whenever the prefix is of a task interface class-wide type.
19634 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19635 the prefix is of a task interface class-wide type.
19637 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19640 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19641 Remove pragma Inline for [Unaligned_]Valid.
19642 Add comments that Valid routines do not work for Vax_Float
19644 * exp_attr.adb: Implement Machine_Rounding attribute
19646 * snames.h: Add entry for Machine_Rounding attribute
19648 2005-11-14 Javier Miranda <miranda@adacore.com>
19649 Robert Dewar <dewar@adacore.com>
19650 Hristian Kirtchev <kirtchev@adacore.com>
19652 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19653 and related): For a prefix that is an explicit dereference of an
19654 access to unconstrained packed array type, annotate the dereference
19655 with an actual subtype so GIGI can make a correct size computation.
19656 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19657 'Unrestricted_Access, if the designated type is an interface we
19658 add a type conversion to force the displacement of the pointer
19659 to the secondary dispatch table.
19660 Use Universal_Real instead of Long_Long_Float when we need a high
19661 precision float type for the generated code (prevents gratuitous
19662 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19663 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19664 'Terminated for task interface class-wide objects. Generate a call to
19665 the predefined dispatching routine used to retrieve the _task_id from
19666 a task corresponding record.
19667 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19669 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19670 (Check_Dispatching_Operation): Protect the frontend againts
19671 previously detected errors.
19673 * Makefile.rtl: Add new instantiations of system.fat_gen
19675 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
19676 Change name of instantiated package for better consistency
19677 with newly added system.fat_gen instantiations.
19679 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19680 s-fvagfl.ads: New files.
19682 2005-11-14 Cyrille Comar <comar@adacore.com>
19683 Thomas Quinot <quinot@adacore.com>
19685 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19686 assignment of a value of a tagged type that has been rewritten to a
19687 block statement, it is known by construction that no checks are
19688 necessary for the statements within the block: analyze it with checks
19690 (Expand_N_If_Statement): When killing a dead then-branch in an
19691 if-statement that has elsif_parts, recompute the Current_Value node
19692 for any entity whose value is known from the condition of the first
19694 (Expand_N_Return_Statement): When returning a mutable record, convert
19695 the return value into its actual subtype in order to help the backend
19696 to return the actual size instead of the maximum. This is another
19697 aftermath of not returning mutable records on the sec-stack anymore.
19699 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19700 handling of error msg for suspicious reverse range iteration.
19701 (Check_Possible_Current_Value_Condition): Move declaration from body to
19702 spec, to allow this subprogram to be called from exp_ch5.
19704 2005-11-14 Thomas Quinot <quinot@adacore.com>
19706 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19707 generate a set of nested array aggregates instead of a single flat
19708 aggregate for multi-dimensional arrays.
19710 2005-11-14 Pascal Obry <obry@adacore.com>
19712 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19713 by spawnve is a process handle, no need to convert. Add a parameter
19714 close to control wether the process handle must be closed.
19715 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19716 a process handle, not need to convert.
19717 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19719 * g-expect.adb: (Kill): Document the new close parameter.
19720 (Close): Do not release the process handle in the kill there as
19721 waitpid() is using it.
19722 (Send_Signal): Release the process handle.
19724 2005-11-14 Robert Dewar <dewar@adacore.com>
19726 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19727 need a high precision float type for the generated code (prevents
19728 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19731 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19732 need a high precision float type for the generated code (prevents
19733 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19735 (Expand_Width_Attribute): In configurable run-time, the attribute is not
19736 allowed on non-static enumeration subtypes. Force a load error to emit
19737 the correct diagnostic.
19739 2005-11-14 Thomas Quinot <quinot@adacore.com>
19740 Robert Dewar <dewar@adacore.com>
19741 Ed Schonberg <schonberg@adacore.com>
19743 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19744 subtype to compute the size of the designated object at run-time,
19745 create such a subtype and store it in the Actual_Designated_Subtype
19746 attribute of the N_Free_Statement.
19747 Generate itype for classwide designated object in both cases of
19748 user-specified storage pool: specific and class-wide, not only in the
19750 Raise CE when trying to set a not null access type object to null.
19751 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19752 an explicit loop, because freeze nodes make its position variable.
19754 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19757 2005-11-14 Javier Miranda <miranda@adacore.com>
19759 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19760 Build_Stream_Procedure): Add the null-excluding attribute to the first
19762 This has no semantic meaning under Ada95 mode but it is a
19763 requirement under Ada05 mode.
19765 * par-ch3.adb (P_Access_Definition): Addition of warning message if
19766 the null exclusion is used under Ada95 mode
19767 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19768 (P_Access_Definition): Remove assertion that forbids the use of
19769 the null-exclusion feature in Ada95.
19771 2005-11-14 Robert Dewar <dewar@adacore.com>
19773 * impunit.adb: Exclude container helper units not intended for use by
19776 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19778 * freeze.adb (Freeze_Entity): For an access formal that is an access
19779 to subprogram, freeze the anonymous subprogram type at the same time,
19780 to prevent later freezing in the wrong scope, such as the enclosing
19782 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19783 subprogram whenever available.
19785 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19788 * gnatvsn.ads (Library_Version): Bump to 4.1
19790 2005-11-14 Robert Dewar <dewar@adacore.com>
19792 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19793 Storage_Offset to avoid wrap around causing invalid results.
19795 2005-11-14 Pascal Obry <obry@adacore.com>
19797 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19799 (Scan_Bind_Arg): Fail with an error message if -M option is used
19800 on a native compiler.
19802 2005-11-14 Robert Dewar <dewar@adacore.com>
19803 Vincent Celier <celier@adacore.com>
19805 * gprep.adb: Implement -C switch to scan comments
19807 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19809 * scans.ads: Comment updates (including new use of Tok_Comment in
19812 * opt.ads: Add documentation for flags that are used by gprmake,
19813 currently and in the next version of gprmake.
19814 (Verbosity_Level): New variable
19815 Add Replace_In_Comments switch
19817 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19819 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19821 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19823 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19824 message, friendlier.
19826 2005-11-14 Robert Dewar <dewar@adacore.com>
19828 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19830 2005-11-14 Doug Rupp <rupp@adacore.com>
19832 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19834 2005-11-14 Robert Dewar <dewar@adacore.com>
19836 * interfac.ads: Change declarations of IEEE float types so that we no
19837 longer need a separate version of this package for VMS.
19839 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19841 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19842 internal entity created for the declaration of a child subprogram body
19843 with no spec as coming from source, to generate proper cross-reference
19846 2005-11-14 Vincent Celier <celier@adacore.com>
19848 * make.adb (Compile_Sources): Change verbose message to minimum
19849 verbosity level High for "is in an Ada library", "is a read-only
19850 library" and "is an internal library",
19851 (Create_Binder_Mapping_File): Path name of ALI file for library project
19852 must include the library directory, not the object directory.
19853 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19854 for new switches -vl, -vm and -vh.
19855 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19856 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19857 (Compile_Sources): Do not attempt to compile if an ALI file is missing
19858 in a project that is externally built.
19859 (Compute_All_Imported_Projects): New procedure
19860 (Gnatmake): Check if importing libraries should be regenerated because
19861 at least an imported library is more recent.
19862 (Initialize): For each project compute the list of the projects it
19863 imports directly or indirectly.
19864 (Add_Library_Search_Dir): New procedure, used in place of
19865 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19866 put in the search paths.
19867 (Add_Source_Search_Dir): New procedure, used in place of
19868 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19869 put in the search paths.
19870 (Mark_Directory): Resolve the absolute path the directory before marking
19873 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19874 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19875 Switch. Do not handle any exception.
19876 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19877 so that the switch is recognized as valid.
19878 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19880 2005-11-14 GNAT Script <nobody@adacore.com>
19882 * Make-lang.in: Makefile automatically updated
19884 2005-11-14 Pascal Obry <obry@adacore.com>
19886 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
19888 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
19889 In both cases the last argument was dropped.
19891 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
19893 * namet.h: (Column_Numbe): New type.
19894 (Get_Column_Number): Define to sinput__get_column_number.
19895 (Instantiation): Define to sinput__instantiation.
19896 (Get_Column_Number): Declare.
19897 (Instantiation): Likewise.
19899 2005-11-14 Robert Dewar <dewar@adacore.com>
19901 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
19902 syntax, which could cause compiler hangs.
19904 2005-11-14 Vincent Celier <celier@adacore.com>
19906 * prj-ext.adb: Take into account new environment variable
19907 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
19909 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
19910 normalize its path name, making it absolute and resolving symbolic
19911 links, and replace the original if resolved path is different.
19913 2005-11-14 Vincent Celier <celier@adacore.com>
19915 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
19916 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
19918 2005-11-14 Emmanuel Briot <briot@adacore.com>
19920 * prj-pp.adb (Print): Do not output the with statement if the
19921 associated name is empty, which happens for virtual extending projects.
19922 (Print): Preserve the "extends all" attribute when printing the project.
19924 * prj-tree.ads (String_Value_Of): Add comment about returned value for
19925 a virtual extending project.
19927 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19929 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
19930 rhs of an assignment even if the type is unconstrained, when the
19931 context is non-expanding.
19932 In an inlined body, if the context type is private,
19933 resolve with its full view, which must be a composite type.
19935 2005-11-14 Robert Dewar <dewar@adacore.com>
19936 Ed Schonberg <schonberg@adacore.com>
19938 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19939 Do not give obsolescent warning on with of subprogram (since we
19941 (Analyze_With_Clause): Add test for obsolescent package
19942 (Install_Context_Clauses): If the unit is the body of a child unit, do
19943 not install twice the private declarations of the parents, to prevent
19944 circular lists of Use_Clauses in a parent.
19945 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
19946 compiling body of child unit.
19947 Use new class N_Subprogram_Instantiation
19948 (Expand_With_Clause): If this is a private with_clause for a child unit,
19949 appearing in the context of a package declaration, then the implicit
19950 with_clauses generated for parent units are private as well.
19951 (License_Check): Do not generate message if with'ed unit is internal
19953 2005-11-14 Gary Dismukes <dismukes@adacore.com>
19954 Ed Schonberg <schonberg@adacore.com>
19955 Thomas Quinot <quinot@adacore.com>
19957 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
19958 names are internal, because they will not have a corresponding partner
19959 in the actual package.
19960 (Analyze_Formal_Package): Move the setting of the formal package spec's
19961 Generic_Parent field so that it occurs prior to analyzing the package,
19962 to allow proper operation of Install_Parent_Private_Declarations.
19963 (Analyze_Package_Instantiation): Set the instantiated package entity's
19964 Package_Instantiation field.
19965 (Get_Package_Instantiation_Node): Move declaration to package spec.
19966 Retrieve the N_Package_Instantiation node when the Package_Instantiation
19968 (Check_Generic_Child_Unit): Within an inlined call, the only possible
19969 instantiation is Unchecked_Conversion, for which no parents are needed.
19970 (Inline_Instance_Body): Deinstall and record the use_clauses for all
19971 parent scopes of a scope being removed prior to inlining an instance
19973 (Analyze_Package_Instantiation): Do not perform front-end inlining when
19974 the current context is itself an instance within a non-instance child
19975 unit, to prevent scope stack errors.
19976 (Save_References): If the node is an aggregate that is an actual in a
19977 call, rewrite as a qualified expression to preserve some type
19978 information, to resolve possible ambiguities in the instance.
19979 (Instance_Parent_Unit): New global variable to record the ultimate
19980 parent unit associated with a generic child unit instance (associated
19981 with the existing Parent_Unit_Visible flag).
19982 (type Instance_Env): New component Instance_Parent_Unit for stacking
19983 parents recorded in the global Instance_Parent_Unit.
19984 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
19986 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
19987 it's not a top-level unit, and only do this if Instance_Parent_Unit is
19988 not already set. Replace test of Is_Child_Unit with test of parent's
19989 scope against package Standard. Add comments and a ??? comment.
19990 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
19991 on a child instance parent to test that the parent equals
19992 Instance_Parent rather than simply checking that the unit is not a
19994 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
19995 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
19996 a formal interface are ancestors of the corresponding actual.
19997 (Validate_Formal_Interface_Type): Additional legality checks.
19998 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
19999 interface types with ancestors.
20000 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20001 to diagnose attempts to use generic within its own declaration.
20003 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20004 Javier Miranda <miranda@adacore.com>
20006 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20008 (Build_Private_Derived_Type): The entity of the created full view of the
20009 derived type does not come from source. If after installing the private
20010 declarations of the parent scope the parent is still private, use its
20011 full view to construct the full declaration of the derived type.
20012 (Build_Derived_Record_Type): Relax the condition that controls the
20013 execution of the check that verifies that the partial view and
20014 the full view agree in the set of implemented interfaces. In
20015 addition, this test now only takes into account the progenitors.
20016 (Derive_Interface_Subprograms): No need to derive subprograms
20017 of ancestors that are interfaces.
20018 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20020 Change name Is_Package to Is_Package_Or_Generic_Package
20021 (Complete_Subprograms_Derivation): Handle the case in which the full
20022 view is a transitive derivation of the ancestor of the partial view.
20023 (Process_Full_View): Rename local subprogram Find_Interface_In_
20024 Descendant to Find_Ancestor_Interface to leave the code more clear.
20025 Remove wrong code that avoids the generation of an error message
20026 when the immediate ancestor of the partial view is an interface.
20027 In addition some minor reorganization of the code has been done to
20028 leave it more clear.
20029 (Analyze_Type_Declaration): If type has previous incomplete tagged
20030 partial view, inherit properly its primitive operations.
20031 (Collect_Interfaces): Make public, for analysis of formal
20033 (Analyze_Interface_Declaration): New procedure for use for regular and
20034 formal interface declarations.
20035 (Build_Derived_Record_Type): Add support for private types to the code
20036 that checks if a tagged type implements abstract interfaces.
20037 (Check_Aliased_Component_Type): The test applies in the spec of an
20039 (Access_Type_Declaration): Clean up declaration of malformed type
20040 declared as an access to its own classwide type, to prevent cascaded
20042 (Collect_Interfaces): For private extensions and for derived task types
20043 and derived protected types, the parent may be an interface that must
20044 be included in the interface list.
20045 (Access_Definition): If the designated type is an interface that may
20046 contain tasks, create Master_Id for it before analyzing the expression
20047 of the declaration, which may be an allocator.
20048 (Record_Type_Declaration): Set properly the interface kind, for use
20049 in allocators, the creation of master id's for task interfaces, etc.
20051 2005-11-14 Javier Miranda <miranda@adacore.com>
20052 Ed Schonberg <schonberg@adacore.com>
20054 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20055 omitted in case of stream attribute subprograms.
20056 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20057 appear immediately after a subprogram body, when there is no previous
20058 subprogram declaration.
20059 Change name Is_Package to Is_Package_Or_Generic_Package
20060 (Process_Formals): A non null qualifier on a non null named access
20061 type is not an error, and is a warning only if Redundant_Constructs
20064 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20065 Ed Schonberg <schonberg@adacore.com>
20067 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20068 nested within Analyze_Package_Specification to install the private
20069 declarations and use clauses within each of the parent units of a
20070 package instance of a generic child package.
20071 (Analyze_Package_Specification): When entering a private part of a
20072 package associated with a generic instance or formal package, the
20073 private declarations of the parent must be installed (by calling new
20074 procedure Install_Parent_Private_Declarations).
20075 Change name Is_Package to Is_Package_Or_Generic_Package
20076 (Preserve_Full_Attributes): For a synchronized type, the corresponding
20077 record is absent in a generic context, which does not indicate a
20080 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20082 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20083 not try to rewrite a renamed stream attribute, because the operations
20084 on the type may not have been generated.
20085 Handle properly a renaming_as_body generated for a stream operation
20086 whose default is abstract because the object type itself is abstract.
20087 (Find_Type): If the type is incomplete and appears as the prefix of a
20088 'Class reference, it is tagged, and its list of primitive operations
20089 must be initialized properly.
20090 (Chain_Use_Clauses): When chaining the use clauses that appear in the
20091 private declaration of a parent unit, prior to compiling the private
20092 part of a child unit, find on the scope stack the proper parent entity
20093 on which to link the use clause.
20094 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20096 (Analyze_Object_Renaming): An attribute reference is not a legal object
20097 if it is not a function call.
20099 2005-11-14 Robert Dewar <dewar@adacore.com>
20100 Ed Schonberg <schonberg@adacore.com>
20102 * sem_eval.adb: Implement d.f flag
20103 (Subtype_Statically_Match): A generic actual type has unknown
20104 discriminants when the corresponding actual has a similar partial view.
20105 If the routine is called to validate the signature of an inherited
20106 operation in a child instance, the generic actual matches the full view,
20108 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20109 Ed Schonberg <schonberg@adacore.com>
20110 Robert Dewar <dewar@adacore.com>
20111 Thomas Quinot <quinot@adacore.com>
20113 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20114 a procedure call is used as a select statement trigger and is not an
20115 entry renaming or a primitive of a limited interface.
20116 (Valid_Conversion): If the operand has a single interpretation do not
20117 remove address operations.
20118 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20119 statement to inhibit warning.
20120 (Resolve_Unary_Op): Do not produce a warning when
20121 processing an expression of the form -(A mod B)
20122 Use Universal_Real instead of Long_Long_Float when we need a high
20123 precision float type for the generated code (prevents gratuitous
20124 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20125 (Resolve_Concatenation_Arg): Improve error message when argument is an
20126 ambiguous call to a function that returns an array.
20127 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20128 there is an implicit operator in the given scope if we are within an
20129 instance: legality check has been performed on the generic.
20130 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20131 after resolving operand, to avoid false warnings on overloaded calls.
20133 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20134 Javier Miranda <miranda@adacore.com>
20137 * sem_type.adb (Covers): In an inlined body, a composite type matches
20138 a private type whose full view is a composite type.
20139 (Interface_Present_In_Ancestor): Protect the frontend against
20140 previously detected errors to ensure that its compilation
20141 with assertions enabled gives the same output that its
20142 compilation without assertions.
20143 (Interface_Present_In_Ancestor): Add support for private types.
20144 Change name In_Actual to In_Generic_Actual (clean up)
20145 (Disambiguate): New predicate In_Actual, to recognize expressions that
20146 appear in the renaming declaration generated for generic actuals, and
20147 which must be resolved in the outer context.
20149 2005-11-14 Robert Dewar <dewar@adacore.com>
20150 Thomas Quinot <quinot@adacore.com>
20151 Hristian Kirtchev <kirtchev@adacore.com>
20152 Ed Schonberg <schonberg@adacore.com>
20154 * sem_util.ads, sem_util.adb: Change name Is_Package to
20155 Is_Package_Or_Generic_Package.
20156 (Check_Obsolescent): New procedure.
20157 (Set_Is_Public): Remove obsolete junk test.
20158 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20159 occurs within a handled_sequence_of_statemets.
20160 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20161 for a parameterless procedure.
20162 (Enter_Name): Recognize renaming declarations created for private
20163 component of a protected type within protected operations, so that
20164 the source name of the component can be used in the debugger.
20166 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20167 Robert Dewar <dewar@adacore.com>
20169 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20170 of a generic subprogram are not visible outside the body.
20171 (Set_Warning_Switch): New procedure (code to set warning mode moved
20172 here from Switch.C so that it can be shared by pragma processing.
20173 (Check_References): Special case warning for non-modified non-imported
20175 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20176 form with a string literal argument
20178 2005-11-14 Javier Miranda <miranda@adacore.com>
20180 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20182 (Write): Addition of "not null" to the anonymous access.
20183 (Read): Addition of "not null" to the anonymous access.
20184 (Write): Addition of "not null" to the anonymous access.
20186 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20187 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20188 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20189 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20190 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20191 "not null" to the anonymous access.
20193 2005-11-14 Robert Dewar <dewar@adacore.com>
20195 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20198 2005-11-14 Vincent Celier <celier@adacore.com>
20200 * switch.adb (Bad_Switch): New procedure
20201 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20202 message when in error.
20204 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20205 Too_Many_Output_Files): Remove declarations, no longer used.
20206 (Scan_Nat): New parameter Switch
20208 (Bad_Switch): New procedure
20210 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20211 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20212 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20213 to Osint.Fail. Do not handle any exception.
20215 2005-11-14 Vincent Celier <celier@adacore.com>
20217 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20218 designates a non existent directory.
20220 2005-11-14 Robert Dewar <dewar@adacore.com>
20222 * xgnatugn.adb: Replace invalid membership test by 'Valid
20224 2005-11-14 Vincent Celier <celier@adacore.com>
20226 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20227 there is no object directory.
20229 2005-11-14 Robert Dewar <dewar@adacore.com>
20231 * usage.adb: Minor adjustment to output format, use nn instead of nnn
20232 (so that -gnateInnn does not run into next column)
20234 2005-11-14 Ed Falis <falis@adacore.com>
20236 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20239 2005-11-14 Cyrille Comar <comar@adacore.com>
20241 * s-chepoo.ads: Add comments on Dereference.
20242 Remove unnecessary inherited abstract primitives.
20245 2005-11-14 Robert Dewar <dewar@adacore.com>
20247 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20248 node parameter, not needed, since it is available as Declaration_Node.
20250 2005-11-14 Geert Bosch <bosch@adacore.com>
20252 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20253 grammatically correct.
20255 2005-11-14 Vincent Celier <celier@adacore.com>
20257 * s-fileio.ads: Correct spelling error in comment
20259 2005-11-14 Cyrille Comar <comar@adacore.com>
20260 Robert Dewar <dewar@adacore.com>
20261 Vincent Celier <celier@adacore.com>
20262 Ben Brosgol <brosgol@adacore.com>
20263 Jose Ruiz <ruiz@adacore.com>
20264 Pascal Obry <obry@adacore.com>
20267 Document that -fstack-check is needed for strict compliance with the
20268 Ada 95 Reference Manual.
20269 Correct reference to VAX systems to meet HP guidelines
20270 Add documentation for new gnatmake switches -vl, -vm and -vh
20271 Replace DEC Ada by HP Ada
20272 Replace DIGITAL by HP
20273 Remove empty section on tools in compatibility section
20274 Clarify the Windows convention semantics.
20275 Document the Win32 calling convention.
20276 The Stdcall, Win32 and DLL convention are synonyms.
20277 Add a note in -gnatR description about zero size record components
20278 Note on new >= and <= warnings for -gnatwc
20279 Document that equal sign after -gnatm is optional.
20280 Note that strip is working fine on DLL built with a Library
20281 Project. The restriction apply only to DLL built with gnatdll.
20282 Update section about the way to debug a DLL.
20283 Update information about the DLL convention.
20284 Document -C switch for gnatprep
20285 Document new attribute Library_ALI_Dir
20286 Update elaboration doc to include implicit Elaborate pragmas now
20287 generated for subprogram instantiations.
20288 Document limitation on executable names that include spaces for --GCC,
20289 --GNATBIND, and --GNATLINK switches.
20290 Document that -w causes -gnatws to be added at start of gcc switches
20292 * gnat_rm.texi: Document that -mieee is needed for generating infinite
20293 and NaN values in case of overflow on machines that are not fully
20294 compliant with the IEEE floating-point standard.
20295 Create a section describing the set of compiler options needed for
20296 strict compliance with the Ada 95 Reference Manual.
20297 Add documentation for pragma Obsolescent applied to a package
20298 Clarify potential issues of mixed language programs related to the
20299 I/O buffering enabling in the elaboration of the GNAT runtime.
20300 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20301 This documentation only patch adds extra documentsion for pragma
20302 Restrictions (No_Elaboration_Code), explaining why it is not possible
20303 to document this restriction in terms of allowed source constructs.
20304 Document string literal form of pragma Warnings
20305 Document new attribute Library_ALI_Dir
20306 Add documentation on stable attributes in project files that was missing
20308 * gnat-style.texi: Indicate that paragraphs within a single comment
20309 should be separated by empty comment lines
20311 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20314 * bindusg.adb: Minor cleanup, put -m before -M for consistency
20316 2005-11-14 Robert Dewar <dewar@adacore.com>
20318 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20319 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20320 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20321 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20322 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20323 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20324 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20325 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20326 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20327 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20328 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20329 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20330 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20331 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20332 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20333 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20334 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20335 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20336 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20337 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20338 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20339 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20340 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20341 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20342 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20343 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20344 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20345 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20346 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20347 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20348 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20349 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20350 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20351 system-interix.ads, system-solaris-sparc.ads,
20352 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20353 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20354 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20355 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20356 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20357 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20358 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20359 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20360 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20361 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20362 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20363 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20364 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20365 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20366 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20367 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20368 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20369 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20370 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20371 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20372 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20373 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20374 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20375 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20376 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20377 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20378 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20379 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20380 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20381 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20382 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20383 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20384 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20385 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20386 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20387 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20388 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20389 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20390 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20391 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20392 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20393 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20394 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20395 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20396 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20397 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20398 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20399 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20400 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20401 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20402 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20403 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20404 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20405 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20406 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20407 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20408 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20409 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20410 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20411 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20412 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20413 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20414 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20415 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20416 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20417 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20418 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20419 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20420 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20421 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20422 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20423 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20424 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20425 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20426 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20427 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20428 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20429 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20430 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20431 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20432 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20433 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20434 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20435 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20436 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20437 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20438 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20439 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20440 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20441 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20442 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20443 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20444 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20445 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20446 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20447 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20448 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20449 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20450 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20451 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20452 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20453 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20454 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20455 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20456 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20457 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20458 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20459 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20460 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20461 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20462 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20463 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20464 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20465 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20466 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20467 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20468 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20469 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20470 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20471 a-numaux-darwin.ads, a-numaux-darwin.adb,
20472 a-swuwha.ads, a-stunha.ads: Minor reformatting
20474 2005-11-14 Robert Dewar <dewar@adacore.com>
20477 * osint-m.adb: Add pragma Elaborate_All for Osint
20479 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
20482 * trans.c (call_to_gnu): Restore statement lost in translation.
20484 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
20486 * init.c: Use the Linux-specific section for the IA-64/Linux target.
20487 (__gnat_adjust_context_for_raise): Add conditional code so that the
20488 IA-64 is also supported.
20490 2005-11-03 James E Wilson <wilson@specifix.com>
20493 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20494 TREE_OVERFLOW check.
20496 2005-09-21 Olivier Hainque <hainque@adacore.com>
20499 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20500 as we create them to store a size in bits.
20502 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
20510 * utils2.c (build_return_expr): New helper function.
20511 * gigi.h (build_return_expr): Declare it.
20512 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20513 of manually building the RETURN_EXPR tree.
20514 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20515 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20516 build_binary_op for the "target pointer" case. Use build_return_expr
20517 instead of manually building the RETURN_EXPR tree.
20519 2005-09-16 Laurent Guerby <laurent@guerby.net>
20522 * s-tpinop.ads: Make this unit Preelaborate.
20524 2005-09-16 Andreas Jaeger <aj@suse.de>
20526 * socket.c: Add string.h for memcpy.
20528 2005-09-05 Arnaud Charlet <charlet@adacore.com>
20530 * dec-io.ads, dec-io.adb: Removed, no longer used.
20532 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20534 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20536 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20537 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20538 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20539 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20540 dependent units are Preelaborate.
20541 (Initialize): Call Interrupt_Managemeent.Initialize and
20542 OS_Primitives.Initialize to ensure proper initialization of this unit.
20543 Remove use of System.Soft_Links
20544 Make this unit Preelaborate.
20546 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20547 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20548 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20549 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20550 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20551 s-tratas.ads, s-tasinf.ads: Minor reformatting.
20552 Add pragma Preelaborate, since these packages are suitable for this
20556 * s-traent-vms.ads, s-intman-dummy.adb,
20557 s-taprop-dummy.adb: Make this unit Preelaborate.
20559 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20560 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20561 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20562 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20563 s-intman-solaris.adb, s-intman-irix-athread.adb,
20564 s-intman-irix.adb: Mark this unit Preelaborate.
20565 (Initialize): New procedure.
20568 * s-taspri-linux.ads: Removed.
20570 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20571 as done by other implementations (e.g. posix).
20573 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20574 responsible for deferring abort.
20575 Mark this unit Preelaborate.
20577 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20578 proper initialization of the tasking run-time.
20580 * s-tasdeb.ads: Mark this unit Preelaborate.
20581 (Known_Tasks): Add explicit default value to avoid elaboration code.
20583 * s-inmaop-vms.adb (Elaboration code): Add call to
20584 Interrupt_Management.Initialize since the elaboration code depends on
20585 proper initialization of this package.
20587 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20588 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20589 s-osprim-posix.adb: Make this unit Preelaborate.
20591 * a-calend.adb: Add call to OS_Primitives.Initialize
20593 * a-elchha.adb: Update use of Except.Id.Full_Name.
20594 Minor reformatting.
20595 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20597 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20598 Move with clauses outside Warnings Off now that dependent units are
20600 Use raise xxx with "..."; Ada 2005 form.
20602 * a-taside.ads, a-taside.adb:
20603 Remove some dependencies, to make it easier to make this unit truly
20605 Rewrite some code to be conformant with Preelaborate rules.
20607 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20608 marked Preelaborate in the future.
20610 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20611 these units Preelaborate.
20613 * s-exctab.adb: Update use of Except.Id.Full_Name.
20615 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20616 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20617 Set_Exc_Stack_Addr): Removed, no longer used.
20618 Remove reference to *Machine_State_Addr*, no longer needed.
20620 * s-stalib.ads: Mark this unit as Preelaborate[_05].
20621 (Exception_Data): Full_Name is now a System.Address so that this unit
20622 can be made Preelaborate.
20623 Clean up/simplify code thanks to Full_Name being a System.Address.
20624 Remove obsolete pragma Suppress (All_Checks), no longer needed.
20626 * s-taskin.ads, s-taskin.adb:
20627 Move with clauses outside Warnings Off now that dependent units are
20629 Make this unit Preelaborate.
20630 (Initialize): New proceduure, replace elaboration code and makes the
20631 set up of the tasking run-time cleaner.
20632 (Detect_Blocking): Now a function instead of a deferred boolean, to
20633 obey Preelaborate rules.
20635 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20636 soft links, no longer used.
20638 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20639 packages are suitable for this categorization.
20641 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20642 since we compile run-time sources in Ada 2005 mode.
20643 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20644 avoid having s-taprop*.adb depend on s-soflin and to avoid code
20646 Remove reference to *Machine_State_Addr*, no longer needed.
20648 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20650 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20651 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20652 Remove reference to System.Exceptions.
20654 * s-mastop-x86.adb: Removed, no longer used.
20656 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20658 * a-excach.adb: Minor reformatting.
20660 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20661 instead fix new warnings that were hidden by this change.
20662 (AAA, ZZZ): Removed, replaced by...
20663 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20664 are used instead of constants, to help make Ada.Exception truly
20666 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20667 Raise_Storage_Error): File is now a System.Address, to simplify code.
20668 (Elab code): Removed, no longer used.
20669 (Null_Occurrence): Remove Warnings Off and make this construct
20671 Remove code related to front-end zero cost exception handling, since
20672 it is no longer used.
20673 Remove -gnatL/-gnatZ switches.
20675 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20676 Update use of Except.Msg.
20678 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20679 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20680 to front-end zero cost exception handling, since it is no longer used.
20681 Remove -gnatL/-gnatZ switches.
20683 * lib-writ.ads: Minor reformatting
20686 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20688 * Make-lang.in: Remove references to s-except.ads
20690 * s-except.ads: Removed, no longer used.
20692 * s-mastop.ads, s-mastop.adb:
20693 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20694 Remove reference to System.Exceptions.
20696 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20697 switch-b.adb: Remove code related to front-end zero cost exception
20698 handling, since it is no longer used.
20699 Remove -gnatL/-gnatZ switches.
20701 2005-09-01 Robert Dewar <dewar@adacore.com>
20702 Gary Dismukes <dismukes@adacore.com>
20703 Javier Miranda <miranda@adacore.com>
20705 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20706 type by valid test and generate warning.
20707 (Tagged_Membership): Generate call to the run-time
20708 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20709 Change formal name Subtype_Mark to Result_Definition in several calls to
20710 Make_Function_Specification.
20711 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20712 check for proper accessibility of the operand of a class-wide allocator.
20713 The check can be left out if checks are suppressed or if the expression
20714 has a specific tagged type whose level is known to be safe.
20716 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20717 generates the run-time check associated with null-excluding entities.
20718 (Expand_N_Return_Statement): Add tests to determine if the accessibility
20719 check on the level of the return expression of a class-wide function
20720 can be elided. The check usually isn't needed if the expression has a
20721 specific type (unless it's a conversion or a formal parameter). Also
20722 add a test for whether accessibility checks are suppressed. Augment
20723 the comments to describe the conditions for performing the check.
20725 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
20726 Javier Miranda <miranda@adacore.com>
20727 Gary Dismukes <dismukes@adacore.com>
20728 Ed Schonberg <schonberg@adacore.com>
20730 * a-tags.adb (IW_Membership): Give support to
20731 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20732 subprogram has been extended to look for the tag in the ancestors tag
20734 Update the structure of the GNAT Dispatch Table to reflect the
20735 additional two tables used in dispatching selects.
20736 Introduce appropriate array types and record components in
20737 Type_Specific_Data to reflect the two tables.
20738 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20739 the TSD of a tag, indexed by position.
20740 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20741 operation kind in the TSD of a tag, indexed by position.
20743 * a-tags.ads: Introduce an enumeration type to capture different
20744 primitive operation kinds. Define a constant reflecting the number of
20745 predefined primitive operations.
20746 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20747 of an entry wrapper.
20748 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20749 callable entity of a primitive operation.
20751 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20752 primitive operations used in dispatching selects for limited
20753 interfaces, limited tagged, task and protected types what implement a
20755 (Freeze_Type): Generate the bodies of the primitive operations used in
20756 dispatching selects for limited tagged, task and protected types that
20757 implement a limited interface. Generate statements to populate the two
20758 auxiliary tables used for dispatching in select statements.
20759 (Freeze_Record_Type): Add call to initialize the dispatch table entries
20760 associated with predefined interface primitive operations.
20761 (Build_Dcheck_Function): Change Set_Subtype_Mark to
20762 Set_Result_Definition.
20763 (Build_Variant_Record_Equality): Change Subtype_Mark to
20765 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20766 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20767 (Build_Assignment): Simplify the code that adds the run-time-check.
20768 (Expand_N_Object_Declaration): Code cleanup.
20770 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20771 entries when there is a protected type that implements a limited
20774 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20775 common routines used in expansion of dispatching selects.
20776 (Add_Private_Declarations): Select the appropriate protection type when
20777 there is a protected type that implements a limited interface.
20778 (Build_Parameter_Block): Generate a wrapped parameter block.
20779 (Build_Protected_Subprogram_Body): Select the appropriate type for
20780 locking entries when there is a protected type that implements a
20782 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20783 classified as entry wrappers.
20784 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20785 asynchronous selects.
20786 (Expand_N_Conditional_Entry_Call): Add support for expansion of
20787 dispatching conditional selects.
20788 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20789 protection when there is a protected type that implements limited
20791 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20793 (Extract_Dispatching_Call): Extract the entity of the name of a
20794 dispatching call, the object parameter, actual parameters and
20795 corresponding formals.
20796 (Make_Initialize_Protection): Correct logic of protection initialization
20797 when there is a protected type that implements a limited interface.
20798 (Parameter_Block_Pack): Populate a wrapped parameter block with the
20799 values of actual parameters.
20800 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20801 block and assign them to the original actual parameters.
20803 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20804 (Build_Protected_Sub_Specification): Change the type and name of the
20805 last formal to account for the increased variety of protection modes.
20807 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20808 entities. Used to save the value of the Is_Hidden attribute when the
20809 limited-view is installed.
20810 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20811 the attribute of procedures classified as entry wrappers.
20812 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20813 entity of a primitive wrapper.
20814 (Write_Entity_Flags): Output the name and value of the
20815 Is_Primitive_Wrapper attribute.
20816 (Write_Field27_Name): Output the name and entity of the field Wrapped_
20818 (Underlying_Type): If we have an incomplete entity that comes from
20819 the limited view then we return the Underlying_Type of its non-limited
20820 view if it is already available.
20821 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20822 including operators.
20823 (Write_Field26_Name): Add entry for Overridden_Operation
20824 (Overridden_Operation): New attribute of functions and procedures.
20826 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20827 predefined position in the dispatch table for the primitive operations
20828 used in dispatching selects.
20829 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20830 predefined primitive operations and replace it with
20831 Default_Prim_Op_Count.
20832 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20833 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20834 the names of the generated primitive operations used in dispatching
20836 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20837 case of abstract interface types. They will be inherit by the objects
20838 implementing the interface.
20839 (Make_DT): There is no need to inherit the dispatch table of the
20840 ancestor interface for the elaboration of abstract interface types.
20841 The dispatch table will be inherited by the object implementing the
20843 (Copy_Secondary_DTs): Add documentation.
20844 (Validate_Position): Improve this static check in case of
20845 aliased subprograms because aliased subprograms must have
20847 (Init_Predefined_Interface_Primitives): New subprogram that initializes
20848 the entries associated with predefined primitives of all the secondary
20850 (Build_Anonymous_Access_Type): Removed.
20851 (Expand_Interface_Actuals): With the previous cleanup there is no need
20852 to build an anonymous access type. This allows further cleanup in the
20853 code generated by the expander.
20854 (Expand_Interface_Conversion): If the actual is an access type then
20855 build an internal function to handle the displacement. If the actual
20856 is null this function returns null because no displacement is
20857 required; otherwise performs a type conversion that will be
20858 expanded in the code that returns the value of the displaced actual.
20859 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20860 conversions that have no effect in the generated code because no
20861 displacement is required. Code cleanup; use local variables to
20862 avoid repeated calls to the subprogram directly_designated_type().
20864 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20865 Classify the primitive operations used in dispatching selects as
20867 (Implements_Limited_Interface): Determine whether some type either
20868 directly implements a limited interface or extends a type that
20869 implements a limited interface.
20870 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20871 (Expand_Subtype_From_Expr): Do not build actual subtype if the
20872 expression is limited.
20873 (Find_Interface_Tag): Add code to handle class-wide types and
20874 entities from the limited-view.
20876 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20877 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20878 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20879 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20882 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
20883 of procedure name or prefix that appears as a trigger in a triggering
20886 * uintp.ads: Introduce constants Uint_11 and Uint_13.
20888 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20890 * s-tataat.adb, a-tasatt.adb:
20891 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
20893 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
20894 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
20895 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
20898 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20899 Jose Ruiz <ruiz@adacore.com>
20901 * s-taprop-vxworks.adb:
20902 Move with clauses outside Warnings Off now that dependent units are
20904 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
20905 initialization of this unit.
20906 (Specific): Add new procedures Initialize and Delete so that this
20907 package can be used for VxWorks 5.x and 6.x
20908 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
20909 differences between VxWorks 5.x and 6.x
20910 Minor reformatting.
20911 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
20913 Use only Preelaborate-compatible constructs.
20915 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
20916 Primitives.Operations.
20917 (Delete, Initialize): New procedures.
20919 * s-osinte-vxworks.adb: Body used to handle differences between
20920 VxWorks 5.x and 6.x
20921 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
20923 * s-osinte-vxworks.ads: Minor reformatting.
20924 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
20925 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
20927 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
20928 between Vxworks 5 and 6.
20929 (taskLock, taskUnlock): Removeed, no longer used.
20931 * adaint.c: The wait.h header is not located in the sys directory on
20932 VxWorks when using RTPs.
20933 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
20935 (__gnat_dup): dup is available on Vxworks when using RTPs.
20936 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
20938 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
20940 * expect.c: The wait.h header is not located in the sys directory on
20941 VxWorks when using RTPs.
20943 2005-09-01 Thomas Quinot <quinot@adacore.com>
20945 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
20947 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
20949 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
20950 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20951 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
20952 g-soccon-freebsd.ads: Add new constants:
20954 SO_RCVTIMEO/SO_SNDTIMEO
20958 Move all target-specific file inclusions and macro definitions to
20959 gsocket.h, in order to ensure that any C code in socket.c will see a
20960 set of constants that is consistent with the contents of g-soccon.ads.
20962 * gsocket.h: Code imported from gen-soccon.c:
20963 Move all target-specific file inclusions and macro definitions to
20964 gsocket.h, in order to ensure that any C code in socket.c will see a set
20965 of constants that is consistent with the contents of g-soccon.ads.
20966 This change also makes gen-soccon self-contained (removing dependencies
20967 upon GCC internal headers).
20969 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
20971 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
20973 * socket.c: Minor reformatting.
20975 2005-09-01 Ed Schonberg <schonberg@adacore.com>
20976 Thomas Quinot <quinot@adacore.com>
20978 * fname-sf.adb, mlib-tgt.ads,
20979 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
20980 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
20981 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
20982 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
20983 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
20984 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
20985 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
20986 makegpr.adb: Remove redundant use_clauses.
20988 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20990 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
20991 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
20992 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
20993 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
20994 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
20995 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
20996 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
20997 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
20998 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20999 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21000 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21001 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21002 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21003 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21004 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21005 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21006 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21007 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21008 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21009 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21010 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21011 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21012 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21013 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21014 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21015 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21016 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21017 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21018 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21019 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21020 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21021 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21022 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21023 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21024 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21025 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21026 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21027 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21028 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21029 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21030 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21031 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21032 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21033 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21034 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21035 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21036 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21037 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21038 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21039 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21040 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21041 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21042 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21043 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21044 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21045 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21046 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21047 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21048 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21049 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21050 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21051 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21052 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21053 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21054 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21055 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21056 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21057 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21058 and always use the no parameter form for consistency.
21060 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21062 2005-09-01 Robert Dewar <dewar@adacore.com>
21064 * binde.adb: Minor reformatting
21065 (Find_Elab_Order): Output warning if -p used with static elab order
21067 2005-09-01 Robert Dewar <dewar@adacore.com>
21069 * checks.adb (Check_Needed): New procedure, deals with removing checks
21070 based on analysis of short-circuited forms. Also generates warnings for
21071 improper use of non-short-circuited forms.
21074 2005-09-01 Robert Dewar <dewar@adacore.com>
21076 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21079 2005-09-01 Robert Dewar <dewar@adacore.com>
21081 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21083 Implement new insertion char < (conditional warning)
21084 * errutil.adb, erroutc.adb: Implement new insertion char <
21085 (conditional warning).
21086 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21087 (Error_Msg_Warn): New variable for < insertion char.
21088 * prj-nmsc.adb: Implement new errout insertion char < (conditional
21090 (Check_For_Source): Change value of Source_Id only after the current
21091 source has been dealt with.
21093 2005-09-01 Robert Dewar <dewar@adacore.com>
21094 Doug Rupp <rupp@adacore.com>
21096 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21097 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21098 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21099 (Valid_D, Valid_F, Valid_G): New functions
21101 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21102 Hristian Kirtchev <kirtchev@adacore.com>
21103 Javier Miranda <miranda@adacore.com>
21105 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21106 from object notation, the original node is unanalyzed and carries no
21107 semantic information, so that accessiblity checks must be performed on
21108 the type of the actual itself.
21109 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21110 compatibility with Build_Protected_Sub_Specification.
21111 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21112 overloaded primitives.
21113 (Register_Interface_DT_Entry): Use the new name of the formal
21114 the the calls to Expand_Interface_Thunk
21116 * exp_dbug.ads: Augment comments on encoding of protected types to
21117 include the generation of dispatching subprograms when the type
21118 implements at least one interface.
21120 * lib.ads: Extend information in Load_Stack to include whether a given
21121 load comes from a Limited_With_Clause.
21123 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21124 whether a potential circularity is harmless, because it includes units
21125 loaded through a limited_with clause. Extends previous treatment which
21126 did not handle properly arbitrary combinations of limited and
21127 non-limited clauses.
21129 2005-09-01 Nicolas Setton <setton@adacore.com>
21131 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21132 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21133 typ___XB_lowerbound__upperbound.
21135 2005-09-01 Thomas Quinot <quinot@adacore.com>
21137 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21138 dummy access formal for RACW/RAS TypeCode TSS.
21139 (Build_TypeCode_Call): Do not generate dummy null access actual for
21140 calls to the TypeCode TSS.
21142 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21144 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21145 fully qualified name, to distinguish instances with the same local name.
21147 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21150 2005-09-01 Robert Dewar <dewar@adacore.com>
21152 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21155 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21157 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21158 (Free): New deallocation procedure for filter elements
21159 (Close): Deallocate any existing filter for the concerned connection
21161 2005-09-01 Laurent Pautet <pautet@adacore.com>
21163 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21164 position set is provided, we compute one in order to reduce the maximum
21165 length of the keys. This computation first selects a character
21166 position between 1 and the minimum length of the keys in order to
21167 avoid reducing one of the keys to an empty string.
21168 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21169 does not converge. The initialization procedure now comes with a
21170 maximum number of iterations such that when exceeded, an exception is
21171 raised in Compute. The user can initialize this ratio to another value
21173 Reformating and updated headers.
21175 2005-09-01 Javier Miranda <miranda@adacore.com>
21177 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21178 that given an entity T creates and returns an Itype that duplicates the
21179 contents of T. The returned Itype has the null-exclusion
21180 attribute set to True, and its Etype attribute references T
21181 to keep the association between the two entities.
21182 Update copyright notice
21184 * sem_aggr.adb (Check_Can_Never_Be_Null,
21185 Aggregate_Constraint_Checks, Resolve_Aggregate,
21186 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21188 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21190 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21191 Robert Dewar <dewar@adacore.com>
21192 Hristian Kirtchev <kirtchev@adacore.com>
21194 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21197 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21199 Call Set_Result_Definition instead of Set_Subtype_Mark.
21200 (P_Subprogram_Specification): Add parsing of anonymous access result
21201 plus null exclusions. Call Set_Result_Definition instead of
21204 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21205 (P_Access_Type_Definition): Add parsing for an anonymous access result
21206 subtype, plus parsing for null exclusions. Call Set_Result_Definition
21207 instead of Set_Subtype_Mark.
21209 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21210 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21211 (Result_Definition): New function for N_Function_Specifications.
21212 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21213 N_Function_Specification.
21214 (Set_Null_Exclusion_Present): Allow this flag for
21215 N_Function_Specification.
21216 (Set_Result_Definition): New procedure for N_Function_Specifications.
21217 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21218 and N_Function_Specification.
21220 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21221 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21222 Add support for LIMITED NEW for Ada 2005 AI-419
21223 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21224 syntax for anonymous access results.
21225 Replace Subtype_Mark field by Result_Definition in
21226 N_Function_Specification and N_Access_Definition specs.
21227 Add Null_Exclusion_Present to spec of N_Function_Specification.
21228 (Result_Definition): New function for N_Function_Specification and
21229 N_Access_Function_Definition.
21230 (Set_Result_Definition): New procedure for N_Function_Specification and
21231 N_Access_Function_Definition.
21233 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21234 Result_Definition for cases of N_Access_Function_Definition and
21235 N_Function_Specification.
21236 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21238 2005-09-01 Vincent Celier <celier@adacore.com>
21240 * lib-writ.adb: Update Copyright notice
21241 (Write_With_Lines): On platforms where file names are case-insensitive,
21242 record the file names in lower case.
21243 (Write_ALI): For D lines, on platforms where file names are
21244 case-insensitive, record the file names in lower case.
21246 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21247 Emmanuel Briot <briot@adacore.com>
21249 * lib-xref.adb (Output_Overridden_Op): Display information on
21250 overridden operation.
21252 * lib-xref.ads: Add documentation on overridden operations.
21254 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21257 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21258 overriding entity information.
21260 2005-09-01 Vincent Celier <celier@adacore.com>
21262 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21263 including those that are inherited.
21265 2005-09-01 Robert Dewar <dewar@adacore.com>
21267 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21269 * par-prag.adb: Implement new pragma Debug_Policy
21271 * sem_prag.adb Implement new pragma Debug_Policy
21272 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21273 Component_Size attribute specification. Give warning for ignored pragma
21276 * snames.h, snames.ads, snames.adb: Introduce entries in
21277 Preset_Names for Name_Disp_Asynchronous_Select,
21278 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21279 Name_Disp_Timed_Select.
21280 New pragma Debug_Policy
21282 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21284 Switch -gnata also sets Debug_Pragmas_Enabled
21286 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21287 handle an explicit -gnata when compiling predefined files.
21289 2005-09-01 Vincent Celier <celier@adacore.com>
21291 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21292 directories of projects that have no Ada sources.
21294 2005-09-01 Robert Dewar <dewar@adacore.com>
21296 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21297 (makes a difference for wide characters)
21299 * widechar.adb, widechar.ads:
21300 Add Wide_Char_Byte_Count feature to count chars vs bytes
21302 2005-09-01 Thomas Quinot <quinot@adacore.com>
21303 Ed Schonberg <schonberg@adacore.com>
21304 Robert Dewar <dewar@adacore.com>
21306 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21307 'Address attribute reference with an overloaded prefix, use the
21308 location of the prefix (not the location of the attribute reference) as
21309 the error location.
21310 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21311 a function renaming thereof, is a valid prefix for 'Size (where it is
21312 intepreted as a function call).
21313 (Statically_Denotes_Entity): New predicate to determine whether the
21314 prefix of an array attribute can be considered static.
21317 (Eval_Attr): Fix failure to evaluate Component_Size for
21318 unconstrained arrays (resulted in wrong value in packed case, since
21319 back end cannot handle this case)
21321 2005-09-01 Robert Dewar <dewar@adacore.com>
21323 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21324 error msgs for most common cases.
21325 Use new errout insertion char < (conditional warning)
21327 2005-09-01 Javier Miranda <miranda@adacore.com>
21328 Ed Schonberg <schonberg@adacore.com>
21330 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21331 become local to the whole package.
21332 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21333 the package was already analyzed the new algorithm "replaces" the
21334 real entities by the shadow ones. This is required to ensure that
21335 the order of these entities in the homonym chains does not change;
21336 otherwise we can have undefined references at linking time because
21337 in case of conflicts the external name of the entities will have
21338 a suffix that depends on the order of the entities in the chain.
21339 (Remove_Limited_With_Clause): Complementary code that completes the
21340 new algorithm and replaces the shadow entities by the real ones.
21341 (Install_Limited_Withed_Unit): When unchaining entities before the
21342 installation of the shadow entities, only regular entities of the
21343 public part must be taken into account. This is required to
21344 keep this routine in synch with the work done by Remove_Limited_
21346 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21347 even if unit is analyzed, because the analysis of the unit is
21348 idempotent in any case, and the limited view of the unit may have to
21349 be installed for proper visibility.
21350 (Expand_Limited_With_Clause): Even if the unit in the implicit
21351 with_clause has been analyzed already, a limited view of the package
21352 must be built for the current context, if it does not exist yet.
21354 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21355 Javier Miranda <miranda@adacore.com>
21356 Gary Dismukes <dismukes@adacore.com>
21358 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21359 defining entity for the instance body, make a new defining identifier
21360 rather than copying the entity of the spec, to prevent accidental
21361 sharing of the entity list.
21362 (Check_Private_View): When exchanging views of private types, build the
21363 list of exchanged views as a stack, to ensure that on exit the exchanges
21364 are undone in the proper order.
21365 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21366 Restore the compilation environment in case of instantiation_error.
21367 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21368 for an anonymous access result.
21369 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21370 (Formal_Entity): Handle properly the case of a formal package that
21371 denotes a generic package renaming.
21373 2005-09-01 Thomas Quinot <quinot@adacore.com>
21375 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21376 clause if the array aggregate is surrounded by parentheses.
21378 2005-09-01 Cyrille Comar <comar@adacore.com>
21379 Gary Dismukes <dismukes@adacore.com>
21380 Ed Schonberg <schonberg@adacore.com>
21381 Javier Miranda <miranda@adacore.com>
21383 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21385 to check if a type is Constrained in cases related to code generation
21386 (rather than semantic checking) since otherwise we do not generate
21387 similar code for mutable private types depending if their
21388 discriminants are visible or not.
21389 (Check_Abstract_Overriding): Do not complain about failure to override
21390 the primitive operations used in dispatching selects since they will
21391 always be overriden at the freeze point of the type.
21392 (Access_Definition): Separate out handling for resetting the scope
21393 of an anonymous access function result type. Retrieve the scope
21394 of the associated function rather than using Current_Scope, which
21395 does not have a consistent value (depends on whether we're in the
21396 middle of analyzing formal parameters). Add ??? comment about
21397 finding a cleaner way to handle the special cases of scope setting.
21398 (Process_Incomplete_Dependents): A protected operation is never a
21399 dispatching operation (only its wrapper may be).
21400 (Build_Derived_Record_Type): In case of tagged private types that
21401 implement interfaces add derivation of predefined primitive
21403 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21404 by two parameters that are used in case of derivation from abstract
21405 interface types: No_Predefined_Prims is used to avoid the derivation
21406 of predefined primitives from the interface, and Predefined
21407 Prims_Only is used to complete the derivation predefined primitives
21408 in case of private tagged types implementing interfaces.
21409 Fix typo in comments
21410 (Find_Interface_In_Descendant): Protect the frontend against
21411 wrong code with large circularity chains.
21412 (Is_Private_Overriding): Add support for entities overriding interface
21413 subprograms. The test failed because Entities associated with overriden
21414 interface subprograms are always marked as hidden (and used to build
21415 the secondary dispatch table); in this case the overriden entity is
21416 available through the field abstract_interface_alias (cf. override_
21417 dispatching_operation)
21418 (Access_Definition): Set the scope of the type to Current_Scope for the
21419 case of a function with an anonymous access result type.
21420 (Access_Subprogram_Declaration): Handle creation of the type entity for
21421 an access-to-function type with an anonymous access result.
21422 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21423 in handling for N_Access_Function_Definition.
21424 (Analyze_Subtype_Declaration): Modify the text of error message.
21425 (Derived_Type_Declaration): Modify the text of error message.
21426 (Process_Subtype): Modify the text of error message plus cleanup
21427 of one redundant error message.
21428 (Analyze_Component_Declaration): Code cleanup.
21429 (Analyze_Object_Declaration): Code cleanup.
21430 (Analyze_Subtype_Declaration): Propagate the null-exclusion
21431 attribute in case of access types. Code cleanup.
21432 (Array_Type_Declaration): Code cleanup.
21433 (Process_Discriminants): Create the new null-excluding itype
21434 if required. Code cleanup.
21435 (Process_Subtype): Create the new null-excluding itype if
21436 required. Code cleanup.
21437 (Build_Derived_Record_Type): Code cleanup to avoid calling
21438 twice the subprogram derive_subprograms in case of private
21439 types that implement interfaces. In this particular case the
21440 subprogram Complete_Subprograms_Derivation already does the
21441 job associated with the second call.
21443 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21444 conversion to the full view when generating an operation for a
21445 discriminant whose type may currently be private.
21447 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21448 Javier Miranda <miranda@adacore.com>
21450 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21451 V (Obj.F), the rewriting does not involve the indexed component, but
21452 only the selected component itself.
21453 Do not apply the transformation if the analyzed node is an actual of a
21454 call to another subprogram.
21455 (Complete_Object_Operation): Retain the entity of the
21456 dispatching operation in the selector of the rewritten node. The
21457 entity will be used in the expansion of dispatching selects.
21458 (Analyze_One_Call): Improve location of the error message associated
21460 (Analyze_Selected_Component): No need to resolve prefix when it is a
21461 function call, resolution is done when parent node is resolved, as
21463 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21464 when attempting to resolve a call transformed from its object notation.
21465 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21466 of the argument list for each interpretation of the operation.
21467 (Try_Object_Operation): The designated type of an access parameter may
21468 be an incomplete type obtained through a limited_with clause, in which
21469 case the primitive operations of the type are retrieved from its full
21471 (Analyze_Call): If this is an indirect call, and the return type of the
21472 access_to_subprogram is incomplete, use its full view if available.
21474 2005-09-01 Javier Miranda <miranda@adacore.com>
21475 Gary Dismukes <dismukes@adacore.com>
21477 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21478 access types the null-exclusion and access-to-constant attributes must
21480 (Analyze_Return_Statement): When the result type is an anonymous access
21481 type, apply a conversion of the return expression to the access type
21482 to ensure that appropriate accessibility checks are performed.
21483 (Analyze_Return_Type): For the case of an anonymous access result type,
21484 generate the Itype and set Is_Local_Anonymous_Access on the type.
21485 Add ??? placeholder for check to disallow returning a limited object
21486 in Ada 2005 unless it's an aggregate or a result of a function call.
21487 Change calls from Subtype_Mark to Result_Definition.
21488 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21489 Result_Definition in call to Make_Function_Specification.
21490 (Build_Body_To_Inline): Change Set_Subtype_Mark to
21491 Set_Result_Definition.
21492 (Make_Inequality_Operator): Change formal Subtype_Mark to
21493 Result_Definition in call to Make_Function_Specification.
21494 (Process_Formals): Create the new null-excluding itype if required.
21495 (New_Overloaded_Entity): For an entity overriding an interface primitive
21496 check if the entity also covers other abstract subprograms in the same
21497 scope. This is required to handle the general case, that is, overriding
21498 other interface primitives and overriding abstract subprograms inherited
21499 from some abstract ancestor type.
21500 (New_Overloaded_Entity): For an overriding entity that comes from
21501 source, note the operation that it overrides.
21502 (Check_Conformance, Type_Conformant): Addition of one new formal
21503 to skip controlling formals in the analysis. This is used to
21504 handle overloading of abstract interfaces.
21505 (Base_Types_Match): Add missing case for types imported from
21506 limited-with clauses
21507 (New_Overloaded_Entity): Add barrier to protect the use of
21508 the "alias" attribute.
21510 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21512 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21513 verify that the procedure and the entry are mode conformant.
21514 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21515 as a different operator, which is often a cut-and-paste error.
21517 2005-09-01 Javier Miranda <miranda@adacore.com>
21518 Ed Schonberg <schonberg@adacore.com>
21520 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21521 used in controlling parameters exclude null because it is necessary to
21522 read the tag to dispatch, and null has no tag.
21523 (Override_Dispatching_Operation): If the previous operation is inherited
21524 from an interface, it becomes hidden and does not participate in later
21527 2005-09-01 Javier Miranda <miranda@adacore.com>
21528 Ed Schonberg <schonberg@adacore.com>
21529 Gary Dismukes <dismukes@adacore.com>
21531 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21532 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21533 the expander will generate the corresponding run-time check to evaluate
21535 (Resolve_Call): Check for legal type of procedure name or prefix that
21536 appears as a trigger in a triggering alternative.
21537 (Valid_Conversion): If expression is ambiguous and the context involves
21538 an extension of System, remove System.Address interpretations.
21539 (Resolve_Qualified_Expression): Reject the case of a specific-type
21540 qualification applied to a class-wide argument. Enhance comment
21541 to explain checking of Original_Node.
21542 (Resolve_Type_Conversion): The location of the error message was not
21543 general enough to handle the general case and hence it has been removed.
21544 In addition, this patch improves the text of the message.
21545 (Resolve_Type_Conversion): Add missing support for access to interface
21547 (Resolve_Type_Conversion): If the target is a class-wide interface type,
21548 do not expand if the expression is the actual in a call, because proper
21549 expansion will take place when the call itself is expanded.
21550 (Resolve_Allocator): If the context is an unchecked conversion, the
21551 allocator inherits its storage pool, if any, from the target type of
21554 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21555 Javier Miranda <miranda@adacore.com>
21557 * sem_type.adb (Add_One_Interp): If a candidate operation is an
21558 inherited interface operation that has an implementation, use the
21559 implementation to avoid spurious ambiguities.
21560 (Interface_Present_In_Ancestor): In case of concurrent types we can't
21561 use the Corresponding_Record_Typ attribute to look for the interface
21562 because it is set by the expander (and hence it is not always
21563 available). For this reason we traverse the list of interfaces
21564 (available in the parent of the concurrent type).
21565 (Interface_Present_In_Ancestor): Handle entities from the limited view
21567 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21569 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21570 from the list of required components.
21571 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21572 primitive procedure of a limited interface with a controlling first
21574 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21576 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21577 capture if it is generated in the second operand of a short-circuit
21579 Do not capture values for variables with address clauses.
21580 (Is_Object_Reference): Treat a function call as an object reference only
21581 if its type is not Standard_Void_Type.
21583 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21585 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21586 to a variable that is statically known to be constant.
21588 2005-09-01 Geert Bosch <bosch@adacore.com>
21589 Robert Dewar <dewar@adacore.com>
21591 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21592 (VAXGF_Safe_First): Idem.
21594 2005-09-01 Robert Dewar <dewar@adacore.com>
21595 Arnaud Charlet <charlet@adacore.com>
21597 * g-dirope.ads: Minor reformatting
21598 Document that bounds of result of Base_Name match the input index
21600 Add documentation on environment variable syntax for Expand_Path
21602 * gnat_ugn.texi: Update documentation to include mention of -m switches
21603 Document new treatment of wide characters in max line length
21605 Remove -gnatL/-gnatZ switches, no longer used.
21606 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21609 * gnat_rm.texi: Add doc for two argument form of pragma
21610 Float_Representation.
21611 Add documentation for pragma No_Strict_Aliasing
21612 Add note that explicit component clause overrides pragma Pack.
21613 Add documentation of pragma Debug_Policy
21615 2005-09-01 Matthew Heaney <heaney@adacore.com>
21617 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21618 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21619 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21620 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21621 draft (Draft 13, August 2005) of Ada Amendment 1.
21623 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21625 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21626 Note that the platform-specific version of g-soccon.ads for VMS is now
21627 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21628 really is a package spec).
21629 Replace s-taspri-linux.ads by s-taspri-posix.ads
21630 Remove references to s-mastop-x86.adb
21632 * system-vxworks-xscale.ads: Removed, no longer used.
21633 * s-vxwork-xscale.ads: Removed, no longer used.
21635 2005-09-01 Robert Dewar <dewar@adacore.com>
21637 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21638 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21639 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21640 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21641 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21642 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21643 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21644 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21645 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21646 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21647 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21648 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21649 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21650 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21651 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21652 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21653 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21654 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21655 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21656 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21657 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21659 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21663 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21665 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21666 Doug Rupp <rupp@adacore.com>
21668 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21670 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21671 this code in the GNAT run-time.
21673 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21676 * init.c (__gnat_error_handler [many]): Mark "msg" as const
21677 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21679 (__gnat_inside_elab_final_code): Moved here from
21680 Standard_Library and only defined for the compiler.
21681 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21682 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21683 using RTPs because directly vectored Interrupt routines are not
21684 supported on this configuration.
21685 (getpid): Do not redefine this function on VxWorks when using RTPs
21686 because this primitive is well supported by the RTP libraries.
21687 (copy_msg): Correct the code that checks for buffer overflow.
21688 Discovered during code reading.
21690 2005-08-29 Olivier Hainque <hainque@adacore.com>
21692 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21693 a library level mutable variable with an initializer, tell
21694 build_allocator to ignore the initializer's size. It may not be large
21695 enough for all the values that might be assigned to the variable later
21698 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21699 Eric Botcazou <ebotcazou@adacore.com>
21701 * trans.c: Protect < in error msg with quote
21702 Replace GCC_ZCX by Back_End_Exceptions.
21703 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21704 has been sufficiently aligned in the record.
21706 2005-08-15 James E. Wilson <wilson@specifix.com>
21708 * system-linux-alpha.ads: Change ia64 to alpha.
21710 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
21712 * decl.c, utils.c: Fix comment typos.
21714 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
21716 * decl.c, init.c, initialize.c: Fix comment typos.
21718 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
21720 Make CONSTRUCTOR use VEC to store initializers.
21721 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21723 * trans.c (extract_values): Likewise.
21724 * utils.c (convert, remove_conversions): Likewise.
21725 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21726 gnat_build_constructor): Likewise.
21728 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21730 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21732 (compare_field_bitpos): Likewise.
21734 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21736 * utils.c (create_var_decl): Only set DECL_COMMON on
21737 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21738 VAR_OR_FUNCTION_DECL_P.
21740 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
21742 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21745 2005-07-07 Pascal Obry <obry@adacore.com>
21747 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21748 returned type on Windows.
21750 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21753 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21754 exception in this case.
21755 Simplify the code as "Image (Image'Range)" = "Image".
21757 2005-07-07 Vincent Celier <celier@adacore.com>
21759 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21760 the destructor/constructor attributes for <lib>final/<lib>init.
21762 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21764 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
21766 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21767 type if the parameter is not passed by copy but reference by default.
21769 2005-07-07 Javier Miranda <miranda@adacore.com>
21771 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21772 Reimplementation of the support for abstract interface types in order
21773 to leave the code more clear and easy to maintain.
21775 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21776 abstract interface types in order to leave the code clearer and easier
21779 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21780 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21781 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21782 appropriate entry of the secondary dispatch table.
21783 (Make_DT): Add code to inherit the secondary dispatch tables of
21786 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21787 implementing both functionalities by means of a common routine, each
21788 routine has its own code.
21790 2005-07-07 Javier Miranda <miranda@adacore.com>
21792 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21794 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21797 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21800 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21801 use of tag incomplete types.
21803 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21804 give support to tagged incomplete types.
21806 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21807 expression is a discriminant reference and its type is private, as can
21808 happen within a stream operation for a mutable record, use the full
21809 view of the type to resolve the case alternatives.
21810 (Analyze_Assignment): Check wrong dereference of incomplete types.
21812 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21815 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21818 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21819 N_Incomplete_Type_Declaration nodes.
21821 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21822 Tag_Present to give support to tagged incomplete types:
21824 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21827 2005-07-07 Olivier Hainque <hainque@adacore.com>
21830 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21831 definitions for the Unwind wrappers in the compiler case.
21833 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21834 Javier Miranda <miranda@adacore.com>
21836 * par-load.adb (Load): If a child unit is loaded through a limited_with
21837 clause, each parent must be loaded as a limited unit as well.
21839 * sem_ch10.adb (Previous_Withed_Unit): Better name for
21840 Check_Withed_Unit. Return true if there is a previous with_clause for
21841 this unit, whether limited or not.
21842 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21844 (Is_Visible_Through_Renamings): New local subprogram of install_limited
21845 _withed_unit that checks if some package installed through normal with
21846 clauses has a renaming declaration of package whose limited-view is
21847 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21848 of the current Draft document for Ada 2005.
21849 (Analyze_Context): Complete the list of compilation units that
21850 are allowed to contain limited-with clauses. It also contains
21851 checks that were previously done by Install_Limited_Context_Clauses.
21852 This makes the code more clear and easy to maintain.
21853 (Expand_Limited_With_Clause) It is now a local subprogram of
21854 Install_Limited_Context_Clauses, and contains the code that adds
21855 the implicit limited-with clauses for parents of child units.
21856 This functionality was prevously done by Analyze_Context.
21858 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21861 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21862 been erroneously named in a limited-with clause of its own context.
21863 In this case the error has been previously notified by Analyze_Context.
21865 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21867 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21868 generic package that contains local declarations with the same name.
21869 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21871 2005-07-07 Bernard Banner <banner@adacore.com>
21873 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21874 ia64 platform only on platforms that you the GCC unwind library
21875 rather than the system unwind library.
21877 2005-07-07 Thomas Quinot <quinot@adacore.com>
21879 * expect.c: Minor reformatting
21881 2005-07-07 Sergey Rybin <rybin@adacore.com>
21883 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
21886 * gnat_ugn.texi: Add description for new gnatpp option
21889 2005-07-04 Thomas Quinot <quinot@adacore.com>
21891 * g-expect-vms.adb, g-expect.ads, g-expect.adb
21892 (Get_Command_Output): New subprogram to launch a process and get its
21893 standard output as a string.
21895 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21896 Olivier Hainque <hainque@adacore.com>
21898 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
21899 fetch a code-range descriptor associated with the machine state. On
21900 failure set the machine state's PC to 0; on success, pass the
21901 descriptor to exc_virtual_unwind.
21903 * init.c (Tru64 section): New function __gnat_set_code_loc.
21905 2005-07-04 Vincent Celier <celier@adacore.com>
21907 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21908 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21909 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
21910 Remove all auto-initialization code, as this is now done through the
21911 constructor mechanism.
21913 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
21914 __gnat_sals_init_using_constructors): New functions.
21916 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
21917 Linker_Constructor and Linker_Destructor when switch -a is used.
21919 * bindusg.adb: Add line for new switch -a
21921 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
21922 (Gnatbind): When switch -a is used, check if it is allowed
21924 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
21926 2005-07-04 Joel Brobecker <brobecker@adacore.com>
21928 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
21929 This prevents us from hitting a limitation during the debug info
21930 generation when using stabs.
21931 (Prims_Ptr): Likewise.
21933 2005-07-04 Gary Dismukes <dismukes@adacore.com>
21934 Ed Schonberg <schonberg@adacore.com>
21935 Javier Miranda <miranda@adacore.com>
21937 * checks.adb (Null_Exclusion_Static_Checks): In the case of
21938 N_Object_Declaration, only perform the checks if the Object_Definition
21939 is not an Access_Definition.
21941 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
21942 where the parent of an the access definition is an N_Object_Declaration
21943 when determining the Associated_Node_For_Itype and scope of an
21944 anonymous access-to-subprogram type.
21946 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
21947 Corresponding_Spec on the body created for a null procedure. Add ???
21948 comment. Remove New_Copy_Tree call on body argument to
21949 Set_Body_To_Inline.
21951 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
21952 discriminants, use the type of the actual as well, because the
21953 discriminants may be read by the called subprogram.
21955 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
21956 access type we do not need to handle non-limited views.
21957 (Build_Derived_Record_Type): Additional check to check that in case of
21958 private types, interfaces are only allowed in private extensions.
21960 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21962 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
21963 <Pragma_Linker_Destructor>: Likewise.
21965 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
21966 Pragma_Linker_Destructor.
21968 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
21969 ATTR_LINK_DESTRUCTOR.
21970 (static_ctors, static_dtors): New variables.
21972 * misc.c (gnat_expand_body): Output current function as constructor
21973 and destructor if requested.
21975 * par-prag.adb: Add processing for pragma Linker_Constructor and
21978 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
21979 extracted from Check_Interrupt_Or_Attach_Handler.
21980 (Check_Interrupt_Or_Attach_Handler): Invoke it.
21981 Implement pragma Linker_Constructor and Linker_Destructor with the
21982 help of Find_Unique_Parameterless_Procedure.
21983 Replace Name_Alias with Name_Target for pragma Linker_Alias.
21985 * snames.h, snames.ads, snames.adb:
21986 Add Name_Linker_Constructor and Name_Linker_Destructor.
21987 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
21988 * snames.adb: Remove Name_Alias.
21990 * trans.c: Include cgraph.h.
21991 (build_global_cdtor): New function.
21992 (Compilation_Unit_to_gnu): Build global constructor and destructor if
21994 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
21996 (addressable_p) <COMPONENT_REF>: Unconditionally test
21997 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
21999 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22000 variable if it is external.
22002 (static_ctors, static_dtors): New global variables.
22003 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22004 <ATTR_LINK_DESTRUCTOR>: Likewise.
22005 (end_subprog_body): Chain function as constructor and destructor
22008 * exp_util.adb (Force_Evaluation): Unconditionally invoke
22009 Remove_Side_Effects with Variable_Ref set to true.
22010 (Remove_Side_Effects): Handle scalar types first. Use a renaming
22011 for non-scalar types even if Variable_Ref is true and for class-wide
22014 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22016 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22017 to prevent spurious warnings.
22019 2005-07-04 Thomas Quinot <quinot@adacore.com>
22021 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22022 Itypes. Itypes are really unexpected there.
22023 (Build_TypeCode_Function): Generalise special processing for Itypes to
22024 handle the case of numeric implicit base types as well as enumerated
22027 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22029 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22030 controlled, indicate the expected type of the dereference that is
22031 created for the call to Deep_Finalize, to prevent spurious errors when
22032 the designated type is private and completed with a derivation from
22033 another private type.
22035 2005-07-04 Vincent Celier <celier@adacore.com>
22037 * make.adb (Change_To_Object_Directory): When unable to change the
22038 current dir to the object directory, output the full path of the
22041 2005-07-04 Matthew Gingell <gingell@adacore.com>
22043 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22045 * indepsw-linux.adb: Replace by...
22047 * indepsw-gnu.adb: ...this new file
22049 2005-07-04 Vincent Celier <celier@adacore.com>
22051 * mlib-prj.adb (Auto_Initialize): New constant String
22052 (SALs_Use_Constructors): New Boolean function
22053 (Build_Library): Call gnatbind with Auto_Initialize switch when
22054 SALs_Use_Constructors returns True.
22056 * mlib-tgt.ads: Minor reformatting
22058 * mlib-utl.ads: Minor reformatting
22060 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22062 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22064 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22065 single protected declarations can have an interface list.
22066 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22067 with seriously malformed entry declarations, and lead to compilation
22068 abandoned messages.
22070 2005-07-04 Javier Miranda <miranda@adacore.com>
22072 * par-load.adb: Load the context items in two rounds.
22074 2005-07-04 Robert Dewar <dewar@adacore.com>
22076 * scng.adb: Do not consider Mod used as an attribute to be a keyword
22078 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22079 Javier Miranda <miranda@adacore.com>
22081 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22082 type extension needs a limited view.
22083 Remove previous restriction on private types available through the
22084 limited-view (only tagged private types were previously allowed).
22085 (Install_Withed_Unit): In the code that implements the
22086 legality rule given in AI-377, exclude a child unit with the name
22087 Standard, because it is a homonym of the Standard environment package.
22089 2005-07-04 Thomas Quinot <quinot@adacore.com>
22091 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22092 overloaded function call, carry interpretations from the original tree
22095 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22097 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22098 types check whether some designated type is a limited view, and use
22099 the non-limited view if available.
22101 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22103 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22104 constraint of full view of a private view T1 if present, when T2 is a
22105 discriminated full view.
22107 2005-07-04 Thomas Quinot <quinot@adacore.com>
22109 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22110 actual that is a view conversion of a bit packed array reference.
22112 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22114 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22115 present before checking whether an interface type covers a synchronized
22118 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22120 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22121 whose prefix is an implicit dereference is an object reference. Removes
22122 spurious errors when compiling with -gnatc.
22124 2005-07-04 Robert Dewar <dewar@adacore.com>
22127 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22129 2005-07-04 Matthew Gingell <gingell@adacore.com>
22131 * tracebak.c: Enable tracebacks on ia64 platforms
22133 2005-07-04 Vincent Celier <celier@adacore.com>
22135 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22136 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22137 the -L or -n switches.
22139 2005-07-04 Vincent Celier <celier@adacore.com>
22141 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22142 correctly computed and the main project data is not modified while
22144 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22145 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22146 c++linker as this does not work on some platforms.
22148 2005-07-04 Matthew Heaney <heaney@adacore.com>
22150 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22152 * a-coinve.adb: Perform constraint checks explicitly.
22154 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22155 Thomas Quinot <quinot@adacore.com>
22157 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22158 new target gen-soccon.
22160 2005-07-04 Robert Dewar <dewar@adacore.com>
22162 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22164 2005-07-04 Thomas Quinot <quinot@adacore.com>
22166 * g-socket.ads (Check_Selector): Minor rewording of comment.
22168 2005-07-04 Vincent Celier <celier@adacore.com>
22170 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22172 2005-07-04 Thomas Quinot <quinot@adacore.com>
22174 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22176 2005-07-04 Sergey Rybin <rybin@adacore.com>
22178 * gnat_ugn.texi: Add description of --eol gnatpp option
22180 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22181 Thomas Quinot <quinot@adacore.com>
22183 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22184 if the user wants all calls of a subprogram to be flagged,
22185 independently of whether they are made from within the same unit or
22187 Mention restriction for pragma Linker_Alias on some platforms.
22188 Document pragma Linker_Constructor and Linker_Destructor.
22189 Rewrite documentation of Weak_External, Linker_Section and
22190 Linker_Alias pragmas.
22192 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22194 * s-stausa.ads, s-stausa.adb: New files.
22196 2005-06-30 Kelley Cook
22198 * all files: Update FSF address in copyright headers.
22199 * gen-soccon.co (main): Output new FSF address in generated files.
22201 2005-06-28 Paul Brook <paul@codesourcery.com>
22203 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22205 2005-06-14 Olivier Hainque <hainque@adacore.com>
22206 Eric Botcazou <ebotcazou@adacore.com>
22208 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22209 exc_unwind, now that we are generating proper .debug_frame output for
22212 * tracebak.c: Remove the mips-irix section, as we are now using the
22213 s-mastop based unwinder again.
22214 Under SPARC/Solaris, take into account the stack bias to compute the
22215 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
22218 2005-06-14 Doug Rupp <rupp@adacore.com>
22220 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22222 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22224 2005-06-14 Pascal Obry <obry@adacore.com>
22226 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22227 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22228 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22231 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22232 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22233 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22234 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22235 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22236 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22237 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22238 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22239 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22240 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22241 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22242 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22243 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22244 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22245 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22246 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22247 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22248 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22249 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22250 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22251 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22252 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22253 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22254 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22255 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22256 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22257 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22258 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22259 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22260 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22261 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22262 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22263 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22264 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22265 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22266 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22267 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22268 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22269 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22270 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22271 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22272 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22273 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22274 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22275 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22276 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22277 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22278 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22279 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22280 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22281 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22282 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22283 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22284 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22285 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22286 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22287 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22288 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22289 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22290 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22291 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22292 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22293 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22294 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22295 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22296 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22297 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22298 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22299 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22300 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22301 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22302 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22303 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22304 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22305 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22306 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22307 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22308 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22309 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22310 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22311 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22312 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22313 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22314 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22315 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22316 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22317 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22318 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22319 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22320 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22321 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22322 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22323 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22324 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22325 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22326 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22327 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22328 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22329 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22330 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22331 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22332 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22333 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22334 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22335 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22336 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22337 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22338 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22339 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22340 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22341 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22342 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22343 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22344 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22345 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22346 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22347 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22348 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22349 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22350 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22351 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22352 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22353 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22354 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22355 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22356 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22357 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22358 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22359 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22360 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22361 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22362 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22363 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22365 2005-06-14 Jose Ruiz <ruiz@adacore.com>
22366 Arnaud Charlet <charlet@adacore.com>
22368 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22369 longer protected objects. They have been replaced by lower-level
22370 suspension objects made up by a mutex and a condition variable (or
22371 their equivalent given a particular OS) plus some internal data to
22372 reflect the state of the suspension object.
22373 (Initialize, Finalize): Add this initialization procedure for
22374 Suspension_Object, which is a controlled type.
22375 (Finalize): Add the finalization procedure for Suspension_Object,
22376 which is a controlled type.
22378 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22379 Ada.Synchronous_Task_Control because there is no longer a need for a
22380 VxWorks specific version of this package. Target dependencies
22381 has been moved to System.Task_Primitives.Operations.
22383 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22385 (InitializeCriticalSection, EnterCriticalSection,
22386 LeaveCriticalSection, DeleteCriticalSection): Replace the type
22387 pCriticalSection by an anonymous access type so that we avoid problems
22388 of accessibility to local objects.
22390 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22391 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22392 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22393 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22394 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22395 set the environment task mask here.
22396 (Current_State): Add this function that returns the state of the
22398 (Set_False): Add this procedure that sets the state of the suspension
22400 (Set_True): Add this procedure that sets the state of the suspension
22401 object to True, releasing the task that was suspended, if any.
22402 (Suspend_Until_True): Add this procedure that blocks the calling task
22403 until the state of the object is True. Program_Error is raised if
22404 another task is already waiting on that suspension object.
22405 (Initialize): Add this procedure for initializing the suspension
22406 object. It initializes the mutex and the condition variable which are
22407 used for synchronization and queuing, and it sets the internal state
22409 (Finalize): Add this procedure for finalizing the suspension object,
22410 destroying the mutex and the condition variable.
22412 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22413 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22414 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22415 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22416 which provides a low-level abstraction (using operating system
22417 primitives) for Ada.Synchronous_Task_Control.
22418 This object is made up by a mutex (for ensuring mutual exclusion), a
22419 condition variable (for queuing threads until the condition is
22420 signaled), a Boolean (State) indicating whether the object is open,
22421 and a Boolean (Waiting) reflecting whether there is a task already
22422 suspended on this object.
22424 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22425 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22426 s-intman-vms.ads, s-intman-mingw.adb,
22427 (Initialize_Interrupts): Removed, no longer used.
22429 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22430 (Setup_Interrupt_Mask): New procedure.
22432 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
22434 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22436 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22437 this is no longer done in the body of s-taprop
22438 (Server_Task): Explicitely test for Pending_Action in case
22439 System.Parameters.No_Abort is True.
22441 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22442 is no longer done in the body of s-taprop
22444 2005-06-14 Robert Dewar <dewar@adacore.com>
22446 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22447 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22448 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22449 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22450 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22451 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22452 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22453 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22454 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22455 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22456 system-linux-hppa.ads, system-vms_64.ads,
22457 system-vxworks-alpha.ads: Minor comment update for
22458 AI-362 (unit is Pure).
22460 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22461 Add pragma Pure_05 for AI-362
22462 Make remaining conversion functions obsolescent in Ada 95
22464 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22465 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22466 Add entries for a-wichun and a-zchuni
22467 Add a-widcha a-zchara for AI-395
22468 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22470 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22471 Add entries for a-wichun.o and a-zchuni.o
22472 Entries for a-widcha.o and a-zchara.o
22473 Add entry for a-chacon.o
22475 * a-ztenau.adb: Add with of Ada.Characters.Conversions
22477 * a-chacon.ads, a-chacon.adb: New files.
22479 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22480 categorization violations.
22482 * a-strmap.ads: Add pragma Pure_05 for AI-362
22483 * a-strmap.ads: Add note on implicit categorization for AI-362
22485 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22487 * par-prag.adb: Dummy entry for pragma Persistent_BSS
22488 Set Ada_Version_Explicit, for implementation of AI-362
22489 Add processing for pragma Pure_05 and Preelaborate_05
22490 Add entry for Assertion_Policy pragma
22492 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22493 when needed for proper processing of categorization stuff
22496 For several cases, make errors in preealborate units warnings,
22497 instead of errors, if GNAT_Mode is set. For AI-362.
22499 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22500 preelaborate unit is now warning if in GNAT mode
22502 * s-stoele.ads: Document AI-362 for pragma preelaborate
22504 2005-06-14 Doug Rupp <rupp@adacore.com>
22506 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22507 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22508 Default_Exception_Msg_Max_Length: new parameter.
22510 * a-except.ads: (Exception_Msg_Max_Length): Set to
22511 System.Parameters.Default_Exception_Msg_Max_Length
22512 Add pragma Preelaborate_05 for AI-362
22513 Add warnings off to allow categorization violations for AI-362
22515 2005-06-14 Vincent Celier <celier@adacore.com>
22517 * gnatsym.adb: Adapt to modification of package Symbols: procedure
22518 Process is now in package Processing.
22520 * symbols.ads, symbols.adb:
22521 (Processing): New package, containing procedure Process
22523 * symbols-vms-alpha.adb:
22524 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22526 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22527 symbols-processing-vms-ia64.adb: New files.
22529 2005-06-14 Pascal Obry <obry@adacore.com>
22531 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22532 implementation. This new version generates the proper DllMain routine
22533 to initialize the SAL. The DllMain is generated in Ada and compiled
22534 before being added as option to the library build command.
22536 2005-06-14 Doug Rupp <rupp@adacore.com>
22537 Pascal Obry <obry@adacore.com>
22539 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22540 call to decc$translate_vms.
22541 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22542 need to remove those quotes before catenating the filename.
22543 (__gnat_locate_exec_on_path): improvements to the Win32 section:
22544 * avoid allocating the memory twice for better efficiency;
22545 * allocate 32K buffer for environment expansion as suggested by MSDN;
22546 * prepend ".;" to the path so that current directory is searched too.
22548 2005-06-14 Robert Dewar <dewar@adacore.com>
22550 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22551 instead of raising CE (AI-241)
22552 Add warnings off to allow categorization violations for AI-362
22554 2005-06-14 Robert Dewar <dewar@adacore.com>
22556 * ali-util.adb, gnatbind.adb: Remove references to
22557 Force_RM_Elaboration_Order.
22559 * switch-b.adb: Remove recognition of -f switch
22561 2005-06-14 Pascal Obry <obry@adacore.com>
22563 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22564 implementation which is slightly more efficient.
22566 2005-06-14 Gary Dismukes <dismukes@adacore.com>
22567 Javier Miranda <miranda@adacore.com>
22568 Ed Schonberg <schonberg@adacore.com>
22569 Hristian Kirtchev <kirtchev@adacore.com>
22571 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22572 allocator's designated type is a class-wide type, and compiling for
22573 Ada 2005, emit a run-time check that the accessibility level of the
22574 type given in the allocator's expression is not deeper than the level
22575 of the allocator's access type.
22577 (Tagged_Membership): Modified to gives support to abstract interface
22580 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22582 (Descendant_Tag): New predefined function
22583 (Is_Descendant_At_Same_Level): New predefined function
22584 (Get_Access_Level): New private function
22585 (Set_Access_Level): New private procedure
22586 (IW_Membership): New function. Given the tag of an object and the tag
22587 associated with an interface, evaluate if the object implements the
22589 (Register_Interface_Tag): New procedure used to initialize the table of
22590 interfaces used by the IW_Membership function.
22591 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22592 of the dispatch table.
22593 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22594 table of interfaces of the parent.
22595 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22596 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22597 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22598 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22599 Ada 2005 semantics for the new predefined function.
22601 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22602 call to Descendant_Tag rather than Internal_Tag.
22603 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22604 the accessibility level of the attribute's Item parameter is not deeper
22605 than the level of the attribute's prefix type. Tag_Error is raised if
22606 the check fails. The check is only emitted for Ada_05.
22607 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22608 requested stream attribute, use it.
22609 (Expand_N_Attribute_Reference): If the designated type is an interface
22610 then rewrite the referenced object as a conversion to force the
22611 displacement of the pointer to the secondary dispatch table.
22612 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22613 is a dereference of an object with a constrained partial view.
22615 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22616 type is a class-wide type, emit a run-time check that the accessibility
22617 level of the returned object is not deeper than the level of the
22618 function's master (only when compiling for Ada 2005).
22620 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22621 Action_Nb_Arg): Add entries for new Get_Access_Level and
22622 Set_Access_Level routines in these tables.
22623 (Make_DT): Generate a call to set the accessibility level of the
22624 tagged type in its TSD.
22625 (Make_DT): Code cleanup. The functionality of generating all the
22626 secondary dispatch tables has been moved to freeze_record_type.
22627 (Make_Abstract_Interface_DT): Minor code cleanup.
22628 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22629 this subprogram implements a new algorithm that provides the
22630 same functionality and it is more clear in case of primitives
22631 associated with abstract interfaces.
22632 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22633 clean up, the functionality of this subprogram is now provided
22634 by Set_All_DT_Position.
22635 (Write_DT): New subprogram: a debugging procedure designed to be called
22636 within gdb to display the dispatch tables associated with a tagged
22638 (Collect_All_Interfaces): New subprogram that collects the whole list
22639 of interfaces that are directly or indirectly implemented by a tagged
22641 (Default_Prim_Op_Position): New subprogram that returns the fixed
22642 position in the dispatch table of the default primitive operations.
22643 (Expand_Interface_Actuals): New subprogram to generate code that
22644 displaces all the actuals corresponding to class-wide interfaces to
22645 reference the interface tag of the actual object.
22646 (Expand_Interface_Conversion): New subprogram. Reference the base of
22647 the object to give access to the interface tag associated with the
22648 secondary dispatch table.
22649 (Expand_Interface_Thunk): New subprogram that generates the code of the
22650 thunk. This is required for compatibility with the C+ ABI.
22651 (Make_Abstract_Interface_DT): New subprogram that generate the
22652 declarations for the secondary dispatch tables associated with an
22653 abstract interface.
22654 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22655 attribute for each primitive operation covering interface subprograms
22656 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22657 These subprograms were upgraded to give support to abstract interfaces
22659 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22660 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22661 RE_Set_Access_Level.
22662 (RE_Unit_Table): Add entries for new Ada.Tags operations.
22663 Add support to call the followig new run-time subprograms:
22664 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22666 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22667 match its full declaration when both have an access definition with
22668 statically matching designated subtypes.
22669 (Analyze_Component_Declaration): Delete commented out code that was
22670 incorrectly setting the scope of an anonymous access component's type.
22671 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22672 an access discriminant when the containing type is nonlimited.
22673 (Make_Incomplete_Type_Declaration): Create an incomplete type
22674 declaration for a record type that includes self-referential access
22676 (Check_Anonymous_Access_Types): Before full analysis of a record type
22677 declaration, create anonymous access types for each self-referential
22679 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22680 an access component in this context is a Local_Anonymous_Access, for
22681 proper accessibility checks.
22682 (Access_Definition): Set properly the scope of the anonymous access type
22683 created for a stand-alone access object.
22684 (Find_Type_Of_Object): An object declaration may be given with an access
22686 (Complete_Subprograms_Derivation): New subprogram used to complete
22687 type derivation of private tagged types implementing interfaces.
22688 In this case some interface primitives may have been overriden
22689 with the partial-view and, instead of re-calculating them, they
22690 are included in the list of primitive operations of the full-view.
22691 (Build_Derived_Record_Type): Modified to give support to private
22692 types implemening interfaces.
22693 (Access_Definition): Reject ALL on anonymous access types.
22694 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22695 type derivation to occur at a deeper accessibility level than the
22697 For the case of derivation within a generic body however, disallow the
22698 derivation if the derived type has an ancestor that is a formal type
22699 declared in the formal part of an enclosing generic.
22700 (Analyze_Object_Declaration): For protected objects, remove the check
22701 that they cannot contain interrupt handlers if not declared at library
22703 (Add_Interface_Tag_Components): New subprogram to add the tag components
22704 corresponding to all the abstract interface types implemented by a
22705 record type or a derived record type.
22706 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22707 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22708 Process_Full_View, Record_Type_Declaration): Modified to give
22709 support to abstract interface types
22710 (Collect_Interfaces): New subprogram that collects the list of
22711 interfaces that are not already implemented by the ancestors
22712 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22713 when partial view has no discriminants and full view has defaults.
22714 (Constrain_Access): Reject a constraint on a general access type
22715 if the discriminants of the designated type have defaults.
22716 (Access_Subprogram_Declaration): Associate the Itype node with the inner
22717 full-type declaration or subprogram spec. This is required to handle
22718 nested anonymous declarations.
22719 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22720 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22721 Process_Full_View, Record_Type_Declaration): Modified to give
22722 support to abstract interface types
22723 (Derive_Subprograms): Addition of a new formal to indicate if
22724 we are in the case of an abstact-interface derivation
22725 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22726 to the specification because it is requied to analyze all the
22727 identifiers found in a list of interfaces
22729 * debug.adb: Complete documentation of flag "-gnatdZ"
22731 * exp_ch3.adb: Implement config version of persistent_bss pragma
22732 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22733 testing for TSS presence to properly enforce visibility rules.
22734 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22735 Make_Abstract_Interfaces_DT to generate the secondary tables
22736 associated with abstract interfaces.
22737 (Build_Init_Procedure): Modified to initialize all the tags
22739 (Component_Needs_Simple_Initialization): Similar to other tags,
22740 interface tags do not need initialization.
22741 (Freeze_Record_Type): Modified to give support to abstract interface
22743 (Expand_N_Object_Declaration): Do not generate an initialization for
22744 a scalar temporary marked as internal.
22746 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22747 in-out parameter that is a component in an initialization procedure,
22748 whose constraint might depend on discriminants, and that may be
22749 misaligned because of packing or representation clauses.
22750 (Is_Legal_Copy): New predicate to determine whether a possibly
22751 misaligned in-out actual can actually be passed by copy/return. This
22752 is an error in case the type is by_reference, and a warning if this is
22753 the consequence of a DEC import pragma on the subprogram.
22754 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22756 (Expand_Inlined_Call): Mark temporary generated for the return value as
22757 internal, so that no useless scalar normalization is generated for it.
22758 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22759 null procedure can always be inlined.
22760 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22761 procedure, generate an explicit empty body for it.
22763 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22764 Given a type implementing an interface, returns the corresponding
22765 access_disp_table value.
22766 (Find_Interface_Tag): New subprogram. Given a type implementing an
22767 interface, returns the record component containing the tag of the
22769 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22770 previous ones that return the corresponding tag and access_disp_table
22772 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22773 is a predefined primitive operation.
22774 (Expand_Subtype_From_Expr): If the expression is a selected component
22775 within an initialization procedure, compute its actual subtype, because
22776 the component may depend on the discriminants of the enclosing record.
22778 * i-cpp.ads, i-cpp.adb:
22779 This package has been left available for compatibility with previous
22780 versions of the frontend. As part of the new layout this is now a
22781 dummy package that uses declarations available at a-tags.ads
22783 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22784 "constant access" and "aliased [constant] access" when not compiling
22786 Suppress Ada 2005 keyword warning if -gnatwY used
22787 (P_Identifier_Declarations): Add support for object declarations with
22788 access definitions.
22789 (Private_Extension_Declaration): Complete the documentation
22790 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22791 attribute in case of private extension declaration
22792 (P_Type_Declaration): Mark as "abstract" the type declarations
22793 corresponding with protected, synchronized and task interfaces
22794 (P_Declarative_Items): "not" and "overriding" are overriding indicators
22795 for a subprogram or instance declaration.
22797 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22798 instantiation that is a dispatching operation has controlling access
22799 parameters that are null excluding.
22800 Save and restore Ada_Version_Explicit, for implementation of AI-362
22801 (Validate_Derived_Type_Instance): Add check for abstract interface
22803 (Analyze_Formal_Package): Establish Instantiation source for the copy of
22804 the generic that is created to represent the formal package.
22805 (Analyze_Package_Instantiation): Instantiate body immediately if the
22806 package is a predefined unit that contains inlined subprograms, and
22807 we are compiling for a Configurable_Run_Time.
22808 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22809 If the program has a null default, generate an empty body for it.
22811 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22812 error message condition, null procedures are correctly detected now.
22813 (New_Overloaded_Entity): Bypass trivial overriding indicator check
22814 for subprograms in the context of protected types. Instead, the
22815 indicator is examined in Sem_Ch9 while analysing the subprogram
22817 (Check_Overriding_Indicator): Check consistency of overriding indicator
22818 on subprogram stubs as well.
22819 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22821 (Analize_Subprogram_Specification): When analyzing a subprogram in which
22822 the type of the first formal is a concurrent type, replace this type
22823 by the corresponding record type.
22824 (Analyze_Subprogram_Body): Undo the previous work.
22825 (Analyze_Procedure_Call): If the call has the form Object.Op, the
22826 analysis of the prefix ends up analyzing the call itself, after which
22828 (Has_Interface_Formals): New subprogram subsidiary to analyze
22829 subprogram_specification that returns true if some non
22830 class-wide interface subprogram is found
22831 (New_Overloaded_Entity): Modified to give support to abstract
22833 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22834 access to subprograms must be recursive.
22835 (Is_Unchecked_Conversion): Improve the test that recognizes
22836 instantiations of Unchecked_Conversion, and allows them in bodies that
22837 are to be inlined by the front-end. When the body comes from an
22838 instantiation, a reference to Unchecked_Conversion will be an
22839 Expanded_Name, even though the body has not been analyzed yet.
22840 Replace Is_Overriding and Not_Overriding in subprogram_indication with
22841 Must_Override and Must_Not_Override, to better express intent of AI.
22842 (Analyze_Subprogram_Body): If an overriding indicator is given, check
22843 that it is consistent with the overrinding status of the subprogram
22845 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22847 If the subprogram is a null procedure, indicate that it does not need
22850 * sem_disp.adb (Check_Controlling_Type): Give support to entities
22851 available through limited-with clauses.
22852 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22853 allowed as the last primitive of a tagged type if it has no previous
22855 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22856 to give support to abstract interface types
22858 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22859 in the case where the target type is an anonymous access type of an
22860 object or component (that is, when Is_Local_Anonymous_Access is true).
22861 Prevent the special checks for conversions of access discriminants in
22862 the case where the discriminant belongs to a nonlimited type, since
22863 such discriminants have their accessibility level defined in the same
22864 way as a normal component of an anonymous access type.
22865 (Resolve_Allocator): When an allocator's designated type is a class-wide
22866 type, check that the accessibility level of type given in the
22867 allocator's expression or subtype indication is not statically deeper
22868 than the level of the allocator's access type.
22869 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22870 name in a discriminant constraint of a record component.
22871 (Resolve_Explicit_Dereference): Do not check whether the type is
22872 incomplete when the dereference is a use of an access discriminant in
22873 an initialization procedure.
22874 (Resolve_Type_Conversion): Handle conversions to abstract interface
22876 (Valid_Tagged_Conversion): The conversion of a tagged type to an
22877 abstract interface type is always valid.
22878 (Valid_Conversion): Modified to give support to abstract interface types
22879 (Resolve_Actuals): Enable full error reporting on view conversions
22880 between unrelated by_reference array types.
22881 The rule for view conversions of arrays with aliased components is
22882 weakened in Ada 2005.
22883 Call to obsolescent subprogram is now considered to be a violation of
22884 pragma Restrictions (No_Obsolescent_Features).
22885 (Check_Direct_Boolean_Operator): If the boolean operation has been
22886 constant-folded, there is nothing to check.
22887 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
22888 check on possible violation of restriction No_Direct_Boolean_Operators
22889 until after expansion of operands, to prevent spurious errors when
22890 operation is constant-folded.
22892 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
22893 Has_Compatible_Type): Modified to give support to abstract interface
22895 (Interface_Present_In_Ancestor): New function to theck if some ancestor
22896 of a given type implements a given interface
22898 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
22899 prefix is a parameterless function that returns an access_to_procedure.
22900 (Transform_Object_Operation): Handle properly function calls of the
22901 form Obj.Op (X), which prior to analysis appear as indexed components.
22902 (Analyze_One_Call): Complete the error notification to help new Ada
22904 (Analyze_Allocator): For an allocator without an initial value, where
22905 the designated type has a constrained partial view, a discriminant
22906 constraint is illegal.
22908 2005-06-14 Robert Dewar <dewar@adacore.com>
22910 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
22911 do with treatment of Set_Col when positioned at end of line character.
22913 2005-06-14 Robert Dewar <dewar@adacore.com>
22915 * atree.adb: (Elist*): Protect against uninitialized field
22917 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22919 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
22920 for an attribute reference that returns an access type.
22921 (Apply_Discriminant_Check): No need for check if (designated) type has
22922 constrained partial view.
22924 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
22925 both bound checks, rather than a conjunction.
22926 (Insert_Valid_Check): If the expression is an actual that is an indexed
22927 component of a bit-packed array, force expansion of the packed element
22928 reference, because it is specifically inhibited elsewhere.
22930 2005-06-14 Vincent Celier <celier@adacore.com>
22932 * clean.adb (Clean_Project): Correctly delete executable specified as
22933 absolute path names.
22935 * make.adb (Gnatmake): Allow relative executable path names with
22936 directory information even when project files are used.
22937 (Change_To_Object_Directory): Fail gracefully when unable to change
22938 current working directory to object directory of a project.
22939 (Gnatmake): Remove exception handler that could no longer be exercized
22940 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
22941 may be deallocated by Normalize_Arguments.
22942 (Collect_Arguments): Eliminate empty arguments
22944 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
22945 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
22946 (Check_Project): Return False when Project is No_Project. Return True
22947 when All_Projects is True.
22948 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
22949 All_Projects to True.
22952 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22953 Javier Miranda <miranda@adacore.com>
22954 Thomas Quinot <quinot@adacore.com>
22955 Robert Dewar <dewar@adacore.com>
22956 Hristian Kirtchev <kirtchev@adacore.com>
22957 Gary Dismukes <dismukes@adacore.com>
22959 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
22960 anonymous access types, to indicate that the accessibility level of
22961 the type is determined by that of the enclosing declaration.
22962 (Has_Persistent_BSS): New flag
22963 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
22964 of this attribute with functions.
22965 (Is_Primitive_Wrapper): Remove the barrier.
22966 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
22967 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
22969 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
22970 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
22972 (Is_Pure_Unit_Access_Type): New flag
22973 (Abstract_Interfaces): Complete the assertion to cover all usages.
22974 (Set_Is_Interface): Complete the assertion to cover all usages.
22975 (Is_Primitive_Wrapper): New attribute.
22976 (Is_Obsolescent): Now applies to all entities (though it is only set
22977 for subprograms currently)
22978 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
22979 which solves various problems concerning access subtypes.
22980 (Has_Persistent_BSS): New flag
22981 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
22982 Remove these subprograms because this attribute is currently
22985 Has_Specified_Stream_Input (Flag190)
22986 Has_Specified_Stream_Output (Flag191)
22987 Has_Specified_Stream_Read (Flag192)
22988 Has_Specified_Stream_Write (Flag193)
22989 Present in all type and subtype entities. Set for a given view if the
22990 corresponding stream-oriented attribute has been defined by an
22991 attribute definition clause. When such a clause occurs, a TSS is set
22992 on the underlying full view; the flags are used to track visibility of
22993 the attribute definition clause for partial or incomplete views.
22994 (Is_Pure_Unit_Access_Type): New flag
22995 Clarify use of Is_Internal.
22996 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
22997 internally generated to wrap the invocation of tasks and protected
22998 types that implement interfaces.
22999 (Implementation_Base_Type): Documentation correction
23000 (Is_Obsolescent): Now applies to all entities (though it is only set
23001 for subprograms currently)
23002 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23003 which solves various problems concerning access subtypes.
23005 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23006 for examined parameters. Identify unequal parameter list lengths as
23007 non-conformant parameters.
23008 (Overriding_Possible): Do not check for "All" qualifier in declaration
23009 of controlling access parameter, following prescription of AI-404.
23010 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23011 that build the procedure body that wraps an entry invocation
23012 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23013 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23014 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23015 give support to abstract interface types
23017 * freeze.adb (Freeze_Entity): Issue error message if
23018 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23019 type has no storage pool (Ada 2005) AI-366.
23020 Also modified to give support to abstract interface types
23021 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23022 Inline_Always pragma.
23024 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23025 now begin an entry declaration.
23026 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23027 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23028 a subprogram declaration preceded by an overriding indicator.
23029 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23030 declarations or subprogram declarations preceded by reserved words
23031 "not" or "overriding".
23032 (P_Entry_Declaration): Update comment. Parse and check overriding
23033 indicator, set semantic flags of entry declarations.
23034 (P_Task): New error message in case of private applied
23035 to a task type declaration.
23036 (P_Protected): New error message in case of private applied
23037 to a task type declaration.
23039 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23040 in which the full view of a type implementing an interface is a
23042 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23043 Declare_Inherited_Private_Subprograms): If an explicit operation
23044 overrides an operation that is inherited in the private part, mark the
23045 explicit one as overriding, to enable overriding indicator checks.
23046 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23047 full view to partial view, to simplify handling in back-end.
23049 * sprint.adb: Print interface lists where needed: derived types,
23050 protected types, task types.
23051 output "is null" for null procedures. Part of implementation of
23053 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23054 relaxation of rules for access types in pure, shared passive partitions.
23056 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23057 first read discriminants into temporary objects, performing checks on
23058 the read values, then possibly performing discriminant checks on the
23059 actual (if it is constrained), and only finally reading the components
23060 into a constrained temporary object.
23061 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23062 case of reading discriminants of a mutable record type to recognize
23063 the new form of the code generated by
23064 Build_Mutable_Record_Read_Procedure.
23066 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23067 of a simple call to Make_TSS_Name.
23068 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23069 buffer, in order for Is_TSS to work correctly on local TSS names.
23071 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23072 Is_Local_Anonymous_Access to check legaliy of attributes in the
23073 context of access components and stand-alone access objects.
23074 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23075 treated as available for a limited private type if there is an
23076 attribute_definition_clause that applies to its full view, but not in
23077 other cases where the attribute is available for the full view
23078 (specifically, the sole fact that the full view is non-limited does not
23079 make the attribute available for the partial view).
23080 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23081 non-overloaded intrinsic subprogram.
23082 (Check_Stream_Attribute): Reject an attribute reference for an
23083 unavailable stream attribute even if the prefix is not a limited type
23084 (case of a 'Input attribute reference for an abstract, non-classwide
23086 (Stream_Attribute_Available): New function to determine whether a stream
23087 attribute is available at a place.
23088 (Check_Attribute): Use Stream_Attribute_Available instead of just
23089 testing for TSS presence on the implementation base type.
23090 (Analyze_Attribute): Modified to give support to task interfaces.
23091 (Analyze_Access_Attribute): Add error check for use of an Access (or
23092 Unrestricted_Access) attribute with a subprogram marked as
23094 (Analyze_Attribute, case Attribute_Address): Add error check for use of
23095 an Address attribute with a subprogram marked as Inline_Always.
23096 Update Eval_Attribute to handle new value of Width from AI-395
23098 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23099 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23100 Factor common code across the stream-oriented attribute circcuits into
23101 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23102 processing is functionally identical to the previous duplicated one,
23103 except that an expression that denotes an abstract subprogram will now
23104 be rejected, as mandated by AI-195 item 5.
23106 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23107 Is_Local_Anonymous_Access to apply accessibility checks to access
23108 components and stand-alone access objects.
23109 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23111 (Is_Potentially_Persistent_Type): New function
23112 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23113 a heap-object whose type has a constrained partial view, the object is
23114 unconstrained and the component may depend on a discriminant, making its
23117 * sinfo.ads, sinfo.adb
23118 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23119 (Must_Override): Flag applicable to N_Entry_Declaration.
23120 Indicate that interface_list can appear in single task and single
23121 protected declarations.
23122 Replace Is_Overriding and Not_Overriding with Must_Override and
23123 Must_Not_Override, to better express intent of AI.
23124 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23125 of an overriding indicator in a subprogram or instance.
23126 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23127 Add the overriding indicator [[not] overriding] construct to the
23128 following grammar productions:
23130 GENERIC_INSTANTIATION
23131 SUBPROGRAM_SPECIFICATION
23133 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23134 can start with an overriding indicator.
23136 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23137 flags accordingly on subrogram specifications or instances.
23140 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23141 overriding_indicator, if present, is consistent with status of spec.
23142 Improve error message for null-excluding checks on controlling access
23144 (Check_In_Previous_With_Clause): Protect the frontend against
23145 previously reported critical errors in the context clauses.
23146 Save and restore Ada_Version_Explicit, for implementation of AI-362
23147 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23148 operation verify that controlling formals of the renamed entity that
23149 are access parameters are explicitly non-null.
23150 (Find_Expanded_Name): Improve error message when prefix is an illegal
23151 reference to a private child unit.
23153 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23154 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23155 Rewrite to correspond to new wide character names in AI-395
23157 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23158 default procedures.
23160 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23161 Robert Dewar <dewar@adacore.com>
23163 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23164 code, not on the bodies of predefined operations, to cut down on
23167 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23169 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23170 be expanded in place. The size computation does not require a
23171 subtraction, which would raise an exception on a compiler built with
23172 assertions when the upper bound is Integer'first.
23173 (Flatten): For an array of composite components, take into account the
23174 size of the components to determine whether it is safe to expand the
23175 array into a purely positional representation.
23177 2005-06-14 Thomas Quinot <quinot@adacore.com>
23179 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23180 denoting a formal parameter into account.
23182 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23184 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23185 the entry_call alternative of a conditional entry call, wrap the
23186 conditional entry call itself.
23188 2005-06-14 Nicolas Setton <setton@adacore.com>
23189 Ed Schonberg <schonberg@adacore.com>
23191 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23192 the "simple_choice" member in a variant record, in accordance with the
23193 description in the package spec: the information output for a constant
23194 should be "S number", not "SS number".
23195 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23196 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23198 2005-06-14 Thomas Quinot <quinot@adacore.com>
23200 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23201 RACW without any primitives, do not generate the if statement for
23202 dispatching by name in the PolyORB/DSA case, as it would be malformed
23203 (it would have an Elsif_Parts list that is not No_List, but with a
23206 2005-06-14 Robert Dewar <dewar@adacore.com>
23208 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23210 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23212 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23213 can determine whether pragma Suppress_Exception_Locations is in effect.
23215 * utils2.c (build_call_raise): Do not pass the file name to the
23216 exception handler if pragma Suppress_Exception_Locations is in effect.
23217 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23219 2005-06-14 Emmanuel Briot <briot@adacore.com>
23221 * g-debpoo.adb (Deallocate, Dereference): Improve output.
23223 2005-06-14 Nicolas Roche <roche@adacore.com>
23225 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23227 (Next_Level): Fix minor bug in handling of ../dir case
23228 (Read): Add dir separator to Directory name so that "" is understood as
23231 2005-06-14 Pascal Obry <obry@adacore.com>
23233 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23234 releasing the items.
23236 2005-06-14 Vincent Celier <celier@adacore.com>
23237 Cyrille Comar <comar@adacore.com>
23239 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23240 with output file descriptor and with output file name.
23241 (Dup, Dup2): Now global procedures as they are used by two subprograms
23242 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23244 2005-06-14 Thomas Quinot <quinot@adacore.com>
23247 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23249 (Create_Selector): Bind listening socket used to create the signalling
23250 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23251 Set listen backlog to 1 to ensure that we detect socket theft by a
23252 failure of our own connect(2) call.
23253 (Check_Selector): Improve documentation of the selector mechanism.
23254 (Broadcast_Inet_Addr): New constant.
23256 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23258 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23259 type which turns out to be an incomplete and incorrect fix.
23260 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23261 of the type is declared in a record (for determination of insertion
23263 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23264 a private type and ensure that the primary entity is used for the type
23265 of the newly created function's V formal by taking the Etype of the
23268 2005-06-14 Javier Miranda <miranda@adacore.com>
23269 Jose Ruiz <ruiz@adacore.com>
23270 Robert Dewar <dewar@adacore.com>
23271 Ed Schonberg <schonberg@adacore.com>
23273 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23274 that indicates if we are parsing a compilation unit found in a
23275 limited-with clause.
23276 It is use to avoid the circularity check.
23278 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23279 we are parsing a compilation unit found in a limited-with clause. This
23280 is use to avoid the circularity check.
23282 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23283 unit as a consequence of parsing a limited-with clause. This is used
23284 to avoid the circularity check.
23286 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23287 (Analyze_Context): Limited-with clauses are now allowed
23288 in more compilation units.
23289 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23290 againts previously reported critical errors in context clauses
23291 (Install_Limited_Withed_Unit): Code cleanup plus static detection
23292 of two further errors: renamed subprograms and renamed packages
23293 are not allowed in limited with clauses.
23294 (Install_Siblings): Do not install private_with_clauses on the package
23295 declaration for a non-private child unit.
23296 (Re_Install_Parents): When a parent of the subunit is reinstalled,
23297 reset visibility of child units properly.
23298 (Install_Withed_Unit): When a child unit appears in a with_clause of its
23299 parent, it is immediately visible.
23301 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23302 Emmanuel Briot <briot@adacore.com>
23304 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23305 declared within an inlined body as referenced, to prevent spurious
23307 (Output_One_Ref): If an entity renames an array component, indicate in
23308 the ALI file that this aliases (renames) the array. Capture as well
23309 function renamings that rename predefined operations.
23310 Add information about generic parent for package and subprogram
23312 (Get_Type_Reference): For a subtype that is the renaming of an actual in
23313 an instantiation, use the first_subtype to ensure that we don't generate
23314 cross-reference information for internal types.
23315 For objects and parameters of a generic private type, retain the '*'
23316 indicator to distinguish such an entity from its type.
23318 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23319 to store information about instantiated entities.
23321 * ali.adb (Scan_ALI): Add support for parsing the reference to the
23324 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23325 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23328 2005-06-10 Doug Rupp <rupp@adacore.com>
23329 Arnaud Charlet <charlet@adacore.com>
23330 Olivier Hainque <hainque@adacore.com>
23331 Jose Ruiz <ruiz@adacore.com>
23333 * Make-lang.in: Add initialize.o when needed.
23334 Remove obsolete references to RT_FLAGS.
23335 Add missing dependencies for sdefault.o
23337 * initialize.c: New file.
23339 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23340 [VMS] cond_signal_table: Fix problem in declaration.
23341 [VMS] __gnat_error_handler: rewrite.
23342 Move all __gnat_initialize() routines to initialize.c
23343 Specialize the former "hpux" section to "hppa hpux", as this is what the
23344 section really is here for and we now have other hpux ports that need
23345 different contents.
23346 (__gnat_adjust_context_for_raise) i386-linux: First version of this
23347 function for this target. Adjust PC by one in the machine context. This
23348 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23349 it is more reliable to do that in the signal handler itself.
23350 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23351 flags, so that the handler is passed the context structure to adjust
23352 prior to the raise.
23353 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23354 SA_SIGINFO sigaction should look like. Call
23355 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23356 Machine_State_Operations stuff.
23357 Add conditional code so that the x86_64 is also supported.
23359 2005-06-14 Pascal Obry <obry@adacore.com>
23361 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23364 2005-06-14 Robert Dewar <dewar@adacore.com>
23366 * opt.ads, opt.adb: New flags for persistent_bss mode
23367 Add Ada_Version_Explicit, for implementation of AI-362
23368 Add Assertions_Enabled_Config and associated handling
23369 Needed since setting can be changed with Assertion_Policy pragma
23370 Add new flag Warn_On_Ada_2005_Compatibility
23372 * switch-c.adb: Recognize -gnatwy/Y
23373 Set Ada_Version_Explicit, for implementation of AI-362
23374 The -gnatg switch now includes -gnatyu
23376 * usage.adb: Add -gnatwy/Y
23377 Remove wrong asterisk on -gnatwX line
23378 Add line for -gnatyu switch
23380 2005-06-14 Vincent Celier <celier@adacore.com>
23382 * osint.adb (Add_Default_Search_Dirs): Put source and object
23383 directories of project files before directories coming from
23384 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23386 2005-06-14 Robert Dewar <dewar@adacore.com>
23389 * par-ch2.adb (Scan_Pragma_Argument): New procedure
23390 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23392 2005-06-14 Vincent Celier <celier@adacore.com>
23394 * prep.adb (Preprocess): Ignore error when scanning the first token of
23397 2005-06-14 Vincent Celier <celier@adacore.com>
23399 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23400 (Check_Stand_Alone_Library): If the specified reference symbol file does
23401 not exist, only issue a warning when the symbol policy is not
23402 Controlled. And, when symbol policy is Compliant, set the symbol
23403 policy to Autonomous.
23405 2005-06-14 Vincent Celier <celier@adacore.com>
23407 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23408 when the project file in a with clause is not the last one, that is the
23409 project file name is followed by a comma.
23410 * prj-pp.adb: (First_With_In_List): New Boolean global variable
23411 (Print): Issue list of project files separated by commas in with clauses
23412 according to the values returned by Is_Not_Last_In_List.
23413 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23414 (Set_Is_Not_Last_In_List): New procedure
23416 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23418 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23420 2005-06-14 Robert Dewar <dewar@adacore.com>
23422 * scng.adb: Add call to new Check_EOF routine
23423 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23424 Add some comments regarding wide character handling
23426 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23428 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23430 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23431 characters are now considered graphic characters and hence yield false
23434 * nmake.adt: Modify header so that xnmake does not generate output
23435 files with multiple blank lines.
23437 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23438 not have an extra blank line
23440 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23442 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23443 expression when the component type is an anonymous access type to
23444 ensure that appropriate accessibility checks are done.
23446 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23447 expression of an assignment when the target object is of an anonymous
23448 access type. This ensures that required accessibility checks are done.
23449 (One_Bound): Move the check for type Universal_Integer to
23451 (Process_Bounds): Check whether the type of the preanalyzed range is
23452 Universal_Integer, and in that case set Typ to Integer_Type prior
23453 to setting the type of the original range and the calls to One_Bound.
23455 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23457 * sem_case.adb (Expand_Others_Choice): Improve warning.
23459 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23461 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23462 constraint of full view if present, when other type is discriminated.
23463 (Eval_Relational_Op): Recognize tests of pointer values against Null,
23464 when the pointer is known to be non-null, and emit appropriate warning.
23466 2005-06-14 Robert Dewar <dewar@adacore.com>
23467 Ed Schonberg <schonberg@adacore.com>
23470 * sem_prag.adb: Implement pragma Persistent_BSS
23471 Remove obsolete pragma Persistent_Data, Persistent_Object
23472 Set Ada_Version_Explicit, for implementation of AI-362
23473 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23474 Add processing for pragma Pure_05 and Preelaborate_05
23475 Add processing for Assertion_Policy pragma
23476 Add pragma identifiers for Assert
23477 (Analyze_Pragma, case Assert): Check number of arguments
23478 (Process_Inline): Additional guard against an illegal program, where the
23479 argument of the pragma is undefined, and warnings on redundant
23480 constructs are enabled.
23481 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23482 Ada_05 to this pragma, specifying that the pragma is only active in
23484 (Check_Arg_Order): New procedure
23485 Add appropriate calls to this procedure throughout
23486 Also throughout, check entity name before doing any other checks
23488 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23489 Remove obsolete pragma Persistent_Data, Persistent_Object
23490 Add entries for pragma Pure_05 and Preelaborate_05
23491 Add entries for Assertion_Policy pragma and associated names
23492 Add some names for pragma argument processing
23494 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23496 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23498 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23499 appears within a negation (either from source or as a rewriting of
23500 inequality) adjust text of warning accordingly.
23502 2005-06-14 Thomas Quinot <quinot@adacore.com>
23504 * s-strxdr.adb: Follow AI95-00132
23506 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23508 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23510 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23511 Jose Ruiz <ruiz@adacore.com>
23513 * s-tposen.adb, s-tpobop.adb
23514 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23516 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23517 there is no violation of the Max_Entry_Queue_Length restriction (if it
23518 has been set); Program_Error is raised otherwise.
23519 (Requeue_Call): Before requeuing the task on the target entry queue we
23520 check that there is no violation of the Max_Entry_Queue_Length
23521 restriction (if it has been set); Program_Error is raised otherwise.
23523 2005-06-14 Robert Dewar <dewar@adacore.com>
23525 * styleg.adb: Fix several remaining problems in -gnatyu switch
23526 Blank line count not reset at start
23527 Scanning outside source buffer in some cases
23528 Confusing message for blanks at end of file
23529 Non-empty blank lines not recognized
23531 * nmake.adt: Modify header so that xnmake does not generate output
23532 files with multiple blank lines.
23534 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23535 not have an extra blank line
23537 2005-06-14 Sergey Rybin <rybin@adacore.com>
23539 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23541 2005-06-14 Doug Rupp <rupp@adacore.com>
23542 Vincent Celier <celier@adacore.com>
23544 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23547 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23548 Remove "Library" command.
23549 Change keyword for style check -gnatyd from NOCRLF to
23551 Remove useless second style check keyword NONE
23552 Remove help documentation for inexistent style check keyword
23554 Add help documentation for style check keywords DOS_LINE_ENDINGS,
23555 UNNECESSARY_BLANK_LINES and XTRA_PARENS
23556 Add UNNECESSARY_BLANK_LINES for -gnatyu
23557 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23559 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23561 2005-06-14 Vincent Celier <celier@adacore.com>
23563 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23564 gprmake was invoked with -d.
23565 (Compile_Sources): If -d was used, output the "completed ..." message
23566 for each compilation.
23567 (Scan_Arg): Recognize new switch -d
23568 When -c and at least one main is specified, set
23569 Unique_Compile to True to guarantee that no other sources will be
23572 2005-06-14 Matthew Heaney <heaney@adacore.com>
23574 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23575 * a-swuwha.ads, a-swuwha.adb: New files
23577 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23578 * a-szuzha.ads, a-szuzha.adb: New files.
23580 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23581 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23582 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23583 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23584 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23585 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23586 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23587 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23588 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23589 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23592 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
23593 Olivier Hainque <hainque@adacore.com>
23594 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23595 Pascal Obry <obry@adacore.com>
23597 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23599 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23600 making a temporary around a procedure call because of non-addressable
23602 (process_freeze_entity): If entity is a private type, capture size
23603 information that may have been computed for the full view.
23604 (tree_transform, case N_Allocator): If have initializing expression,
23605 check type for Has_Constrained_Partial_View and pass that to
23607 (tree_transform, case N_Return_Statement): Pass extra arg to
23610 * decl.c (annotate_value): Remove early return if -gnatR is not
23612 (gnat_to_gnu_field): Don't make a packable type for a component clause
23613 if the position is byte aligned, the field is aliased, and the clause
23614 size isn't a multiple of the packable alignment. It serves no useful
23615 purpose packing-wise and would be rejected later on.
23616 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23619 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23620 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23622 (create_concat_name): Idem.
23624 2005-06-10 Robert Dewar <dewar@adacore.com>
23625 Eric Botcazou <ebotcazou@adacore.com>
23626 Ben Brosgol <brosgol@adacore.com>
23627 Cyrille Comar <comar@adacore.com>
23628 Sergey Rybin <rybin@adacore.com>
23629 Pascal Obry <obry@adacore.com>
23631 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23632 Document second argument (Ada_05) of pragma Obsolescent
23633 Add note that call to subprogram marked with pragma Obsolescent
23634 is now considered to be a violation of program Restrictions
23635 (No_Obsolescent_Features).
23636 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23637 that only machine-dependent attributes are supported.
23640 Commented out menu lines and empty section for gnatclean examples
23642 Fix some over long lines
23643 Clarify and enhance documentation of ADA_PROJECT_PATH.
23644 Rework section 2.11.2(3) about linking with a non-GNU compiler.
23645 Mention new switch -fcallgraph-info.
23646 Mention new switch -fstack-usage.
23647 For gnatpp, replace '-notab' with '-N' and add this option to Index
23648 Corrected VMS example.
23649 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23651 Add documentation for -gnatyu switch (unnecessary blank lines)
23652 Document new switch -U for GNAT PRETTY and GNAT METRIC
23653 Add note about Stdcall being handled as C convention on non Windows OS.
23654 Remove some junk typo in description of gnatbind -S switch
23655 Remove reference to Extensions_Allowed pragma
23656 Document the new order of the directories to be searched (source and
23657 object directories of project files before directories in ADA_*_PATH
23658 environment variables.
23660 * g-trasym.ads: Document that IRIX is supported
23662 2005-06-10 Arnaud Charlet <charlet@adacore.com>
23664 * Makefile.in: Add initialize.o when needed.
23665 Adapt to new VMS package body Symbols and subunits
23666 No specialized version of a-sytaco is needed for VxWorks.
23668 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23669 * a-zchara.ads, a-widcha.ads: New files.
23671 * system-hpux-ia64.ads: New file.
23673 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23674 is imported from the VxWorks kernel.
23676 2005-06-14 Robert Dewar <dewar@adacore.com>
23678 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23679 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23680 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23681 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23682 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23683 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23684 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23685 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23686 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23687 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23688 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23689 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23691 2005-06-14 Thomas Quinot <quinot@adacore.com>
23693 * xeinfo.adb: Fix typo in comment
23695 2005-06-14 Javier Miranda <miranda@adacore.com>
23697 * repinfo.ads: Fix typo in comment
23699 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23701 * s-finimp.adb (Parent_Tag): Delete this imported function (function
23702 Parent_Tag is now in the visible part of Ada.Tags).
23703 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23704 using imported function.
23706 2005-06-14 Bernard Banner <banner@adacore.com>
23708 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23709 also apply for handling support for VxSim 653.
23711 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23713 * xsnames.adb: Add automatic generation of snames.h.
23715 2005-06-14 Thomas Quinot <quinot@adacore.com>
23717 * gen-soccon.c: Add IP_MULTICAST_IF constant
23718 Minor reformatting and adjustments to prevent warnings.
23720 2005-06-14 Pascal Obry <obry@adacore.com>
23722 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23724 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
23726 * trans.c (gnat_gimplify_expr): Call
23727 recompute_tree_invarant_for_addr_expr when we change
23728 the operand of the ADDR_EXPR.
23730 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23732 * misc.c: Don't include errors.h.
23734 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23736 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23738 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
23740 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23742 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23744 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
23747 * Makefile.in: Make TGT_LIB behave correctly.
23749 2005-04-23 DJ Delorie <dj@redhat.com>
23751 * misc.c: Adjust warning() callers.
23753 2005-04-16 Laurent Guerby <laurent@guerby.net>
23756 * a-nudira.adb (Value): Check for valid string.
23757 * a-nuflra.adb (Value): Likewise.
23759 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
23761 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23763 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
23765 * adaint.c, init.c, tracebak.c: Fix comment typos.
23766 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23768 2005-04-07 Laurent Guerby <laurent@guerby.net>
23769 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23771 * Makefile.in: Add make ifeq define for hppa linux tasking support.
23772 * system-hpux.ads: Define Signed_Zeros to be True.
23773 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23775 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
23777 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23778 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23781 2005-03-30 Tom Tromey <tromey@redhat.com>
23783 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23785 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23787 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23789 2005-03-29 Robert Dewar <dewar@adacore.com>
23791 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23792 fixed-point expression has value that is not a multiple of the Small
23795 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23797 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23800 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23802 2005-03-29 Vincent Celier <celier@adacore.com>
23804 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23805 (Build_Dynamic_Library.Version_String): Return the empty string when
23806 Lib_Version is empty or when the symbol policy is not Autonomous.
23808 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23809 a symbol is not in the reference symbol file, increase the Major ID
23810 and set the Minor ID to 0.
23811 Use gsmatch=lequal instead of gsmatch=equal
23813 2005-03-29 Doug Rupp <rupp@adacore.com>
23815 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23816 name and translate.
23818 2005-03-29 Javier Miranda <miranda@adacore.com>
23820 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23821 (Inherit_DT): The first formal has been redefined as a Tag.
23822 This allows us the removal of the subprogram Get_TSD.
23823 (TSD): Replace the call to Get_TSD by the actual code.
23825 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23826 (Make_DT): Upgrade the call to Inherit_TSD according to the
23827 new interface: the first formal is now a Tag.
23829 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23830 redefined as a Tag.
23831 This change allows us to remove the subprogram Get_TSD.
23832 (CPP_Get_TSD): Subprogram removed.
23833 (TSD): Replace the call to CPP_Get_TSD by the actual code.
23835 * rtsfind.ads: Remove support to call the run-time
23838 2005-03-29 Robert Dewar <dewar@adacore.com>
23840 * errutil.adb, errout.adb:
23841 Minor comment updates on Line_Terminator references
23843 * par-ch10.adb: Add ??? comment about line terminator
23845 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23846 (check dos line terminator).
23847 (Check_Line_Max_Length): New procedure, split off from the existing
23848 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23849 be properly recognized.
23851 * styleg.adb: Add ??? comment for line terminator reference
23853 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23854 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23856 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23857 (check dos line terminator).
23858 (Check_Line_Max_Length): New procedure, split off from the existing
23859 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23860 be properly recognized.
23862 * stylesw.ads, stylesw.adb:
23863 Add handling for new -gnatyd switch (check dos line terminator)
23865 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23866 Recognize -gnatwb/-gnatwB switches
23867 Include Warn_On_Bad_Fixed_Value for -gnatg
23870 Add line for new -gnatyd switch (check dos line terminator)
23872 * usage.adb: Add lines for -gnatwb/-gnatwB
23874 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23876 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23878 * gnat_ugn.texi: Fix overlong lines
23879 Document new -gnatyd switch
23880 Document new -gnatwb/-gnatwB switches
23882 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23884 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
23885 order to retrieve the component list of the type, before examining
23886 individual components.
23888 * sem_type.adb (Covers): Types are compatible if one is the base type
23889 of the other, even though their base types might differ when private
23890 views are involved.
23892 2005-03-29 Thomas Quinot <quinot@adacore.com>
23894 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
23895 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
23896 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
23897 analyzed if expansion is disabled (which could otherwise cause spurious
23898 error messages if expansion has been disabled due to previous
23899 (unrelated) errors).
23901 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
23902 is disabled, the entity denoted by the argument is the access type
23903 itself, not an underlying record type, so there is no need to go back
23904 to the Corresponding_Remote_Type.
23906 2005-03-29 Gary Dismukes <dismukes@adacore.com>
23907 Robert Dewar <dewar@adacore.com>
23909 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
23910 expand a call to an instance of
23911 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
23912 Constructor actual of the instance. A class-wide membership
23913 check is also generated, to ensure that the tag passed to the instance
23914 denotes a type in the class.
23915 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
23916 of Name_Generic_Dispatching_Constructor.
23918 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
23919 05 unit for AI-260-02).
23921 * a-tgdico.ads: New file.
23923 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
23924 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
23926 * snames.ads, snames.adb (Preset_Names): Add entry for
23927 Generic_Dispatching_Constructor.
23930 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
23931 character type cases.
23932 (Analyze_Subprogram_Renaming): Add special handling for
23933 the case of renaming of stream attributes when the renaming denotes a
23934 generic formal subprogram association for an abstract formal subprogram.
23935 Check that the attribute is a primitive stream attribute (and not
23936 a class-wide stream attribute) and then rewrite the attribute name
23937 as the name of the appropriate compiler-generated stream primitive.
23939 2005-03-29 Robert Dewar <dewar@adacore.com>
23941 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
23943 (Is_Possibly_Unaligned_Object): Correct typo that
23944 resulted in inaccurate result for unaligned scalars within records.
23946 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23948 * freeze.adb (Freeze_Record_Type): If the type of the component is an
23949 itype whose parent is controlled and not yet frozen, do not create a
23950 freeze node for the itype if expansion is disabled.
23952 2005-03-29 Vincent Celier <celier@adacore.com>
23954 * make.adb (Gnatmake): Don't fail if the main project file is declared
23955 as having no Ada sources. Do not display message "no sources to
23956 compile" in quiet output.
23958 2005-03-29 Doug Rupp <rupp@adacore.com>
23960 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
23963 2005-03-29 Robert Dewar <dewar@adacore.com>
23965 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
23968 2005-03-29 Robert Dewar <dewar@adacore.com>
23970 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
23971 missing TYPE Improve the error message generated when compiling a
23972 limited interface in Ada83 or Ada95 mode.
23974 2005-03-29 Robert Dewar <dewar@adacore.com>
23976 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
23977 rather than proceed ahead using a junk attribute name.
23979 2005-03-29 Vincent Celier <celier@adacore.com>
23981 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
23983 * prj-part.adb (Parse_Single_Project): Set the location of a project
23984 on its defining identifier, rather than on the reserved word "project".
23986 * prj-proc.adb (Expression): Adapt to the fact that default of external
23987 references may be string expressions, not always literal strings.
23988 (Recursive_Process): Set Display_Name equal to Name
23989 when Location is No_Location, that is when there is no actual file.
23990 Get the Display_Name of the project from the source, when it is not a
23992 (Process): Use the Display_Name in error messages
23994 * prj-strt.adb (External_Reference): Allow default to be string
23995 expressions, not only literal strings.
23997 2005-03-29 Vincent Celier <celier@adacore.com>
23999 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24000 file and the reference symbol file to be the same file.
24002 2005-03-29 Thomas Quinot <quinot@adacore.com>
24004 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24005 forbid conversion of a local access-to-subprogram type to a remote one.
24007 * sem_util.adb (Wrong_Type): For a record type that is the expanded
24008 equivalent type for a remote access-to-subprogram type, go back to the
24009 original RAS entity when displaying an error message, so the casing is
24010 the original source casing.
24012 2005-03-29 Robert Dewar <dewar@adacore.com>
24014 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24017 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24019 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24020 subtype if code is being pre-analyzed, to prevent un-expanded
24021 references to protected formals, among others.
24022 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24023 interpretation that can be a call, include the result of the call as a
24024 possible interpretation of the dereference.
24026 * sem_ch5.adb (Process_Bounds): Determine type of range by
24027 pre-analyzing a copy of the original range, and then analyze the range
24028 with the expected type.
24030 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24031 with an overloaded prefix where not all interpretations yield an
24032 access to subprogram, do not rewrite node as a call.
24033 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24034 the node as a call once the context identifies the interpretation of
24035 the prefix whose call yields the context type.
24036 (Valid_Conversion): For the case of a conversion between
24037 local access-to-subprogram types, check subtype conformance using
24038 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24039 detailed error message.
24041 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24043 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24044 indicator, indicate that the formal can never be null.
24045 (Process_Formals): If a formal has a non_null indicator, insert the
24046 resulting subtype immediately before the enclosing subprogram decl,
24047 and not at the beginning of the corresponding declarative part, to
24048 prevent access before elaboration (Ada2005).
24050 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24053 * utils.c (finish_record_type): Use variable_size when setting sizes.
24055 2005-03-29 Robert Dewar <dewar@adacore.com>
24057 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24058 guarantee Unix style line terminators for the output files, even when
24059 running on windows.
24061 2005-03-29 Robert Dewar <dewar@adacore.com>
24063 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24064 buffer if an exception is raised.
24066 2005-03-29 Ed Falis <falis@adacore.com>
24068 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24071 2005-03-29 Robert Dewar <dewar@adacore.com>
24073 * sem_util.ads: Minor reformatting
24074 * gnat_rm.texi: Minor editing.
24076 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
24078 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24079 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24081 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24083 * adaint.c (__gnat_portable_spawn): Adjust cast.
24085 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
24087 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24089 2005-03-17 Pascal Obry <obry@adacore.com>
24091 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24094 * expect.c (__gnat_waitpid): Moved here from adaint.c.
24095 Reimplement under Win32 using Win32 API.
24097 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24100 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24102 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24103 (DECL_RENAMED_OBJECT): New accessor macro.
24104 (SET_DECL_RENAMED_OBJECT): New setter macro.
24106 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24107 object in all cases. Attach the renamed object to the VAR_DECL.
24108 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24109 field is not prescribed.
24111 * misc.c (gnat_handle_option): Handle -gnatO separately.
24112 (gnat_print_decl) <VAR_DECL>: New case.
24113 Print the DECL_RENAMED_OBJECT node.
24115 * lang.opt: Declare separate -gnatO option.
24117 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24118 pointer, replace it with the renamed object.
24119 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24120 pointer type if the source is not a fat pointer type whose underlying
24121 array has the same non-zero alias set as that of the destination array.
24123 2005-03-17 Javier Miranda <miranda@adacore.com>
24125 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24126 (Get_Inheritance_Depth): Removed.
24127 (Set_Inheritance_Depth): Removed.
24129 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24130 subprogram Get_Expanded_Name because it is not referenced by the
24133 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24134 (CPP_Get_Inheritance_Depth): Removed.
24135 (CPP_Set_Inheritance_Depth): Removed.
24137 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24139 2005-03-17 Robert Dewar <dewar@adacore.com>
24141 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24142 3, since we now expect GCC 3 to do all the work.
24144 2005-03-17 Javier Miranda <miranda@adacore.com>
24146 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24147 of one barrier to avoid wrong usage of this attribute.
24149 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24150 First_Private_Entity.
24152 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24153 the subprogram against wrong usage.
24154 Adapt the code to traverse the entities in the
24155 scope of a record_type because in addition to its usage regarding
24156 packages, this subprogram is also called by Expand_N_Freeze_Entity
24157 to install the visible declarations of the enclosing scope of a
24158 record_type_with_private to establish the proper visibility before
24159 freezing the entity and related subprograms.
24161 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24163 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24166 2005-03-17 Thomas Quinot <quinot@adacore.com>
24168 * exp_ch3.adb (Check_Attr): New subprogram.
24169 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24170 into a new Check_Attr subprogram, in order to provide a more
24171 explanatory error message (including the name of the missing attribute).
24172 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24173 subprogram determines whether a default implementation exists for a
24174 given stream attribute.
24175 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24176 Determine whether to generate a default implementation for each stream
24177 attribute separately, as this depends on the specific attribute.
24179 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24180 limited extension where a stream attribute is missing for a limited
24181 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24182 generate a bogus reference to the missing attribute to prevent
24183 cascaded errors. Instead, generate a null statement.
24185 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24186 available for a limited type if it has been specified for an ancestor
24189 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24191 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24192 entity is an operator.
24194 2005-03-17 Thomas Quinot <quinot@adacore.com>
24196 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24197 spec, to make this predicate available to other units.
24199 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24202 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24203 when no distribution runtime library is available.
24205 * sem_res.adb, sem_dist.adb: Disable expansion of remote
24206 access-to-subprogram types when no distribution runtime library is
24208 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24209 predicate available to other units.
24211 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24212 spec, to make this predicate available to other units.
24214 2005-03-17 Vincent Celier <celier@adacore.com>
24216 * make.adb (Insert_Project_Sources): Make sure the Q is always
24219 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24220 the default for the tree, not the global default naming.
24222 * prj-proc.adb (Recursive_Process): No need to put the default naming
24223 in the project data, it's already there.
24225 2005-03-17 Doug Rupp <rupp@adacore.com>
24227 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24229 * 5xcrtl.ads: Renamed to...
24230 * s-crtl-vms64.ads: ...this new file
24232 2005-03-17 Robert Dewar <dewar@adacore.com>
24235 * namet.adb (Copy_One_Character): Set proper wide character encoding
24236 for upper half character if we have upper half encoding.
24238 2005-03-17 Robert Dewar <dewar@adacore.com>
24240 * par.adb (Par): Improved msg for attempt to recompile predefined unit
24242 2005-03-17 Thomas Quinot <quinot@adacore.com>
24244 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24245 tagged limited type, the TSS is a newly built renaming declaration:
24246 insert it using Set_TSS, not Copy_TSS.
24248 2005-03-17 Javier Miranda <miranda@adacore.com>
24250 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24251 Try_Object_Operation): Analyze the object that is accessible
24252 through the prefix of the subprogram call before we apply
24253 the transformation of the object-operation notation.
24255 2005-03-17 Jose Ruiz <ruiz@adacore.com>
24257 * s-taprob.adb (Initialize_Protection): Initialize the protected
24258 object's owner to Null_Task.
24259 (Lock): If pragma Detect_Blocking is in effect and the caller of this
24260 procedure is already the protected object's owner then Program_Error
24261 is raised. In addition the protected object's owner is updated.
24262 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24263 of this procedure is already the protected object's owner then
24264 Program_Error is raised.
24265 In addition the protected object's owner is updated.
24266 (Unlock): Remove the ownership of the protected object.
24268 * s-taprob.ads (Protection): Add the field Owner, used to store the
24269 protected object's owner.
24270 This component is needed for detecting one type of potentially blocking
24271 operations (external calls on a protected subprogram with the same
24272 target object as that of the protected action). Document the rest of
24275 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24276 Initialize the protected object's owner to Null_Task.
24277 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24278 caller of this procedure is already the protected object's owner then
24279 Program_Error is raised.
24280 Do not raise Program_Error when this procedure is called from a
24282 (Unlock_Entries): Remove the ownership of the protected object.
24283 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24284 of this procedure is already the protected object's owner then
24285 Program_Error is raised.
24286 Do not raise Program_Error when this procedure is called from
24287 a protected action.
24289 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24290 used to store the protected object's owner.
24292 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24293 effect and this procedure (a potentially blocking operation) is called
24294 from whithin a protected action, Program_Error is raised.
24295 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24296 and this procedure (a potentially blocking operation) is called from
24297 whithin a protected action, Program_Error is raised.
24299 2005-03-17 Vincent Celier <celier@adacore.com>
24300 Nicolas Setton <setton@adacore.com>
24302 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24303 switch, not supported by the linker on Darwin. Add '_' before
24304 <library>init, as this character is added unconditionally by the
24306 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24307 correct one ".dylib". This fixes detection of the archive files when
24308 building library projects.
24310 2005-03-17 Vincent Celier <celier@adacore.com>
24312 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24313 -gnat83, -gnat95 and -gnat05.
24315 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
24317 * gnat_ugn.texi: Document gnatmem restriction
24319 2005-03-17 Thomas Quinot <quinot@adacore.com>
24321 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24324 2005-03-17 Robert Dewar <dewar@adacore.com>
24326 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24327 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24328 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24330 * casing.adb: Comment improvements
24332 2005-03-17 Pascal Obry <obry@adacore.com>
24334 * g-expect.adb: Minor reformatting.
24336 2005-03-15 Zack Weinberg <zack@codesourcery.com>
24338 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24339 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24342 2005-03-15 Vincent Celier <celier@adacore.com>
24344 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24345 Add new parameter In_Tree to specify the project tree: needed
24346 by the project manager. Adapt to changes in project manager
24347 using new parameter In_Tree.
24349 2005-03-15 Jakub Jelinek <jakub@redhat.com>
24351 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24352 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24353 ada/bldtools to avoid make -jN failures.
24355 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24357 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24358 to NULL_TREE on entry.
24360 2005-03-15 Robert Dewar <dewar@adacore.com>
24362 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24363 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24364 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24365 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24366 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24367 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24368 system-interix.ads, system-solaris-sparc.ads,
24369 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24370 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24371 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24372 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24373 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24374 Compiler_System_Version to be False.
24376 * opt.ads: Add new flag Opt.Address_Is_Private
24378 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24379 Add new parameter Compiler_System_Version to avoid checking for
24380 completeness of parameters when compiler is compiling itself.
24381 Allows old versions of GNAT to be compiled with new compiler.
24383 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24385 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24386 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24388 (Stack_Base_Available): New flag.
24389 (Get_Page_Size): New overloaded functions imported from C.
24390 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24391 PROT_ON, PROT_OFF): New constants.
24392 (mprotect): New function imported from C.
24393 (pthread_teb_t): New record type.
24395 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24396 (Create_Task): Account for the Yellow Zone and the guard page.
24398 2005-03-15 Vincent Celier <celier@adacore.com>
24400 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24401 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24402 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24403 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24404 Library_File_Name_For): Add new parameter In_Tree
24405 to specify the project tree: needed by the project manager.
24406 Adapt to changes in project manager using new parameter In_Tree.
24407 Remove local imports, use functions in System.CRTL.
24409 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24410 to use the project manager.
24412 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24413 In_Tree to designate the project tree. Adapt to changes in the project
24414 manager, using In_Tree.
24416 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24417 Copy_Interface_Sources): Add new parameter In_Tree to specify the
24418 project tree: needed by the project manager.
24419 (Build_Library): Check that Arg'Length >= 6 before checking if it
24420 contains "--RTS=...".
24422 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24423 Library_File_Name_For): Add new parameter In_Tree to specify the
24424 project tree: needed by the project manager.
24426 * prj.ads, prj.adb: Major modifications to allow several project trees
24427 in memory at the same time.
24428 Change tables to dynamic tables and hash tables to dynamic hash
24429 tables. Move tables and hash tables from Prj.Com (in the visible part)
24430 and Prj.Env (in the private part). Move some constants from the visible
24431 part to the private part. Make other constants deferred.
24432 (Project_Empty): Make it a variable, not a function
24433 (Empty_Project): Add parameter Tree. Returns the data with the default
24434 naming data of the project tree Tree.
24435 (Initialize): After updating Std_Naming_Data, copy its value to the
24436 component Naming of Project Empty.
24437 (Register_Default_Naming_Scheme): Use and update the default naming
24438 component of the project tree, instead of the global variable
24440 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24441 Tree is not defaulted, return the default naming data of the Tree.
24442 (Initial_Buffer_Size): Constant moved from private part
24443 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24444 variables initialized in procedure Initialize.
24445 (Add_To_Buffer): Add two in out parameters to replace global variables
24446 Buffer and Buffer_Last.
24447 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24449 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24451 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24452 for the project tree.
24453 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24454 constant at the beginning of the package spec, so that they cane be used
24455 in subprograms before their full declarations.
24456 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24457 (Empty_Project): Add parameter of type Project_Node_Ref
24458 (Private_Project_Tree_Data): Add component Default_Naming of type
24460 (Buffer, Buffer_Last): remove global variables
24461 (Add_To_Buffer): Add two in out parameters to replace global variables
24462 Buffer and Buffer_Last.
24463 (Current_Packages_To_Check): Remove global variable
24464 (Empty_Name): Move to private part
24465 (No-Symbols): Make it a constant
24466 (Private_Project_Tree_Data): New type for the private part of the
24468 (Project_Tree_Data): New type for the data of a project tree
24469 (Project_Tree_Ref): New type to designate a project tree
24470 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24471 for the project tree.
24473 * prj-attr.ads: Add with Table; needed, as package Prj no longer
24474 imports package Table.
24476 * prj-com.adb: Remove empty, no longer needed body
24478 * prj-com.ads: Move most of the content of this package to package Prj.
24480 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24481 designate the project node tree and Packages_To_Check to replace
24482 global variable Current_Packages_To_Check.
24483 Add new parameters In_Tree and Packages_To_Check to local subprograms,
24484 when needed. Adapt to changes in project manager with project node tree
24487 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24488 project tree to most subprograms. Move tables and hash tables to
24489 private part of package Prj.
24490 Adapt to changes in project manager using project tree In_Tree.
24492 * prj-makr.adb (Tree): New constant to designate the project node tree
24493 Adapt to change in project manager using project node tree Tree
24495 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24496 display the Library_Src_Dir and the Library_Dir.
24497 Add new parameter In_Tree to designate the project node tree to most
24498 subprograms. Adapt to changes in the project manager, using project tree
24500 (Check_Naming_Scheme): Do not alter the casing on platforms where
24501 the casing of file names is not significant.
24502 (Check): Add new parameter In_Tree to designate the
24504 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24505 designate the project tree.
24506 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24508 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24509 to replace those that were in the private part of package Prj.
24510 Add new parameter In__Tree to designate the project node tree to most
24511 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24512 (Post_Parse_Context_Clause): When specifying the project node of a with
24513 clause, indicate that it is a limited with only if there is "limited"
24514 in the with clause, not necessarily when In_Limited is True.
24515 (Parse): Add new parameter In_Tree to designate the project node tree
24517 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24518 designate the project node tree. Adapt to change in Prj.Tree with
24519 project node tree In_Tree.
24521 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24522 tree In_Tree in the call to function Empty_Process to give its initial
24523 value to the project data Processed_Data.
24524 Add new parameters In_Tree to designate the project tree and
24525 From_Project_Node_Tree to designate the project node tree to several
24526 subprograms. Adapt to change in project manager with project tree
24527 In_Tree and project node tree From_Project_Node_Tree.
24529 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24530 to replace those that were in the private part of package Prj.
24531 Add new parameter In_Tree to designate the project node tree to most
24532 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24534 * prj-tree.ads, prj-tree.adb: Add new parameter of type
24535 Project_Node_Tree_Ref to most subprograms.
24536 Use this new parameter to store project nodes in the designated project
24538 (Project_Node_Tree_Ref): New type to designate a project node tree
24539 (Tree_Private_Part): Change table to dynamic table and hash tables to
24540 dynamic hash tables.
24542 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24543 the project tree to most subprograms. Adapt to changes in project
24544 manager using project tree In_Tree.
24546 * makegpr.adb (Project_Tree): New constant needed to use project
24549 2005-03-15 Olivier Hainque <hainque@adacore.com>
24551 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24552 for sigactions with SA_SIGINFO set. Call
24553 __gnat_adjust_context_for_raise before raising, to perform the
24554 potentially required adjustments to the machine context for the GCC
24557 * raise.h (__gnat_adjust_context_for_raise): New prototype.
24559 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24560 Adjust PC by one in the provided machine context.
24561 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24562 so that the handler is passed the context structure to adjust prior to
24564 (__gnat_error_handler) HPUX: Adjust the signature to match what an
24565 SA_SIGINFO sigaction should look like. Call
24566 __gnat_adjust_context_for_raise before actually raising.
24567 (__gnat_adjust_context_for_raise): Default noop to help PC
24568 adjustments before raise from signal handlers.
24569 (__gnat_error_handler): Indirectly call a predicate function to
24570 determine if a condition should be resignaled or not.
24571 (__gnat_set_resignal_predicate): User interface to modify the predicate.
24572 (__gnat_default_resignal_p): Default GNAT predicate.
24574 2005-03-15 Doug Rupp <rupp@adacore.com>
24576 * adaint.c: Prefix #include of VMS system header files with vms/
24577 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24578 Do not define a dummy function "convert_addresses" under Darwin,
24581 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24584 2005-03-15 Nicolas Setton <setton@adacore.com>
24586 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24589 2005-03-15 Robert Dewar <dewar@adacore.com>
24591 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24594 * a-retide.ads: Minor comment changes
24596 2005-03-15 Robert Dewar <dewar@adacore.com>
24598 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24599 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24600 Realloc_For_Chunk to private part of package.
24601 New subprograms for AI-301
24603 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24604 Get_Line procedure.
24605 Avoid unnecessary use of Get/Set_Wide_String
24607 2005-03-15 Robert Dewar <dewar@adacore.com>
24610 * a-stunau.ads, a-stunau.adb:
24611 Change interface to allow efficient (and correct) implementation
24612 The previous changes to allow extra space in unbounded strings had
24613 left this interface a bit broken.
24615 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24617 * g-spipat.ads, g-spipat.adb: New interface for Get_String
24618 Minor reformatting (function specs)
24620 * g-spitbo.adb: New interface for Get_String
24622 * g-spitbo.ads: Minor reformatting
24624 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24626 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24628 2005-03-15 Javier Miranda <miranda@adacore.com>
24629 Robert Dewar <dewar@adacore.com>
24630 Thomas Quinot <quinot@adacore.com>
24631 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24633 * atree.ads, atree.adb: Add support for Elist24 field
24635 * atree.h: Fix wrong definition of Field27
24636 Add support for Elist16 field
24637 Add support for Elist24 field
24639 * einfo.ads, einfo.adb (Abstract_Interfaces,
24640 Set_Abstract_Interfaces): New subprograms.
24641 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24643 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24644 entities rather than a single node.
24645 (Is_Interface, Set_Is_Interface): New subprogram
24646 (First_Tag_Component): New syntesized attribute
24647 (Next_Tag_Component): New synthesized attribute
24648 (Write_Entity_Flags): Upgraded to write Is_Interface
24649 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24650 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24651 (Task_Body_Procedure): New subprogram to read this attribute.
24652 (Set_Task_Body_Procedure): New subprogram to set this attribute.
24653 (Has_Controlled_Component): Now applies to all entities.
24654 This is only a documentation change, since it always worked to apply
24655 this to other than composite types (yielding false), but now this is
24657 Update documentation on Must_Be_Byte_Aligned for new spec
24659 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24660 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24661 uses of the Access_Disp_Table attribute to reference the first dispatch
24662 table associated with a tagged type. As
24663 part of the implementation of abstract interface types,
24664 Access_Disp_Table has been redefined to contain a list of dispatch
24665 tables (rather than a single dispatch table).
24666 Similarly, upgrade all the references to Tag_Component by the
24667 new attribute First_Tag_Component.
24668 (Find_Inherited_TSS): Moved to exp_tss.
24669 Clean up test in Expand_N_Object_Declaration for cases
24670 where we need to do a separate assignment of the initial value.
24671 (Expand_N_Object_Declaration): If the expression in the
24672 declaration of a tagged type is an aggregate, no need to generate an
24673 additional tag assignment.
24674 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24676 Bit packed array ops are only called if operands are known to be
24678 (Component_Equality): When returning an N_Raise_Program_Error statement,
24679 ensure that its Etype is set to Empty to avoid confusing GIGI (which
24680 expects that only expressions have a bona fide type).
24681 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24682 determine the amount of data to be copied.
24684 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24685 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24686 INTERFACE_TYPE_DEFINITION ::=
24687 [limited | task | protected | synchronized] interface
24688 [AND interface_list]
24690 * par-ch3.adb (P_Type_Declaration): Modified to give support to
24692 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24694 (P_Interface_Type_Definition): New subprogram that parses the new
24695 syntax rule of Ada 2005 interfaces
24696 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24697 messages by the correct RENAMES (quotes removed).
24699 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24700 attribute First_Tag_Component.
24702 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24703 (Interface_List, Set_Interface_List): New subprograms.
24704 (Interface_Present, Set_Interface_Present): New subprograms.
24705 (Limited_Present, Set_Limited_Present): Available also in derived
24706 type definition nodes.
24707 (Protected_Present, Set_Protected_Present): Available also in
24708 record type definition and
24709 derived type definition nodes.
24710 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24711 (Task_Present, Set_Task_Present): New subprogram.
24712 (Task_Body_Procedure): Removed.
24713 (Set_Task_Body_Procedure): Removed.
24714 These subprogram have been removed because the attribute
24715 Task_Body_Procedure has been moved to the corresponding task type
24716 or task subtype entity to leave a field free to store the list
24717 of interfaces implemented by a task (for AI-345)
24718 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24719 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24720 expression flag Do_Range_Check
24721 (Exception_Junk): Change to Flag7 to accomodate above change
24722 (Box_Present, Default_Name, Specification, Set_Box_Present,
24723 Set_Default_Name, Set_Specification): Expand the expression
24724 "X in N_Formal_Subprogram_Declaration" into the corresponding
24725 two comparisons. Required to use the csinfo tool.
24727 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24728 "with string" given.
24730 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24733 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24736 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24737 attribute Task_Body_Procedure rather than the old semantic field that
24738 was available in the task_type_declaration node.
24740 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24741 interface type definitions.
24742 (P_Formal_Derived_Type_Definition): Modified to handle the list of
24745 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24746 task type declaration.
24747 (P_Protected): Modified to handle the list of interfaces in a
24748 protected type declaration.
24750 2005-03-15 Doug Rupp <rupp@adacore.com>
24751 Vincent Celier <celier@adacore.com>
24753 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24754 (Gen_Output_File_C): Likewise.
24755 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24757 2005-03-15 Thomas Quinot <quinot@adacore.com>
24759 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24760 is an N_Raise_Constraint_Error node, create a new copy of it without
24761 going through a call to Duplicate_Subexpr.
24763 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24764 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24765 Nicolas Setton <setton@adacore.com>
24766 Ed Schonberg <schonberg@adacore.com>
24772 * decl.c (gnat_to_gnu_field): Reject aliased components with a
24773 representation clause that prescribes a size not equal to the rounded
24774 size of their types.
24775 (gnat_to_gnu_entity, case E_Component): Always look at
24776 Original_Record_Component if Present and not the entity.
24777 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24778 of tagged extension types by not making field for components that are
24780 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24781 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24782 expression to the type of the object when the object is constant.
24783 Reverse defer_debug_incomplete_list before traversing it, so that trees
24784 are processed in the order at which they were added to the list. This
24785 order is important when using the stabs debug format.
24786 If we are deferring the output of debug information, also defer this
24787 output for a function return type.
24788 When adding fields to a record, prevent emitting debug information
24789 for incomplete records, emit the information only when the record is
24791 (components_to_record): New parameter defer_debug.
24792 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24793 (gnat_to_gnu_field_decl): New function.
24794 (substitution_list, annotate_rep): Call it.
24795 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24796 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24797 No longer update discriminants to not be a COMPONENT_REF.
24798 (copy_alias_set): Strip padding from input type; also handle
24799 unconstrained arrays properly.
24801 * gigi.h (write_record_type_debug_info): New function.
24802 Convert to use ANSI-style prototypes. Remove unused
24803 declarations for emit_stack_check, elab_all_gnat and
24804 set_second_error_entity.
24805 (gnat_to_gnu_field_decl): New decl.
24807 * utils.c (write_record_type_debug_info): New function.
24808 (finish_record_type): Delegate generation of debug information to
24809 write_record_type_debug_info.
24810 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24811 (update_pointer_to): Fix pasto.
24812 (convert) <UNION_TYPE>: Accept slight type variations when
24813 converting to an unchecked union type.
24815 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24816 replace the N_Freeze_Entity with a null statement.
24818 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24819 within a constrained subcomponent of an enclosing record, place the
24820 freeze nodes in the scope stack entry for the enclosing record.
24821 (Undelay_Type): New Subprogram.
24822 (Set_Small_Size): Pass T, the type to modify; all callers changed.
24823 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24824 within records; allow them to have freeze nodes if their base types
24827 * exp_util.adb (Remove_Side_Effects): Properly test for
24828 Expansion_Delayed and handle case when it's inside an
24829 N_Qualified_Expression.
24831 * sem_ch3.adb (Derived_Type_Declaration): New predicate
24832 Comes_From_Generic, to recognize accurately that the parent type in a
24833 derived type declaration can be traced back to a formal type, because
24834 it is one or is derived from one, or because its completion is derived
24836 (Constrain_Component_Type): If component comes from source and has no
24837 explicit constraint, no need to constrain in in a subtype of the
24839 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24840 Minor change to propagate Is_Ada_2005 flag
24842 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24843 Expansion_Delayed is False.
24844 (assoc_to_constructor): Ignore fields that have a
24845 Corresponding_Discriminant.
24846 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24847 function returns "by target", dereference the target pointer using the
24848 type of the actual return value.
24849 <all>: Be prepared for a null gnu_result.
24850 (processed_inline_subprograms): Check flag_really_no_inline
24851 instead of flag_no_inline.
24852 (set_second_error_entity): Remove unused function.
24853 (gnat_to_gnu, case N_Selected_Component): Call
24854 gnat_to_gnu_field_decl.
24855 (assoc_to_constructor): Likewise.
24857 2005-03-15 Robert Dewar <dewar@adacore.com>
24858 Ed Schonberg <schonberg@adacore.com>
24859 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24861 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24862 Must_Be_Byte_Aligned for cases where we do not need to use a
24863 System.Pack_nn unit.
24865 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24867 Needed now that we do some processing for IN parameters as well. This
24868 may well fix some unrelated errors.
24869 (Expand_Call): Handle case of unaligned objects (in particular those
24870 that come from packed arrays).
24871 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24872 renamed entity is an inherited operation, re-expand the call using the
24873 original operation, which is the one to call.
24874 Detect attempt to inline parameterless recursive subprogram.
24875 (Represented_As_Scalar): Fix to work properly with private types
24876 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24877 accurate estimate. Yields True in far fewer cases than before,
24878 improving the quality of code that depends on this test.
24880 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24881 over both visible and private declarations to remove them from tree,
24882 and mark subprograms declared in package as eliminated, to prevent
24883 spurious use in subsequent compilation of generic units in the context.
24885 * exp_util.ads: Minor cleanup in variable names
24887 * sem_eval.ads, sem_eval.adb: Minor reformatting
24888 (Compile_Time_Known_Bounds): New function
24890 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24892 * exp_ch7.adb (Convert_View): Use base types of underlying types when
24893 determining whether an unchecked conversion is needed for the argument
24894 of an initialization call.
24896 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24898 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
24899 that appears in the instantiation rather than the internal subtype
24900 generated in the wrapper package, to avoid anomalies in gigi when the
24901 target is derived from a private type whose full view is an access type.
24903 2005-03-15 Robert Dewar <dewar@adacore.com>
24905 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
24907 Add documentation to replace the use of this flag
24908 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
24911 2005-03-15 Thomas Quinot <quinot@adacore.com>
24913 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
24914 here from exp_attr so it can be shared between exp_attr and exp_dist.
24915 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
24916 all TSS names, not a subset thereof, and the previous name introduced
24917 an unnecessarily confusion that a distinction might exist between
24918 "OK" TSS names and some "not OK" TSS names.
24920 2005-03-15 Doug Rupp <rupp@adacore.com>
24922 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
24925 2005-03-15 Pascal Obry <obry@adacore.com>
24926 Eric Botcazou <ebotcazou@adacore.com>
24930 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
24931 when IN_RTS. This is to work around a bootstrap path problem.
24933 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
24934 table and pass it to __gnat_install_SEH_handler().
24935 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
24937 * lang.opt: Fix specification of -fRTS=.
24939 2005-03-15 Doug Rupp <rupp@adacore.com>
24940 Bernard Banner <banner@adacore.com>
24941 Vincent Celier <celier@adacore.com>
24942 Arnaud Charlet <charlet@adacore.com>
24945 This change works fine when gnatlib is built from the gcc directory,
24946 but does not work when using the libada Makefile, since GCC_FOR_TARGET
24947 is not passed to ada/Makefile.in, so more work is needed by a
24948 Makefile/configure expert.
24950 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
24951 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
24952 Setup gnatlink switch -M for x86_64 linux, as it is already setup
24954 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
24955 Run ranlib on libgccprefix.a
24956 Define PREFIX_OBJS for Darwin, to build libgccprefix.
24957 (ADA_INCLUDE_SRCS): Split Ada packages.
24959 2005-03-15 Robert Dewar <dewar@adacore.com>
24961 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
24963 * impunit.adb: Add GNAT.UTF_32
24965 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
24967 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
24968 now uses GNAT.UTF_32).
24970 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
24971 capabilities for categorizing characters using Unicode categories
24973 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24975 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
24976 instantiation that has been rewritten as a package body, retrieve spec
24977 to generate proper name for implicit_with_clause.
24978 (Install_Parents): Recognize a parent that is an instantiation but has
24979 been rewritten as a package declaration during analysis.
24981 2005-03-15 Javier Miranda <miranda@adacore.com>
24982 Ed Schonberg <schonberg@adacore.com>
24984 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
24985 parameter reported some error we immediately return. This improves the
24986 behaviour of the frontend in case of errors.
24987 (Install_Parent, Remove_Parent): Introduce new flag
24988 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
24989 ancestor of a generic child unit, when the child is being instantiated.
24990 (Inline_Instance_Body): If we are compiling the private
24991 part or the body of a child unit, restore the proper visibility of the
24992 parents after compiling the instance body.
24994 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24995 Javier Miranda <miranda@adacore.com>
24998 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
24999 of a private type, in which case it is underlying_type that denotes
25000 the proper task. Also modified to use the new entity attribute
25001 that is directly available in the task type and task subtype entities
25002 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25003 arrays when other dimensions than the first are constrained by
25004 discriminants of an enclosing record.
25005 (Insert_Explicit_Dereference): If the prefix is an indexed component or
25006 a combination of indexed and selected components, find ultimate entity
25007 and generate the appropriate reference for it, to suppress spurious
25009 (Note_Possible_Modification): If an entity name has no entity, return.
25010 (Is_Variable): A function call never denotes a variable.
25011 (Requires_Transient_Scope): For record types, recurse only on
25012 components, not on internal subtypes that may have been generated for
25013 constrained components.
25015 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25017 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25018 Eliminated as candidates for resolution. Both efficient, and avoids
25019 anomalies with operators declared in deleted code.
25020 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25021 expansion is disabled (as when compiling a generic) to prevent spurious
25022 warnings on prefixes of selected components.
25024 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25026 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25027 attached to a list before checking whether it appears in the private
25028 declarations of the current package.
25029 (Make_Inequality_Operator): Insert declaration in proper declarative
25030 list rather than just setting the Parent field, so that
25031 Is_Private_Declaration can handle it properly.
25033 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25035 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25036 a renaming a body, check that the renamed subprogram in not intrinsic.
25037 (Find_Direct_Name): If several use_visible entities hide
25038 each other, and the context is a predefined file compiled through
25039 rtsfind, keep only the entity that comes from a predefined file.
25041 2005-03-15 Geert Bosch <bosch@adacore.com>
25043 * s-fatgen.adb (Valid): Extend special exceptions to account for long
25044 long float padding to also cover AMD64 and IA64.
25046 2005-03-15 Gary Dismukes <dismukes@adacore.com>
25048 * s-imgwch.adb: Add with and use of Interfaces.
25049 (Img_Wide_Character): Change type of Val to Unsigned_16.
25050 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25052 2005-03-15 Matthew Gingell <gingell@adacore.com>
25054 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25056 2005-03-15 Robert Dewar <dewar@adacore.com>
25058 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25060 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25062 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25064 2005-03-15 Robert Dewar <dewar@adacore.com>
25066 * s-bitops.adb, s-bitops.ads,
25067 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25068 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25069 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25070 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25071 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25072 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25073 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25074 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25077 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25079 * utils2.c (build_binary_op): Fix typo.
25081 2005-03-15 Doug Rupp <rupp@adacore.com>
25083 * s-crtl.ads (popen,pclose): New imports.
25085 2005-03-15 Cyrille Comar <comar@adacore.com>
25087 * comperr.adb (Compiler_Abort): remove references to obsolete
25088 procedures in the bug boxes for various GNAT builds.
25090 2005-03-15 Vincent Celier <celier@adacore.com>
25092 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25094 2005-03-15 Geert Bosch <bosch@adacore.com>
25095 Arnaud Charlet <charlet@adacore.com>
25096 Robert Dewar <dewar@adacore.com>
25097 Cyrille Comar <comar@adacore.com>
25098 Sergey Rybin <rybin@adacore.com>
25100 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25101 too specific and long-winded to be appropriate for the GNAT User's
25103 Warn about use of GCC switches not documented in the GNAT User's Guide,
25104 as these may cause generated code to not conform to Ada semantics.
25105 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25106 Add documentation for -gnat95 and -gnat05 switches
25107 Remove paragraph documenting obsolete way to refer to third party
25109 Add a few references to Ada_05 that were missing.
25110 Update documentation on -gnatZ/-gnatL.
25111 Document limitation when using -m64 under Solaris.
25112 Change the "Name Casing" subsection of the pretty-printer section
25113 according to the changes in the dictionary processing.
25115 * gnat_rm.texi: Document the Ada_05 pragma.
25116 Section on record representation clauses describes the new more
25117 relaxed rules about placement of large packed bit array components.
25118 Add documentation of GNAT.UTF_32
25120 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25122 * misc.c (gnat_post_options): Turn off structural
25125 2005-03-08 Laurent Guerby <laurent@guerby.net>
25127 * system-linux-sparc.ads: Fix typo in previous commit.
25129 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25130 Laurent Guerby <laurent@guerby.net>
25133 * system-linux-sparc.ads: New.
25134 * Makefile.in: Add sparc linux entry.
25136 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25138 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25139 parameters as unused.
25141 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25142 Partial merge from libada-gnattools-branch:
25144 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25145 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25146 into code in gnattools/Makefile.in. Remove direct dependencies on
25147 stamp-tools by tools clauses.
25148 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25149 * config-lang.in: Add gnattools to $lang_dirs.
25151 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25154 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25155 we asked for an unknown mode.
25157 2005-02-12 Richard Henderson <rth@redhat.com>
25159 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25160 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25162 2005-02-10 Andreas Jaeger <aj@suse.de>
25164 * init.c (__gnat_initialize): Mark parameter as unused.
25166 2005-02-09 Doug Rupp <rupp@adacore.com>
25168 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25169 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25171 2005-02-09 Doug Rupp <rupp@adacore.com>
25173 * gnatchop.adb (dup, dup2),
25174 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25176 * gnatlbr.adb (mkdir),
25177 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25179 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25181 2005-02-09 Doug Rupp <rupp@adacore.com>
25183 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25185 2005-02-09 Robert Dewar <dewar@adacore.com>
25186 Thomas Quinot <quinot@adacore.com>
25187 Javier Miranda <miranda@adacore.com>
25188 Pascal Obry <obry@adacore.com>
25189 Ed Schonberg <schonberg@adacore.com>
25190 Doug Rupp <rupp@adacore.com>
25191 Gary Dismukes <dismukes@adacore.com>
25192 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25194 * g-zstspl.ads: New file.
25196 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25198 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25200 Add definition of Wide_Wide_Space for AI-285
25202 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25203 interface (to support Ada 95 and Ada 2005 units).
25204 Add Unbounded_IO files
25205 Add entries for Wide_Wide packages for AI-285
25206 Add list of containers packages to Ada 2005 unit list
25208 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25209 support new Unbounded_IO package cleanly.
25211 * g-utf_32.ads, g-utf_32.adb: New files.
25213 * Makefile.rtl: Add entry for g-utf_32
25214 Add new files for Unbounded_IO
25215 Adjust make file for new AI-285 wide wide packages
25216 Add AI-302 containers to the run time.
25218 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25219 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25220 subprograms for AI-301.
25222 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25224 * a-stunau.ads: Minor comment correction
25226 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25228 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25229 (Check_RPC): Update to match changes in expanded code.
25230 Clean up unused entity.
25232 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25233 was not taken into account.
25234 This includes proper initialization with Normalize_Scalars.
25235 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25236 normalize scalars cases (particularly the latter) to do a better job
25237 of finding invalid representations.
25239 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25241 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25244 * exp_dist.adb: Add support for wide wide character type
25245 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25246 private part, generate stub bodies at the end of the private part,
25247 not the visible part.
25248 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25250 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25251 generic wrapper to execute final processing after completing the
25252 expansion of the RPC receiver for an RACW.
25254 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25255 packages and attributes.
25256 (Preset_Names): Addition of the new reserved words of Ada 2005,
25257 that is interface, overriding and synchronized.
25258 (Get_Pragma_Id): Give support to the use of the new reserved word
25259 "interface" as a pragma name.
25260 (Is_Pragma_Name): Give support to the use of the new reserved word
25261 "interface" as a pragma name.
25262 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25263 attribute implementation.
25265 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25266 checks to entities that are output parameters of Asm operations.
25267 Handle the Stream_Size attribute.
25268 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25270 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25272 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25273 for second parameter being 0.0.
25274 Add support for wide wide character type.
25275 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25277 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25278 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25279 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25280 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25281 for wide wide character cases.
25283 * cstand.adb: Create entities for Wide_Wide_Character and
25286 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25287 accordance with AI-258.
25288 Add new declarations for 16/32 bit C character types (Part of AI285)
25290 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25291 (Obsolescent_Warning): New field
25292 (Rep_Clause): New local subprogram used to share code. Returns the rep
25293 clause for which the name is given in parameter.
25294 (Has_Stream_Size_Clause): New routine.
25295 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25296 (Address_Clause): Implementation is now using Rep_Clause.
25297 (Alignment_Clause): Idem.
25298 (Size_Clause): Idem.
25300 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25301 entity in non-Ada 2005 mode and generate warning.
25303 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25304 (Prag): Code cleanup. Remove old gnat pragma "overriding"
25306 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25307 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25308 on the named unit if the pragma is not in the current compilation unit,
25309 so that elaboration calls in the current unit can set up an elaboration
25310 dependency on the named unit, as needed.
25311 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25312 subprogram as well as for subprograms declared within a package.
25313 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25316 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25317 to z) to avoid some instances of duplication for Wide_Wide packages.
25319 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25322 * scn.adb: Char_Literal_Value field is now a Uint
25324 * scng.adb: Significant rewrite to handle new Ada 2005 features
25325 allowing wide and wide wide characters in program text, e.g. for
25326 identifiers, as described in AI-285.
25327 (Set_Reserved): New procedure, makes setting up keywords cleaner.
25328 (Initialize_Scanner): Register the new reserved words of Ada 2005.
25329 (Scan): Give support to the new reserved words.
25331 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25332 warning notifying that interface, overriding, and synchronized are
25333 new reserved words.
25334 (P_Pragma): Allow the use of the new reserved word "interface" as
25337 * gnatls.adb, gnatbind.adb,
25338 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25339 identifiers named "interface" to "SAL_Interface".
25341 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25342 (Structured Exception handling).
25343 (Gen_Main_C): Idem.
25346 (Gen_Main_Ada): Set the default exit code if specified.
25347 (Gen_Main_C): Likewise.
25349 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25350 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25352 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25355 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25356 has a collision with the new Ada 2005 "interface" reserved word.
25358 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25359 generate a warning notifying that interface, overriding, and
25360 synchronized are new reserved words.
25362 * scans.ads (Token_Type): Addition of the tokens corresponding to the
25363 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25364 and Tok_Synchronized.
25366 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25367 "dispatching" rather than "primitive" operations, since dispatching
25368 calls are now allowed to abstract formal subprograms (which are not
25370 Char_Literal_Value field is now a Uint
25371 (Resolve_Slice): If the prefix is an access to an unconstrained array,
25372 compute the actual subtype of the designated object to impose the proper
25374 (Resolve_Selected_Component): Do not insert an access check if the
25375 prefix is an access type: such a node is expanded into an explicit
25376 dereference, on which the access check is performed anyway. Removes
25377 expensive duplicate checks.
25378 (Resolve_Call): Use new flag Is_Obsolescent and field
25379 Obsolescent_Warning so that pragma Obsolescent works on library
25381 Add support for wide wide character type
25382 (Resolve_Allocator): Replace the error message on wrong null-exclusion
25383 value by a warning message.
25384 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25385 as fixed-point, and one of the operands is non-static and universal, it
25386 can only be an illegal exponentiation operation, in which case there is
25387 no real value to retrieve.
25389 * exp_strm.adb: Add support for wide wide character type
25390 (Build_Elementary_Input_Call): Compute the size of the stream element by
25391 querying the rep chain to find the Stream_Attribute attribute value.
25392 (Build_Elementary_Write_Call): Ditto.
25394 * sem_aggr.adb: Char_Literal_Value field is now a Uint
25395 Add support for wide wide character type
25396 Replace the error messages on wrong null-exclusion value by warnings
25397 as described in Ada 2005.
25398 (Resolve_Extension_Aggregate): Document the fact that the error
25399 message on class-wide expressions in extensions aggregates.
25401 * sem_case.adb: Add support for wide wide character type
25403 * sem_ch13.adb: Add support for wide wide character type
25404 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25406 * sem_ch3.adb: Add support for wide wide character type
25407 (Process_Subtype): If constraint is illegal for the type, set Ekind of
25408 now-useless Itype, to prevent cascaded errors on a compiler built
25411 * sem_ch8.adb: Add with and use of Sem_Disp.
25412 (Analyze_Subprogram_Renaming): Replace unclean uses of
25413 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25414 of Corresponding_Spec to Empty).
25415 (Attribute_Renaming): Replace use of Corresponding_Spec with
25416 Corresponding_ Formal_Spec and simplify condition.
25417 (Use_One_Package): Check that scope of homonym of identifier is defined,
25418 before checking whether it is a wrapper package.
25419 Add support for wide wide character type
25421 * sem_eval.adb: Add support for wide wide character type.
25422 (Eval_Arithmetic_Op): Check for compile time known signed integer
25423 overflow in the non-static case.
25424 (Subtypes_Statically_Match): A formal scalar type and its base type do
25425 not statically match.
25427 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25428 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25430 (Unit_Declaration_Node): Ditto.
25431 (Is_Variable_Prefix): For the case of an indexed component whose prefix
25432 has a packed array type, the prefix has been rewritten into a type
25433 conversion. Determine variable-ness from the converted expression.
25434 Handle wide wide character cases.
25436 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25438 * stringt.ads, stringt.adb: Handle full UTF-32 range.
25439 Remove ["0A"] from comment, since it can look like a line terminator.
25440 Currently we don't permit this, but this is under discussion by the
25441 ARG, and it is easy enough to use a different example.
25443 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25444 handling UTF-32 encoding for wide wide character.
25445 Implement new brackets coding ["hhhhhhhh"]
25446 Add UTF-8 encodings for full UTF-32 range
25448 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25450 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25451 bit range Add full UTF-32 support.
25452 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25453 notify that constraint error will be raised at run-time
25454 because a null value is assigned to a null-excluding object.
25455 Remove some obsolete declarations and make Char_Code
25458 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25459 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25460 Rcheck subprograms.
25462 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25463 wrong null-exclusion value by a warning message.
25464 (Enable_Range_Check): Do range check if the prefix is an
25465 explicit dereference whose designated object is an unconstrained array.
25466 Current algorithm for removing duplicate checks is over-eager in this
25469 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25470 null-exclusion value by a warning message
25472 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25473 completely. Add support for Uint2 field
25475 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25476 exp_prag.adb: Char_Literal_Value field is now a Uint.
25478 * exp_util.adb (Insert_Actions): Replace
25479 N_Formal_Subprogram_Declaration by
25480 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25481 Char_Literal_Value field is now a Uint.
25483 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25484 defined for subprogram renaming declarations. When set, the field
25485 indicates the defining entity of a corresponding formal subprogram
25486 when the renaming corresponds to a formal subprogram association in an
25488 (Set_Corresponding_Formal_Spec): New procedure to return
25489 Corresponding_Formal_Spec field.
25490 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25491 (which is now a subtype).
25492 Char_Literal_Value field is now a Uint
25494 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25495 pointer to the base of the dispatch table.
25496 Minor changes to comments.
25497 (Controlling_Type): New function for determining the tagged type
25498 associated with a tagged primitive subprogram.
25499 (Expand_Dispatching_Call): Add support for a controlling actual that is
25500 directly a value of type Ada.Tag rather than a tagged object.
25502 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25503 describing the new layout.
25504 (Dispatch_Table): The expander computes the actual array size, allocates
25505 the Dispatch_Table record accordingly, and generates code that displaces
25506 the base of the record after the Typeinfo_Ptr component. The access to
25507 these components is done by means of local functions.
25508 (Offset_To_Top): New function.
25509 (Typeinfo_Ptr): New function.
25510 (Get_TSD): Modified to access the new position of the TSD.
25511 (Set_TSD): Modified to save the TSD in its new position.
25513 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25514 case of formal abstract subprograms. Add check and message for -gnat05.
25517 * sem_ch12.adb: Add with and use for Sem_Disp.
25518 (Analyze_Associations): Minor change from "=" to "in" for use of
25519 N_Formal_Subtype_Declaration (which is now a subtype).
25520 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25521 N_Formal_Subtype_Declaration (which is now a subtype).
25522 (Analyze_Formal_Subprogram): Add handling for
25523 N_Formal_Abstract_Subprogram, marking the formal as abstract and
25524 dispatching, setting the controlling status of the formal parameters
25525 and result, and issuing an error if there is no controlling type for
25526 the formal subprogram.
25527 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25528 which is an unclean use of that field, we set the new field
25529 Corresponding_Formal_Spec to make the formal subprogram available to
25530 processing in Analyze_Subprogram_Declaration.
25531 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25532 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25533 Constrained, so that it is is does not statically match its anonymous
25536 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25537 abstract formal subprograms in error check for functions returning
25538 abstract types. Set scope of new designator for
25539 a parameterless subprogram, so that it is available when checking the
25540 body for nested subprograms, before full analysis of said body.
25541 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25542 subprogram only if inner one comes from source.
25543 (Analyze_Function_Call): If the call is given in object notation, the
25544 analysis of the name rewrites the node and analyzes it with the proper
25545 argument list. After analyzing the name, if the call has been rewritten
25546 and the result type is set, no further analysis is needed.
25547 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25548 mark in function specification, in a context where the formals are
25549 visible and hide outer homographs.
25551 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25552 as the tagged type for the cases of abstract formal subprograms and
25553 renamings of those. Clean up spec comments.
25554 (Check_Dispatching_Context): Add error message to indicate "abstract
25555 procedure", covering the case of a call to a formal abstract procedure
25556 that has statically tagged operands.
25557 (Check_Dispatching_Call): Check for the case of an actual given by
25558 a tag-indeterminate function call whose type is an ancestor of the
25559 containing call's associated tagged type. This situation can occur
25560 for inherited primitives with function defaults. In this case we
25561 use the tagged type's tag directly as the controlling argument for
25563 (Expand_Call): Name change on call to Expand_Dispatch_Call.
25565 * sprint.adb (Sprint_Node_Actual): Split
25566 N_Formal_Subprogram_Declaration into two alternatives for the new
25567 cases N_Formal_Abstract_Subprogram_Declaration and
25568 N_Formal_Concrete_Subprogram_Declaration.
25569 Char_Literal_Value field is now a Uint.
25571 * trans.c: Get rid of junk Uint2 reference.
25572 Char_Literal_Value field is now a Uint.
25573 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25574 (gigi): Correct third arg to gimplify_body.
25576 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25577 (TYPE_LANG_FLAG_0): Check for record or union.
25579 * treepr.adb: Char_Literal_Value field is now a Uint
25581 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25584 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25585 Add full UTF-32 support
25586 Char_Code is now 32 bits
25588 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25589 wide character UTF_32 line terminators.
25590 Initialize Main_Source_File to avoid error when no main
25593 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25594 (Main_Source_File) when no main source has been loaded, to avoid
25597 2005-02-09 Robert Dewar <dewar@adacore.com>
25599 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25600 Fix name of Set routine
25602 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25605 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25606 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25609 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25610 forms of Get_Line subprograms for AI-301.
25612 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25613 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25614 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25615 a-stwima.ads: Minor reformatting.
25617 2005-02-09 Doug Rupp <rupp@adacore.com>
25618 Thomas Quinot <quinot@adacore.com>
25620 * adaint.c, adaint.h
25621 [VMS] (to_ptr32): New function.
25622 (MAYBE_TO_PTR32): New macro.
25623 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25625 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25626 [VMS] (#define fork()): Remove since unneccessary.
25627 (__gnat_set_close_on_exec): New routine to support
25628 GNAT.OS_Lib.Set_Close_On_Exec.
25630 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25631 the parent side as close-on-exec so that they are not inherited by the
25634 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25635 set or clear the FD_CLOEXEC flag on a file descriptor.
25637 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
25638 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25642 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25643 on the field if Pragma Component_Alignment (Storage_Unit).
25644 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25645 side-effects as if it were a constant; also make SAVE_EXPR to protect
25647 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25649 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25650 (components_to_record): Test it.
25651 Fix improper usage of REFERENCE_CLASS_P.
25653 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25656 * utils2.c: Minor reformatting.
25658 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25659 handle other cases like RECORD_TYPE.
25661 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25663 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25665 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25666 component of an array of arrays in an assignment context, and the
25667 aggregate has component associations that require sliding on
25668 assignment, force reanalysis of the aggregate to generate a temporary
25669 before the assignment.
25670 (Must_Slide): Make global to the package, for use in Gen_Assign.
25672 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25674 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25675 unchecked union with no inferable discriminants, return a
25676 Raise_Program_Error node, rather than inserting it at the point the
25678 (Expand_Record_Equality, Component_Equality): Handle properly the case
25679 where some subcomponent is an unchecked union whose generated equality
25680 code raises program error.
25682 2005-02-09 Doug Rupp <rupp@adacore.com>
25684 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25685 [VMS] (#define exit hack): Remove.
25687 2005-02-09 Pascal Obry <obry@adacore.com>
25688 Arnaud Charlet <charlet@adacore.com>
25690 * init.c (__gnat_initialize): Add a new parameter eh which contains the
25691 address of the exception registration. The Win32 version of this
25692 routine calls __gnat_install_SEH_handler() to initialize the SEH
25693 (Structured Exception Handling) handler.
25694 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25695 SEH (Structured Exception Handling) now.
25696 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25697 (__gnat_initialize for ppc-vxworks): Adjust comments and the
25698 preprocessor condition protecting the call to the extra eh setup
25699 subprogram, which is only available for the ppc target.
25700 (__gnat_clear_exception_count): replaced reference to
25701 variable taskIdCurrent by call to taskIdSelf(), cleaner.
25703 * seh_init.c: New file.
25705 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25706 (GNATBIND_OBJS): Idem.
25708 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25709 routine takes a new parameter (a pointer to the exception registration
25710 for the SEH (Structured Exception Handling) support.
25712 * raise.h: (__gnat_install_SEH_handler): New prototype.
25713 Update copyright notice.
25715 * s-tassta.adb (Task_Wrapper): Declare the exception registration
25716 record and initialize it by calling __gnat_install_SEH_handler.
25718 2005-02-09 Vincent Celier <celier@adacore.com>
25720 * make.adb (Gnatmake): Do not fail when the main project has no object
25723 2005-02-09 Doug Rupp <rupp@adacore.com>
25725 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25726 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25727 [VMS]: Add translations for g-enblsp.adb.
25729 * s-asthan-vms.adb: Removed.
25730 * s-asthan-vms-alpha.adb: Added.
25732 2005-02-09 Pascal Obry <obry@adacore.com>
25734 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25735 (LIBGNAT_OBJS): Add seh_init.o.
25737 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25740 * Makefile.in: Link all gnat tools with -static-libgcc, since
25741 -shared-libgcc is now used by default on some systems (e.g. linux with
25743 Remove references to Makefile.prolog/generic, no longer used.
25745 2005-02-09 Vincent Celier <celier@adacore.com>
25747 * prj-makr.adb (Process_Directory): Put file name in canonical case
25748 before matching against the patterns.
25749 If gnatname has been invoked as <prefix>-gnatname
25750 then invoke the compiler as <prefix>-gcc, not just "gcc".
25752 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25754 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25755 with expansion disabled. The actual subtype is needed among other
25756 places when the selected component appears in the context of a loop
25757 bound, and denotes a packed array.
25758 (Operator_Check): Always use the first subtype in the
25759 error message, to avoid the appearance of internal base types.
25760 (Transform_Object_Operation): Copy each actual in full
25761 to the parameter associations of the constructed call, rather than
25762 using the shallow copy mechanism of New_Copy_List. This ensures that
25763 the chaining of named associations is done properly.
25764 (Complete_Object_Operation): Rewrite node, rather than
25765 replacing it, so that we can trace back to the original selected
25768 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25769 and calls that use object notation, if the called function is not
25770 declared in a withed unit, place the elaboration constraint on the
25771 unit in the context that makes the function accessible.
25772 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25773 imposes an elaboration constraint between two packages.
25775 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25777 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25778 views of a private type after handling its private dependents, to
25779 maintain proper stack discipline between entry and exit from the
25782 2005-02-09 Cyrille Comar <comar@adacore.com>
25784 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25785 Minor reformatting.
25787 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25789 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25790 fields for foreign threads.
25792 2005-02-09 Doug Rupp <rupp@adacore.com>
25794 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25795 recursion warnings when compiled with -gnatdm.
25797 2005-02-09 Robert Dewar <dewar@adacore.com>
25799 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25800 Slight fix to documentation of -gnaty with no parameters
25802 * xr_tabls.ads: Add ??? comment for missing overall comment
25804 * xsinfo.adb: Make default file name be sinfo.h, since this is what
25805 we now use by default.
25807 * xsnames.adb: Adjust end of file test to look for five space followed
25808 by '#' instead of six spaces. The format of xsnames.adb was modified
25809 in the last update.
25811 * a-numeri.ads: Add reference to AI-388 for greek letter pi
25814 * clean.adb: Minor reformatting.
25816 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25817 gnatname.adb: Minor reformatting
25818 Add 2005 to copyright output when utility is run
25820 * csets.adb: Eliminate obsolete comment
25822 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25825 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25827 2005-02-09 Sergey Rybin <rybin@adacore.com>
25829 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25830 the difference between compact and incompact layout and add the record
25831 representation clause to the example illustrating different layouts.
25832 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25833 component clauses").
25835 2005-02-09 Florian Villoing <villoing@adacore.com>
25837 * gnat_ugn.texi: Fix typos.
25838 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25840 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25841 in the generated documentation.
25843 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25845 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25847 Update linker wrapper when linking with non GNU C++.
25849 2005-02-09 Pascal Obry <obry@adacore.com>
25852 Document the procedure to debug the DllMain routine on Windows.
25853 Add note about -funwind-tables and mixed Ada and C/C++ programming in
25855 Document new BIND qualifer /RETURN_CODES=VMS.
25857 2005-02-09 Ben Brosgol <brosgol@adacore.com>
25859 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25860 Edited gnatmetric chapter
25862 2005-02-09 Robert Dewar <dewar@adacore.com>
25865 Changes to document new wide wide character support
25867 Update documentation on Normalize_Scalars and Initialize_Scalars
25869 2005-02-09 Pascal Obry <obry@adacore.com>
25871 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25873 2005-02-09 Jose Ruiz <ruiz@adacore.com>
25875 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25876 from the VxWorks kernel) that is needed for getting the active
25877 priority of the different tasks.
25879 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25880 Use a pragma Elaborate_Body in the spec file instead.
25881 Noticed by code reading.
25883 2005-02-09 Thomas Quinot <quinot@adacore.com>
25885 * exp_util.ads: Minor correction in comment.
25887 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25889 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
25890 since this procedure is now too complex to be worth inlining.
25892 2005-02-09 Richard Henderson <rth@redhat.com>
25894 * utils.c (gnat_define_builtin): Remove.
25895 (gnat_install_builtins): Use build_common_builtin_nodes.
25897 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25899 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25900 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
25901 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
25902 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
25903 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
25904 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
25905 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
25906 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
25907 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
25908 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25909 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
25910 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
25911 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
25912 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
25913 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
25914 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
25915 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
25916 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
25917 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
25918 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
25919 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
25920 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
25921 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
25922 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
25923 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
25924 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
25925 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25926 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
25927 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
25928 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
25929 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25930 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
25931 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
25932 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
25935 2005-01-27 Laurent Guerby <laurent@guerby.net>
25937 * Makefile.in: Fix a-intnam.ads from previous commit,
25938 add 2005 to copyright.
25939 * a-intman-rtems.ads: Renamed to...
25940 * a-intnam-rtems.ads:
25942 2005-01-27 Laurent Guerby <laurent@guerby.net>
25944 * Makefile.in: Rename GNAT RTEMS specific files.
25945 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
25946 5rosinte.ads, 5rparame.adb: Replaced by files below.
25947 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
25948 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
25950 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
25951 Laurent Guerby <laurent@guerby.net>
25954 * 5rosinte.ads: Add No_Key constant.
25955 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
25956 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
25958 2005-01-26 Laurent Guerby <laurent@guerby.net>
25961 * i-cobol.adb (Valid_Numeric): Handle zero length case.
25963 2005-01-20 Richard Henderson <rth@redhat.com>
25965 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
25966 a-intnam-linux.ads and system-linux-alpha.ads.
25967 * a-intnam-linux-alpha.ads: Remove file.
25968 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
25969 * system-linux-alpha.ads: New file.
25971 2005-01-18 Jakub Jelinek <jakub@redhat.com>
25974 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
25975 set to the new string.
25977 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
25979 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
25982 2005-01-18 Richard Henderson <rth@redhat.com>
25984 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
25985 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
25987 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
25989 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
25991 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
25992 (GCC_ZCX_Support): Likewise.
25994 2005-01-11 Bastian Blank <waldi@debian.org>
25996 * system-linux-s390.ads: Define Preallocated_Stacks.
25997 * system-linux-s390x.ads: Likewise.
25999 2005-01-04 Arnaud Charlet <charlet@adacore.com>
26001 * gnat_ugn.texi: Fix texi errors with null variables.
26003 2005-01-03 Thomas Quinot <quinot@adacore.com>
26005 * gen-soccon.c: New utility program to generate g-soccon.ads
26008 * socket.c, gsocket.h: Split inclusion of system header files into a
26009 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26011 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26012 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26013 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26014 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26015 should not be edited by hand anymore, but should be regenerated using
26018 2005-01-03 Robert Dewar <dewar@adacore.com>
26019 Ed Schonberg <schonberg@adacore.com>
26020 Vincent Celier <celier@adacore.com>
26022 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26023 on/off, since this is an obsolescent feature, for which we now generate
26026 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26027 warning mode is set and obsolescent usage of this attribute occurs.
26028 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26029 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26030 predates, and partly motivates, the adoption of the AI.
26031 Implement new Ada 2005 attribute Mod
26033 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26036 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26038 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26039 pragma restrictions.
26040 New entry for Ada 2005 attribute Mod.
26043 Add recognition of new pragma Restrictions No_Dependence
26044 Recognize restriction No_Obsolescent_Features at parse time
26046 * bcheck.adb: Add circuitry for checking for consistency of
26047 No_Dependence restrictions.
26049 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26052 * restrict.ads, restrict.adb: Add subprograms to deal with
26053 No_Dependence restrictions.
26055 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26058 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26059 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26061 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26062 dummy parameter to scng instantiation.
26063 Needed for new restriction No_Obsolescent_Features
26065 * scn.adb: (Obsolescent_Check): New procedure
26066 Needed for new restriction No_Obsolescent_Features
26068 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26069 specified by AI-285, needed for implementation of AI-388 (adding greek
26070 pi to Ada.Numerics).
26071 Add new generic formal to scng, needed for new restriction
26072 No_Obsolescent_Features.
26074 * s-rident.ads: Add new restriction No_Obsolescent_Features.
26076 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26077 restrictions lines.
26078 (Scan_ALI): When finding an unexpected character on an R line, raise
26079 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26080 Ignore_Errors is True, default restrictions are set and scanning of the
26081 ALI file continues with the next line. Also, when Bad_R_Line is raised
26082 and Ignore_Errors is True, skip to the end of le line.
26084 * sem_ch10.adb: Check that explicit with's do not violate
26085 No_Dependence restrictions.
26086 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26087 illegal context clauses containing child units of instance.
26089 * sem_prag.adb: Processing and checking for new No_Dependence
26091 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26092 analyze and check the External argument.
26094 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26096 2005-01-03 Robert Dewar <dewar@adacore.com>
26098 * atree.adb: Add a fifth component to entities
26099 This allows us to add 32 flags and four new fields
26101 * atree.ads: Add a fifth component to entities
26102 This allows us to add 32 flags and four new fields
26104 * einfo.ads, einfo.adb: Document new fields and new flags now available
26105 Add routines for printing new fields
26107 * treepr.adb: Call routines to print out additional fields if present
26109 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26111 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26112 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26114 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26115 Remove gpr2make, replaced by gprmake.
26116 Remove references to gnatmem and libaddr2line.
26117 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26118 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26119 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26120 a-numaux-darwin.ads and a-numaux-darwin.adb
26121 Enable mlib-tgt-lynxos.adb on lynxos.
26123 * Make-lang.in: Remove rules for gpr2make.
26124 When generating sdefault.adb, do not call Relocate_Path
26125 on S3 for function Target_Name, as it is not a path.
26126 Remove references to gnatmem and libaddr2line.
26128 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26131 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26133 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26134 address is incompatible with its base type alignment constraints when
26135 this can be decided statically.
26137 2005-01-03 Olivier Hainque <hainque@adacore.com>
26139 * decl.c (compatible_signatures_p): New function. The intended purpose
26140 is to check if two function signatures for a call-site and a callee are
26141 compatible enough for the call to be valid. The underlying purpose is
26142 to check if a call to a mapped builtin is using the right interface.
26143 The current code actually does not check antyhing - this a placeholder
26144 for future refinements.
26145 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26146 builtin calls for convention Intrinsic.
26148 * gigi.h (builtin_decl_for): Declare (new function).
26150 * utils.c (gnat_install_builtins): Install the target specific builtins.
26151 (builtin_decl_for): New function, provide a dummy body for now.
26153 2005-01-03 Geert Bosch <bosch@adacore.com>
26155 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26156 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26157 (Pred): Implement in terms of Succ.
26159 * trans.c (convert_with_check): Reimplement conversion of float to
26162 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26163 Vincent Celier <celier@adacore.com>
26165 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26166 bounds can be negative, and must be declared Int, not Nat.
26168 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26169 array is checked after using the index in the array.
26171 * makegpr.adb (Add_Switches): Check if there is a package for the
26172 processor. If there is no package, do not look for switches.
26174 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26176 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26177 generation of predefined stream operations (specs and bodies) should
26178 proceed. Under various restrictions these subprograms must not be
26181 2005-01-03 Thomas Quinot <quinot@adacore.com>
26184 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26185 amount of PCS-specific code in RACW stubs generation.
26186 (Copy_Specification): Set Etype on copied formal parameter entities, as
26187 this information is needed for PolyORB stubs generation.
26188 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26189 variable Dynamic_Async.
26190 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26191 (Build_RPC_Receiver_Specification): Make generic again, as recent
26192 changes have allowed RPC receivers to have the same profile for both
26193 variants of the PCS.
26194 Reorganise RPC receiver generation to reduce differences between the
26195 structure of GARLIC and PolyORB RPC receivers.
26196 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26198 Simplify elaboration code for RCI packages.
26200 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26201 generation to reduce differences between the structure of GARLIC and
26202 PolyORB RPC receivers.
26204 * s-stratt.adb: Fix typo in comment.
26206 2005-01-03 Thomas Quinot <quinot@adacore.com>
26208 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26209 copied from Make_Init_Call).
26211 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26212 reads and assignments on a temporary variable declared with appropriate
26215 2005-01-03 Robert Dewar <dewar@adacore.com>
26217 * i-c.adb (To_C): Raise CE if string is null and Append_Null
26219 2005-01-03 Robert Dewar <dewar@adacore.com>
26221 * i-cstrin.adb (Update): Do not append a null in form called with a
26222 String. This avoids unintended behavior.
26224 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26227 * init.c: Fix warnings on Free BSD section.
26229 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26232 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26235 2005-01-03 Vincent Celier <celier@adacore.com>
26237 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26238 libraries when Unique_Compile is True (-u switch).
26241 2005-01-03 Robert Dewar <dewar@adacore.com>
26243 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26244 upper case letter or underscore after W, as allowed by spec.
26246 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26248 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26249 darwin port by using proper type definitions from header files.
26250 Use SIGTERM instead of SIGABRT for SIGADAABORT.
26252 2005-01-03 Robert Dewar <dewar@adacore.com>
26254 * par.adb: Enhance error message handling for configuration file
26257 2005-01-03 Robert Dewar <dewar@adacore.com>
26259 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26260 removed during the previous update (test properly for case of dividing
26261 largest negative number by -1, which generates overflow).
26263 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26264 Sergey Rybin <rybin@adacore.com>
26266 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26267 to use as the defining identifier for a formal package.
26268 (Remove_Parent): If the instance takes place within (an instance of)
26269 a sibling, preserve private declarations of common parent.
26271 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26273 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26274 to determine whether one of the operands is a fixed-point type for
26275 which a user-defined multiplication or division operation might be
26278 * sem_res.adb (Valid_Conversion): The legality rules for conversions
26279 of access types are symmetric in Ada 2005: either designated type can
26282 2005-01-03 Vincent Celier <celier@adacore.com>
26284 * s-fileio.adb (Temp_File_Record): Change length of string component
26285 Name from L_tmpnam + 1 to max_path_len + 1.
26287 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26289 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26290 Self_Id.Deferral_Level = 0.
26291 (Do_Pending_Action): Move this function to the spec.
26293 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26294 Do_Pending_Action explicitely when needed, in case we're using
26295 No_Abort restrictions.
26297 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26298 deferral level since it will not get changed by the generated code.
26299 Keeping a default value of 1 would prevent some operations (e.g.
26300 select or delay) to proceed successfully.
26302 2005-01-03 Ben Brosgol <brosgol@adacore.com>
26303 Robert Dewar <dewar@adacore.com>
26304 Cyrille Comar <comar@adacore.com>
26306 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26307 porting guide chapter (vms version).
26308 Revised doc title (removed "for native platforms") and subtitle.
26309 Add discussion on warning flag for obsolescent features. First we
26310 note that it applies to obsolete GNAT features, which was previously
26311 omitted. Second we contrast the behavior with that of the new
26312 Ada 2005 AI-368 restriction No_Obsolescent_Features.
26313 Preliminary rewriting of GNAT & libraries chapter in order to take
26314 into account default project locations & new project manager
26317 2005-01-03 Robert Dewar <dewar@adacore.com>
26319 * cstand.adb (Create_Operators): Clean up format and documentation of
26320 unary and binary operator result tables. No change in code, just
26321 reformatting and addition of comments.
26323 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26324 sem_ch2.adb: Minor reformatting
26326 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26327 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26328 comments for Tree_Read and Tree_Write.
26330 2005-01-03 Pascal Obry <obry@adacore.com>
26332 * exp_attr.ads: Minor reformatting.
26334 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
26336 * comperr.adb (Compiler_Abort): Add specialized message for GAP
26339 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26341 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26342 whether the ancestor type is private, as may be the case with nested
26345 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
26348 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26350 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
26352 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26353 * utils2.c (build_unary_op): Likewise.
26355 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26357 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26359 2004-12-19 Richard Henderson <rth@redhat.com>
26361 * trans.c (gigi): Update gimplify_body call.
26363 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
26365 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26367 2004-12-07 Ed Falis <falis@adacore.com>
26369 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26370 current task being suspended.
26372 * init.c (__gnat_clear_exception): added to reset VxWorks exception
26374 (__gnat_map_signal): removed test for current task being suspended.
26376 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26378 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26379 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26380 targets (such as AAMP).
26382 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26384 * atree.adb (Visit_Itype): Create a new name for the generated itype,
26385 because the back-end may otherwise treat it as a redefinition of the
26388 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
26390 * back_end.adb (Scan_Back_End_Switches): Accept --param.
26392 * lang-specs.h: Accept --param.
26394 2004-12-07 Vincent Celier <celier@adacore.com>
26396 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26397 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26398 Current_Body_Suffix => Ada_Body_Suffix).
26399 Take into account Externally_Built attribute.
26401 * clean.adb (In_Extension_Chain): Always return False when one of the
26402 parameter is No_Project.
26403 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26404 Ada_Language_Index).
26405 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26406 Process_Languages for procedure Parse).
26408 * gnatcmd.adb (Carg_Switches): New table.
26409 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26410 Adapt to name changes in package Prj (Current_Spec_Suffix =>
26411 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26413 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26414 Header_Num and function Hash are now declared in package Prj,
26417 * prj.adb (Suffix_Of): New function.
26418 (Set (Suffix)): New procedure.
26419 (Hash): One function moved from Prj.Com
26420 (Is_Present, Language_Processing_Data_Of): New functions
26421 (Set): Two new procedures
26422 (Add_Language_Name, Display_Language_Name): New procedures
26424 * prj.ads: (Suffix_Of): New function
26425 (Set (Suffix)): New procedure
26426 Add several types and tables for multi-language support.
26427 (Header_Num): Type moved from Prj.Com
26428 (Hash): Two functions moved from Prj.Com
26429 (Is_Present, Language_Processing_Data_Of): New functions
26430 (Set): Two new procedures
26431 (Add_Language_Name, Display_Language_Name): New procedures
26432 (Naming): Component name changes:
26433 Current_Spec_Suffix => Ada_Spec_Suffix,
26434 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26435 Impl_Suffixes, Supp_Suffixes.
26436 (Project_Data): New components: Externally_Built, Supp_Languages,
26437 First_Language_Processing, Supp_Language_Processing, Default_Linker,
26438 Default_Linker_Path.
26440 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26441 new package Language_Processing with its attributes (Compiler_Driver,
26442 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26443 Binder_Driver, Default_Linker).
26445 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26446 (Header_Num): Type moved to package Prj
26448 * prj-env.adb: Adapt to name changes in package Prj
26449 (Current_Spec_Suffix => Ada_Spec_Suffix,
26450 Current_Body_Suffix => Ada_Body_Suffix).
26452 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26453 default to the project path, except the "-" is one of the directories
26454 in env var ADA_PROJECT_PATH.
26455 (Current_Project_Path): Global variable, replacing Project_Path
26456 that was in the body of Prj.Part.
26457 (Project_Path): New function
26458 (Set_Project_Path): New procedure
26459 Initialize Current_Project_Path during elaboration of the package
26460 Remove dependency on Prj.Com, no longer needed
26462 * prj-ext.ads (Project_Path): New function
26463 (Set_Project_Path): New procedure
26465 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26466 suffix is defined for language <lang>.
26467 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26468 accessing directly the components of Naming.
26469 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26470 Reorganise of this package.
26471 Break procedure Check in several procedures.
26473 * prj-nmsc.ads: Replace all procedures (Ada_Check,
26474 Other_Languages_Check and Language_Independent_Check) with a single
26477 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26478 Process_Languages, no longer needed.
26480 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26481 Current_Project_Path.
26482 Remove elaboration code, moved to the body of Prj.Ext
26483 Use new function Prj.Ext.Project_Path instead of old variable
26485 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26486 When comparing with project paths on the stack, first put the resolved
26487 path in canonical case.
26488 (Parse_Single_Project): Set the path name of the project file in the
26489 tree to the normalized path.
26491 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26492 parameter Process_Languages, no longer needed.
26493 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26494 Other_Languages_Check.
26496 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26497 to store the resolved canonical path of the project file.
26498 Remove dependency to Prj.Com, no longer needed
26500 * prj-util.adb: Adapt to name changes in package Prj
26501 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26504 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26505 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26506 Externally_Built, Include_Option, Language_Processing.
26508 * makegpr.adb: Numerous changes due to changes in packages
26511 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26512 default to the project path, except whe "-" is one of the directories
26513 in env var ADA_PROJECT_PATH.
26514 (Gnatls): In verbose mode, add the new section "Project Search Path:"
26516 2004-12-07 Robert Dewar <dewar@adacore.com>
26518 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26520 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26523 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26524 flag. No longer needed now that we handle this in gnat1drv.adb.
26526 * repinfo.ads: Minor reformatting
26528 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26529 Olivier Hainque <hainque@adacore.com>
26530 Eric Botcazou <ebotcazou@adacore.com>
26532 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26533 TYPE_SIZE_UNIT of result type if SIZE is not specified.
26534 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26535 of a bitfield, which we know is useless and causes trouble because of
26536 alignment implications.
26538 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26540 (process_attributes): Clear DECL_COMMON again when a section attribute
26542 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26543 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26544 (create_field_decl): Special case ADDRESSABLE negative to mean
26545 "no bitfield creation", to be used by make_aligning_type. Don't
26546 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26547 fields claimed addressable still have to be bitfields. Use
26548 value_factor_p instead of a raw binop construction to check for the
26549 position's alignment.
26551 2004-12-07 Geert Bosch <bosch@adacore.com>
26553 * eval_fat.adb: Revert previous change.
26555 2004-12-07 Thomas Quinot <quinot@adacore.com>
26556 Ed Schonberg <schonberg@adacore.com>
26558 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26559 with an implicit dereference as its prefix, use
26560 Insert_Explicit_Dereference instead of merely rewriting the prefix into
26561 an explicit dereference. This ensures that a reference to the original
26562 prefix is generated, if appropriate.
26564 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26565 dereference is rewritten to an explicit one, generate a reference to
26566 the entity denoted by its prefix using the original prefix node, so
26567 the dereference can be properly recorded as a read of the denoted
26568 access value, if appropriate.
26570 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26571 emitting 'assigned but never read' warning on a variable on the basis
26572 that it has an access type.
26573 (Check_References): Emit unreferenced warning when the scope is a
26576 2004-12-07 Robert Dewar <dewar@adacore.com>
26577 Ed Schonberg <schonberg@adacore.com>
26579 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26582 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26583 leaving call unchanged.
26584 This deals with the case where the pragma Import specified
26585 an external name, to be handled by the back end.
26587 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26588 subprogram which is Imported with convention Intrinsic if an
26589 External_Name argument is specified.
26590 (Process_Import_Or_Interface): Properly diagnose link name argument.
26591 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26592 with Sem_Ch6.Cannot_Inline.
26593 (Process_Inline): Provide separate warning for inapplicable inline
26595 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26596 treatment is uniform on different targets.
26598 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26600 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26601 construct is rewritten, preserve end label to permit source navigation.
26603 2004-12-07 Thomas Quinot <quinot@adacore.com>
26605 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26606 Specific_Build_Stub_Target): New subprograms.
26607 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26608 the PCS implementation used, using the above PCS-customized subprograms.
26609 Minor reformatting.
26610 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26611 for generation of DSA code targeted to the PolyORB PCS.
26612 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26613 implementation of the partition communication subsystem in ancillary
26615 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26616 PolyORB_Support.Build_Stub_Type): New subrograms containing the
26617 PCS-specific part of Add_Stub_Type.
26618 (Insert_Partition_Check): Use runtime library function to perform
26621 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26622 (RE_Same_Partition): New entity, from s-parint.
26624 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26626 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26628 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26629 Output the copyright message on a separate line from the version
26632 2004-12-07 Joel Brobecker <brobecker@adacore.com>
26634 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26635 compile-time warning.
26637 2004-12-07 Robert Dewar <dewar@adacore.com>
26639 * g-regpat.adb: (Match): Change a misuse of or to or else
26641 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26644 (Generate_Reference): Handle properly a reference to an entry formal,
26645 when an accept statement has a pragma Unreferenced for it.
26647 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26648 and the Has_Pragma_Unreferenced flag for each formal before analyzing
26649 the body, to ensure that warnings are properly emitted for each accept
26650 statement of a given task entry.
26652 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
26654 * Makefile.in: Add support for foreign threads on VMS.
26656 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26658 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26660 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26662 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26664 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26666 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26668 2004-12-07 Robert Dewar <dewar@adacore.com>
26670 * nlists.adb (Prepend_Debug): Remove parameters and nest within
26672 (Remove_Next_Debug): Same fix
26674 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26675 maintain back pointers now, though we did not used to, and comments
26677 (Prepend): Remove pragma Inline.
26678 (Remove_Next): Same cleanup
26680 2004-12-07 Thomas Quinot <quinot@adacore.com>
26682 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26683 used to record an implicit dereference as a read operation on its
26684 prefix when operating under -gnatc. Necessary to avoid spurious
26685 'variable assigned but never read' warnings in that mode.
26686 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26687 is a non-overloaded implicit dereference, call the above subprogram to
26688 ensure proper recording of references.
26690 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26692 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26693 to be resolved later as part of Analyze_Iteration_Scheme's call to
26696 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26698 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26699 prefix is not a scalar type, place error message on prefix, not on
26702 2004-12-07 Bernard Banner <banner@adacore.com>
26704 * vxaddr2line.adb: Add support for x86 vxworks
26706 2004-12-07 Thomas Quinot <quinot@adacore.com>
26708 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26709 documentation of the behaviour of these functions when passed an IP
26710 address that has no record in the system hosts database and no reverse
26713 * cstand.adb, a-tags.ads: Fix typos in comment.
26715 2004-12-07 Robert Dewar <dewar@adacore.com>
26717 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26718 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26719 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26720 s-poosiz.ads: Minor reformatting
26722 * make.adb: Minor reformatting
26723 Add some ??? comments asking for more comments
26725 * s-poosiz.adb: Minor reformatting
26726 Add comments on alignment requirement
26728 * sinfo.ads: Remove obsolete comment and fix typo.
26730 2004-12-07 Vincent Celier <celier@adacore.com>
26731 Sergey Rybin <rybin@adacore.com>
26733 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26734 Files" with the new tool and package names.
26735 Reformatting to suppress most of the warnings for line too long
26736 Document the new section "Project Search Path:" in the output of
26738 Add gnatmetric section
26740 2004-12-07 Vincent Celier <celier@adacore.com>
26742 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26743 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26744 and -eit to -ept. Added qualifier
26745 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26747 2004-11-27 Andreas Schwab <schwab@suse.de>
26749 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26751 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26753 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26754 internal implementation unit GNAT.Sockets.Thin,
26755 as their usage for sockets is non-portable (using the read and write
26756 functions from the system runtime library is fine on UNIX but won't
26757 work under Windows).
26759 * mingw32.h: Update copyright notice.
26761 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26763 * ada-tree.h: Minor reformatting of previous change to avoid lines
26764 longer than 79 characters.
26766 2004-11-25 Olivier Hainque <hainque@adacore.com>
26768 * tb-gcc.c: GCC infrastructure based implementation of
26771 2004-11-24 Steven Bosscher <stevenb@suse.de>
26773 * misc.c (gnat_post_options): Don't clear
26774 flag_inline_functions.
26776 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
26779 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26782 2004-11-21 Andreas Jaeger <aj@suse.de>
26784 * stylesw.adb: Change Style_Check_Subprogram_Order to
26785 Style_Check_Order_Subprograms.
26787 2004-11-18 Arnaud Charlet <charlet@adacore.com>
26789 * adaint.h, adaint.c
26790 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26792 Add also a cast to kill another warning.
26793 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26794 parameter with the priority class of the parent process instead of
26795 always using the NORMAL_PRIORITY_CLASS.
26796 (__gnat_dup): New function.
26797 (__gnat_dup2): New function.
26798 (__gnat_is_symbolic_link): Enable the effective body of this
26799 function when __APPLE__ is defined.
26801 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26804 2004-11-18 Olivier Hainque <hainque@adacore.com>
26806 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26807 address of which may be used to represent "others" and "all others"
26808 choices in exception tables, instead of the current harcoded
26809 (void *)0 and (void *)1.
26810 (Setup_Exception): Do nothing in the GNAT SJLJ case.
26812 * gigi.h (others_decl, all_others_decl): New decls representing the
26813 new Others_Value and All_Others_Value objects.
26814 (struct attrib): Rename "arg" component as "args", since GCC expects a
26815 list of arguments in there.
26817 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26818 corresponding objects exported by a-exexpr, instead of hardcoded dummy
26821 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26822 others_decl and all_others_decl instead of hardcoded dummy addresses
26823 to represent "others" and "all others" choices, which is cleaner and
26824 more flexible with respect to the possible eh pointer encoding policies.
26826 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26827 (process_attributes): Account for the naming change of the "args"
26828 attribute list entry component.
26830 * decl.c (build_attr_list): Rename into prepend_attributes to allow
26831 cumulating attributes for different entities into a single list.
26832 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26833 attributes for the current entity and propagate first subtype
26834 attributes to other subtypes.
26835 <E_Procedure>: Attribute arguments are attr->args and not
26836 attr->arg any more.
26837 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26838 argument provided, as this is what GCC expects. Use NULL_TREE instead
26841 2004-11-18 Robert Dewar <dewar@adacore.com>
26843 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26844 Minor reformatting througout (including new function specs)
26845 Add ??? comments asking for clarification.
26847 2004-11-18 Thomas Quinot <quinot@adacore.com>
26849 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26850 incomplete duplicate implementation of this subprogram from butil.
26852 2004-11-18 Thomas Quinot <quinot@adacore.com>
26854 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26855 procedures factors the common processing for building an RPC receiver
26856 for an RCI package or an RACW type.
26857 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26858 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26859 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26861 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26863 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26865 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26866 distribution subprogram identifiers that are either subprogram numbers
26868 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26869 string distribution identifiers assigned to a given subprogram.
26870 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26871 (Add_RAS_Dereference_TSS): Add comments.
26872 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26873 is not referenced yet because it will be used by the PolyORB DSA
26875 (Insert_Partition_Check): Remove fossile code.
26876 (First_RCI_Subprogram_Id): Document this constant.
26877 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26879 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26880 replaced with calls to Get_Library_Unit_Name_String. Previously there
26881 were several instances of the same code in different locations in the
26882 compiler; this checkin completes the replacement of all of these
26883 instances with calls to a common subprogram.
26884 Minor reformatting.
26886 * sem_dist.adb: Remove comment noting that RPC receiver generation
26887 should be disabled for RACWs that implement RASs.
26888 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
26890 * sem_util.ads, sem_util.adb (Has_Stream): New function
26891 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
26892 qualified name of a library unit into the name buffer.
26893 (Note_Possible_Modification): Generate a reference only
26894 if the context comes from source.
26896 * snames.ads (PCS_Names): New subtype corresponding to names of
26897 supported implementations of the Partition Communication Subsystem
26898 (PCS) (i.e. the runtime library support modules for the distributed
26901 2004-11-18 Robert Dewar <dewar@adacore.com>
26902 Ed Schonberg <schonberg@adacore.com>
26904 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
26905 (Has_Rep_Pragma): New function
26906 (Has_Attribute_Definition_Clause): New function
26907 (Record_Rep_Pragma): Moved here from sem_ch13.adb
26908 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
26910 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
26912 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
26913 (Expand_Pragma_Psect_Object): New procedure
26914 These procedures contain the revised and cleaned up processing for
26915 these two pragmas. This processing was formerly in Sem_Prag, but
26916 is more appropriately moved here. The cleanup involves making sure
26917 that the pragmas are properly attached to the tree, and that no
26918 nodes are improperly shared.
26920 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
26921 pragmas to Exp_Prag, which is more appropriate.
26922 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
26923 check for duplicates Remove use of Is_Psected flag, no longer needed.
26924 Use new Make_String_Literal function with string.
26926 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
26927 that are functions return universal values, that have to be converted
26928 to the context type.
26929 Use new Make_String_Literal function with string.
26930 (Get_Stream_Convert_Pragma): New function, replaces the use of
26931 Get_Rep_Pragma, which had to be kludged to work in this case.
26933 * freeze.adb: Use new Has_Rep_Pragma function
26935 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
26936 function with string.
26937 Use new Has_Rep_Pragma function.
26939 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
26942 2004-11-18 Robert Dewar <dewar@adacore.com>
26944 * errout.ads, errout.adb: (First_Sloc): New function
26946 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
26947 check (-gnatyx) instead of being included as a redundant construct
26950 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
26951 Style_Check_Order_Subprograms.
26953 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
26954 stylesw.adb: Add Style_Check_Xtra_Parens
26956 * usage.adb: Add line for -gnatyx (check extra parens)
26958 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
26960 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26961 Robert Dewar <dewar@adacore.com>
26963 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
26964 discriminant of a constrained subtype, analyze the copy of the
26965 corresponding constraint, because in some cases it may be only
26966 partially analyzed.
26967 Removes long-lived ??? comments.
26969 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
26970 handled controlled or secondary-stack expressions within the
26971 iteration_scheme of a loop.
26973 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
26974 bounds that may contain functions calls, to prevent memory leaks when
26975 the bound contains a call to a function that uses the secondary stack.
26976 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
26977 generate temporaries for loop bounds that might contain function calls
26978 that require secondary stack and/or finalization actions.
26980 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
26981 selected component and the selector is overloadable (not just a
26982 function) treat as function call, Analyze_Call will disambiguate if
26984 (Analyze_Selected_Component): Do not generate an actual subtype for the
26985 selected component if expansion is disabled. The actual subtype is only
26986 needed for constraint checks.
26987 (Analyze_Allocator): If restriction No_Streams is set, then do
26988 not permit objects to be declared of a stream type, or of a
26989 composite type containing a stream.
26991 * restrict.ads: Remove the a-stream entry from Unit_Array, since
26992 No_Streams no longer prohibits with'ing this package.
26994 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
26995 discriminants, but the parent base has unknown discriminants, there is
26996 no discriminant constraint to inherit. Such a discrepancy can arise
26997 when the actual for a formal type with unknown discriminants is a
26998 similar private type whose full view has discriminants.
26999 (Analyze_Object_Declaration): If restriction No_Streams is set, then
27000 do not permit objects to be declared of a stream type, or of a
27001 composite type containing a stream.
27003 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27005 * exp_dbug.ads: Update documentation to reflect simpler encoding for
27006 protected operations.
27008 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27009 generated name, it complicates decoding in gdb and hinders debugging
27010 of protected operations.
27011 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27012 flag for the protected entry barrier function.
27013 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27014 flag for the protected entry function.
27016 2004-11-18 Nicolas Setton <setton@adacore.com>
27018 * expect.c: Define __unix__ when __APPLE__ is defined.
27020 * Makefile.in: Inform the value of the variable GMEM_LIB in the
27021 Darwin-specific section.
27023 * lang-specs.h: Change the placement of the %1 marker.
27024 Works around the fact that gcc adds -fPIC by default under Darwin.
27026 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27028 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27029 type of the object with the packed array type, set the Analyzed flag
27030 on the object if it is an entity or simple indexed component, to avoid
27031 spurious type errors.
27033 2004-11-18 Gary Dismukes <dismukes@adacore.com>
27035 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27036 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27037 separate line from the version message.
27039 2004-11-18 Ed Falis <falis@adacore.com>
27041 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27043 (init_float): Eliminate initialization of floating point status for
27044 AE653. The instructions have no effect for vThreads.
27046 2004-11-18 Vincent Celier <celier@adacore.com>
27048 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27049 gnatbind is invoked with -shared.
27051 2004-11-18 Jose Ruiz <ruiz@adacore.com>
27053 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27054 for Detect_Blocking which is redundant with the check done within the
27055 procedure Protected_Single_Entry_Call.
27056 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27057 Detect_Blocking which is redundant with the check done within the
27058 procedure Protected_Single_Entry_Call.
27060 2004-11-18 Vincent Celier <celier@adacore.com>
27062 * makegpr.adb (Compile): Put the compiling switches (in package
27063 Compiler and on the command line) immediately after "-c", instead of
27064 at the end of the command line invocation of the compiler, when
27065 compiling a non-Ada file.
27066 (Build_Global_Archive): When there is no need to rebuild the archive,
27067 set Global_Archive_Exists, so that the archive is passed to the linker
27070 2004-11-18 Robert Dewar <dewar@adacore.com>
27071 Sergey Rybin <rybin@adacore.com>
27074 Remove extra paren check from list of checks for redundant constructs
27075 Add documentation of new -gnatyx style check (check extra parens)
27076 Remove paragraph about gnatelim debug options.
27078 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27079 objects rather than forbidding dependencies on the package Ada.Streams.
27081 * sinfo.ads: Add ??? note that we should document pragmas passed to
27084 * g-expect.ads: Fix a few typos in the comments.
27086 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
27088 * misc.c (gnat_handle_option): Use %< and %> for quoting in
27091 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27093 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27095 2004-11-07 Andreas Schwab <schwab@suse.de>
27097 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27099 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27102 * Makefile.in (darwin): Set soext to .dylib.
27104 2004-10-26 Vincent Celier <celier@gnat.com>
27105 Thomas Quinot <quinot@act-europe.fr>
27107 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27108 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27109 there is no use of GNAT.Sockets.Constants.
27110 Remove remaining pragma Import for C_Write
27111 Remove C_Read and C_Write from internal implementation unit
27112 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27113 the read and write functions from the system runtime library is fine
27114 on UNIX but won't work under Windows).
27116 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27117 (Check_Selector): Use C_Recv instead of C_Read.
27118 Selectors are the GNAT.Sockets abstraction to perform a select()
27119 call on a set of descriptors. To allow abortion of an ongoing
27120 select operation, some data is written to a dedicated socket that
27121 is always monitored.
27122 Under Windows, the write and read library functions cannot operate
27123 on sockets, so we need to use send and recv instead, which is portable
27124 across all supported platforms.
27126 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27127 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27128 (using the read and write functions from the system runtime library is
27129 fine on UNIX but won't work under Windows).
27131 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27133 * mlib-tgt-darwin.adb: New file.
27135 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27136 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27137 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27138 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27141 * Makefile.in: Add support for building shared libraries under Darwin.
27142 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27143 the low level EH init subprogram to be called from __gnat_initialize.
27145 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27146 indicates which options to pass to the archive indexer.
27148 * mlib-utl.adb: Add support for calling ranlib with additional
27149 options. This is needed for instance under Mac OS X.
27150 (Ranlib_Options): New global variable, used to store the potential
27151 options to pass to ranlib.
27152 (Ar): Use Ranlib_Options when spawning ranlib.
27153 (Initialize): Set the value of ranlib option.
27155 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27157 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27158 instead of 8K, to reflect the real potential needs for stack-checking
27161 2004-10-26 Pascal Obry <obry@gnat.com>
27163 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27165 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27166 Windows only the initial thread stack size can be set so it is good to
27167 start we a low stack size.
27168 The OS will adjust the size as needed.
27170 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27171 Nicolas Setton <setton@act-europe.fr>
27173 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27174 "__unix__" instead of "unix".
27175 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27176 sections were just mistakenly ignored. The former is
27177 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27178 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27179 of hpux. This prevents an unwanted definition of the symbol
27180 convert_addresses in adaint.o.
27182 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27184 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27185 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27187 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27189 * a-filico.ads, a-filico.adb: fix incorrect header.
27191 2004-10-26 Javier Miranda <miranda@gnat.com>
27193 * a-ststio.ads: Fix typo in identifier
27195 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27197 * sem_ch4.adb: Minor reformatting.
27199 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27201 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27202 enabled, check the result of unary and binary operations when the
27203 expression is the right-hand side of an assignment.
27205 2004-10-26 Vincent Celier <celier@gnat.com>
27207 * clean.adb (Delete): Do not output warnings when in quiet output and
27208 not in verbose mode.
27209 (Force_Deletions): New Boolean flag, defaulted to False
27210 (Delete): Only delete a file if it is writable, and when
27211 Force_Deletions is True.
27212 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27213 (Usage): Line for new switch -f
27214 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27217 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27219 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27220 JM type only if its size matches that of the wrapper. When a size is
27221 prescribed and the field is not aliased, remove the wrapper of a JM
27222 type only if the size is not greater than that of the packed array.
27223 (gnat_to_gnu_entity): Change the extension of packed array wrappers
27226 2004-10-26 Geert Bosch <bosch@gnat.com>
27228 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27229 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27230 (Pred): Implement in terms of Succ.
27232 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27234 * exp_aggr.adb (Safe_Component): An aggregate component that is an
27235 unchecked conversion is safe for in-place use if the expression of the
27236 conversion is safe.
27237 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27238 be expandable in place even if the aggregate does not come from source.
27239 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27240 designated object of an allocator in place, rather than building it
27241 first on the stack. The previous scheme forces a full copy of the array,
27242 and may be altogether unsusable if the size of the array is too large
27243 for stack allocation.
27245 2004-10-26 Robert Dewar <dewar@gnat.com>
27247 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27248 compares if the component is atomic.
27250 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27251 array assignment if the component type is atomic.
27253 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27254 Eric Botcazou <ebotcazou@act-europe.fr>
27256 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27257 is aliased and is a by_reference type, do not pass by copy.
27258 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27259 detect whether the call is in the right side of an assignment or
27260 the expression of an object declaration. Recurse on component
27261 association within aggregates.
27262 Call it in the condition that determines whether the temporary is
27263 necessary for correct stack-checking.
27265 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27267 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27268 RACW_Type, used in the PolyORB version.
27269 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27270 version and the GARLIC version.
27272 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27273 Rename RCI_Info to RCI_Locator for better consistency between the
27274 GARLIC and PolyORB versions of the distributed systems annex.
27275 (DSA_Implementation_Name): This enumeration lists the possible
27276 implementations of the Partition Communication Subsystem for the
27277 Distributed Systems Annex (DSA). The three available implementations
27278 are the dummy stub implementation (No_DSA), and two versions based on
27279 two different distribution runtime libraries: GARLIC and PolyORB. Both
27280 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27282 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27285 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27286 between the GARLIC and PolyORB versions of the distributed systems
27288 Remove RE_Unbounded_Reclaim_Pool since it is unused.
27290 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27292 * gnat1drv.adb: Suppress calling the back end when
27293 Frontend_Layout_On_Target is true.
27295 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27297 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27298 Set_Read_Only): New subprograms.
27299 These new routines allow the user to set or unset the Owner execute
27300 and Owner write permission flags on a file.
27302 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27303 GNAT.OS_Lib.Set_Executable instead of rolling our own.
27305 2004-10-26 Matthew Gingell <gingell@gnat.com>
27307 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27309 2004-10-26 Pascal Obry <obry@gnat.com>
27311 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27312 memory before the faulting page we properly test the process read
27313 access for this address using appropriate Win32 routine.
27314 (HPUX sections): guard with "__hpux__" instead of "hpux".
27316 2004-10-26 Robert Dewar <dewar@gnat.com>
27318 * lib-xref.adb (Generate_Reference): Don't complain about reference to
27319 entry parameter if pragma Unreferenced set, since we do not properly
27320 handle the case of multiple parameters.
27322 2004-10-26 Vincent Celier <celier@gnat.com>
27324 * prj-env.adb: (Contains_ALI_Files): New Boolean function
27325 (Ada_Objects_Path.Add): For a library project, add to the object path
27326 the library directory only if there is no object directory or if the
27327 library directory contains ALI files.
27328 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27330 2004-10-26 Vincent Celier <celier@gnat.com>
27332 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27333 extension of library projects.
27335 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27336 path defaults to ".:<prefix>/lib/gnat".
27337 (Parse): For an extending all project, allow direct import of a project
27338 that is virtually extended.
27340 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27341 the specified name is directly imported, return its ID. Otherwise, if
27342 an extension of this project is imported, return the ID of the
27345 2004-10-26 Robert Dewar <dewar@gnat.com>
27347 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27348 (Sub3): New procedure, used by Scaled_Divide
27349 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27350 correct more than one instance of failure to propagate carries
27352 (Double_Divide): Handle overflow case of largest negative number
27353 divided by minus one.
27355 * s-arit64.ads (Double_Divide): Document that overflow can occur in
27356 the case of a quotient value out of range.
27359 2004-10-26 Robert Dewar <dewar@gnat.com>
27361 * s-bitops.adb (Bit_Eq): Remove redundant check.
27363 * s-bitops.ads: Minor comment updates
27364 Change some occurrences of Address to System.Address
27366 * s-carsi8.ads: Fix minor cut-and-paste error in comments
27368 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27370 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27371 accessibility check to prefix that is a protected operation.
27373 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27375 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27376 empty, post message on stub.
27378 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27379 Javier Miranda <miranda@gnat.com>
27381 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27382 current instance appears within a unit that is directly in the context
27384 Used to determine whether the body of the instance should be analyzed
27385 immediately after its spec, to make its subprogram bodies available
27386 for front-end inlining.
27387 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27388 constraint is not allowed on the component type (AARM 12.5.3(3))
27390 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27392 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27393 'Storage_Pool): enhance, document & limit detection of non-sharable
27396 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27398 * s-pooglo.ads: Add more documentation now that this pool is properly
27401 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27403 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27404 or protected type with discriminants, do not constrain the
27405 corresponding record type if the subtype declaration has no
27406 discriminant constraints. This can be the case in source code, or in
27407 the subtype declaration created to rename an actual type within an
27410 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27412 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27413 different kind of stub (possibly wrong name for file), do not check
27415 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27416 includes call to some function that returns an unconstrained type, do
27419 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27421 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27422 appear in the code for the main unit. Dependencies among units in the
27423 context of the main unit are established when those other units are
27424 compiled. Otherwise spurious elaboration constraints can generate
27425 incorrect elaboration circularities.
27427 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27428 Ed Schonberg <schonberg@gnat.com>
27430 * sem_util.adb (Is_Aliased_View): Defend against the case where this
27431 subprogram is called with a parameter that is not an object name. This
27432 situation arises for some cases of illegal code, which is diagnosed
27433 later, and in this case it is wrong to call Is_Aliased, as that might
27434 cause a compiler crash.
27435 (Explain_Limited_Type): Refine previous fix to include
27436 inherited components of derived types, to provide complete information.
27438 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27439 is the prival for a protected object.
27440 It is necessary to mark this entity as a variable, in addition to
27441 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27442 modified to avoid checking the Aliased flag on entities that are not
27443 objects. (Checking that flag for non-objects is erroneous and could
27444 lead to a compiler crash).
27446 2004-10-26 Robert Dewar <dewar@gnat.com>
27448 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27449 X_Frac = 0.5, then we know that the number X must be positive.
27450 (Succ): Remove the same redundant test, and also fix the primary test
27451 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27453 (Decompose): Add fuller comments to spec
27455 2004-10-26 Pascal Obry <obry@gnat.com>
27457 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27458 validity (process must have read access). Set to 0 in all other cases.
27459 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27460 violation on Win32.
27461 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27462 segmentation violation.
27464 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27466 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27467 whose type is a constructed subtype of an aliased object with an
27468 unconstrained nominal subtype, convert the actual to the constructed
27469 subtype before taking its address.
27471 2004-10-26 Vincent Celier <celier@gnat.com>
27473 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27474 (Is_Path_Name_Case_Sensitive): New function
27476 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27477 (Base_Name, Simple_Name, Current_Directory, Compose,
27478 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27481 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27482 Vasiliy Fofanov <fofanov@act-europe.fr>
27483 Vincent Celier <celier@gnat.com>
27485 * gnat_ugn.texi: Generalize "finding memory problems" section into a
27486 "memory management issues" section and document some of the useful
27487 memory pools provided as part of the GNAT library.
27488 Remove "virtual" from declaration of A::method2 in
27489 the simple example of Ada/C++ mixed system.
27490 Library Projects may be virtually extended: their virtual extensions
27491 are not Library Projects.
27492 Added section on extending project hierarchies.
27494 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27496 * adaint.c (__gnat_get_libraries_from_registry): Cast value
27498 (__gnat_portable_spawn): Remove const.
27500 * mingw32.h (MAXPATHLEN): Check for previous definition.
27502 2004-10-17 Matthias Klose <doko@debian.org>
27504 * gnatvsn.ads: Set gnat library version to 4.0.
27506 2004-10-05 Vincent Celier <celier@gnat.com>
27508 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27510 2004-10-04 Laurent Guerby <laurent@guerby.net>
27513 * Makefile.in: Define and use RANLIB_FLAGS.
27515 2004-10-04 Pascal Obry <obry@gnat.com>
27517 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27518 other x86 platforms).
27520 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27522 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27523 in general and triggers stack alignment adjustment for thread entry
27524 points on targets where this is necessary.
27526 2004-10-04 Bernard Banner <banner@gnat.com>
27529 * Makefile.in: Add section for powerpc linux
27530 Add variant i-vxwork-x86.ads
27532 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27534 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27536 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27537 table registration calls when need be. Ensures no reference to the crt
27538 ctors symbol are issued in the SJLJ case, which avoids possible
27539 undefined symbol errors in the case of modules to be statically linked
27542 2004-10-04 Javier Miranda <miranda@gnat.com>
27544 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27545 in-line the code corresponding to subprogram Analyze_Actuals. In
27546 addition, analyze the actuals only in case of subprogram call.
27548 2004-10-04 Ed Falis <falis@gnat.com>
27550 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27552 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
27554 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27555 in the documentation.
27557 2004-10-04 Robert Dewar <dewar@gnat.com>
27559 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27561 (Analyze_Block_Statement): Add circuitry to detect following dead code
27562 (Check_Unreachable_Code): Handle case of block exit
27564 2004-10-04 Robert Dewar <dewar@gnat.com>
27566 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27567 (XMatchD): Avoid warning for Logic_Error call
27569 2004-10-04 Robert Dewar <dewar@gnat.com>
27571 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27572 consider expressions buried within a procedure actual to be an actual.
27573 This caused some blowups with uses of packed slices within a procedure
27576 2004-10-04 Robert Dewar <dewar@gnat.com>
27578 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27579 longer need to be initialized to zero.
27580 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27581 initialized to zero.
27583 * checks.adb (Expr_Known_Valid): Packed arrays are now always
27584 considered valid, even if the representation is modular. That's correct
27585 now that we no longer initialize packed modular arrays to zero.
27587 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27588 suffixes. These are now documented as the only cases in which the
27589 debugger ignores outer records.
27590 Previously, the spec allowed arbitrary suffixes for this purpose.
27591 Change name of LJM to JM for packed array pad records
27592 Create separate section on packed array handling, and add a whole new
27593 set of comments to this section describing the situation with packed
27594 modular types and justification requirements depending on endianness.
27596 2004-10-04 Robert Dewar <dewar@gnat.com>
27598 * a-except.adb: Add a comment for last change
27600 * einfo.ads: Minor spelling correction in comment
27602 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27604 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27607 * sem_util.ads: Minor comment update
27609 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27611 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27612 Inline_Always when in Configurable_Run_Time mode.
27614 * sem_prag.adb (Process_Convention): If entity is an inherited
27615 subprogram, apply convention to parent subprogram if in same scope.
27616 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27617 when in Configurable_Run_Time mode.
27619 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27621 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27622 class_wide type after component list has been inherited.
27624 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27626 * sem_ch12.adb (Check_Generic_Actuals): New predicate
27627 Denotes_Previous_Actual, to handle properly the case of a private
27628 actual that is also the component type of a subsequent array actual.
27629 The visibility status of the first actual is not affected when the
27630 second is installed.
27631 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27632 make fully recursive the treatment of formals of packages declared
27634 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27635 the above on exit from an instantiation.
27636 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27637 current instantiation which is now complete.
27638 (Analyze_Package_Instantiation): No instantiated body is needed if the
27639 main unit is generic. Efficient, and avoid anomalies when a instance
27640 appears in a package accessed through rtsfind.
27642 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27644 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27645 do not generate a declaration for a temporary if the call is part of a
27646 library-level instantiation.
27648 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27650 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27651 searching for a limited component to flag.
27653 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27654 expansion of Input, to account for the fact that the implicit call
27655 generated by the attribute reference must freeze the user-defined
27656 stream subprogram. This is only relevant to 'Input, because it can
27657 appear in an object declaration, prior to the body of the subprogram.
27659 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27660 expansion can proceed and further errors uncovered.
27661 (Minor clean up): Fix cases of using | instead of \ for continuation
27664 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27666 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27668 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27669 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27670 Use gcc_assert and gcc_unreachable.
27672 * decl.c (gnat_to_gnu_entity, case object): Check and process a
27673 specified alignment before validating size.
27674 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27675 stripped-down declaration for the type of the inner field when making
27678 * utils.c (finish_record_type): Do not compute the size in units
27679 incrementally. Instead compute it once for the rep clause case.
27680 Use gcc_assert and gcc_unreachable.
27682 2004-10-04 Vincent Celier <celier@gnat.com>
27684 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27686 (Is_Valid_Path_Name): Take '/' as a directory separator.
27688 2004-10-04 Vincent Celier <celier@gnat.com>
27690 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27691 (Extended_Project) only if Extended_Project is defined, to avoid
27693 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27695 (Parse_Single_Project): Ditto.
27697 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27698 Add_To_Project_Path for virtual projects.
27700 2004-10-04 Vincent Celier <celier@gnat.com>
27702 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27703 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27704 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27705 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27706 parameter Options_2.
27708 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27709 Build_Dynamic_Library with an empty Options_2.
27711 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27714 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27715 directory separator, if any.
27716 (Gprmake): Do not allow mains on the command line for library projects.
27717 Do not attempt to link when the project is a library project.
27718 (Library_Opts): New table to store Library_Options.
27719 (Build_Library): If Library_Options is specified, pass these options
27720 when building a shared library.
27722 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27724 * s-tposen.adb (Service_Entry): The object must be always unlocked at
27725 the end of this procedure now that the unlock operation was inserted
27728 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27730 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27731 corresponding to the Preallocated_Stacks flags in System.
27732 (Get_Target_Parameters): Including the processing for
27733 Preallocated_Stacks.
27735 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27736 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27737 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27738 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27739 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27740 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27741 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27742 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27743 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27744 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27745 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27746 used to signal whether the compiler creates the required stacks and
27747 descriptors for the different tasks (when True) or it is done by the
27748 underlying operating system at run time (when False).
27749 It is initially set to False in all targets.
27751 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27752 if it is supported by the target.
27753 (Make_Task_Create_Call): Pass the stack address if it has been
27754 previously created. Otherwise pass a Null_Address.
27756 * snames.adb: Add _stack.
27758 * snames.ads: Add Name_uStack. Required to allow the expander to
27759 statically allocated task stacks.
27761 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27762 Stack_Address argument.
27763 Check that its value is equal to Null_Address because this target does
27764 not support the static stack allocation.
27766 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27768 * usage.adb: Change "pragma inline" to "pragma Inline" in information
27771 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27773 * exp_dist.adb: Split declaration of asynchronous flag out of
27774 Add_RACW_Read_Attribute.
27775 Minor reformatting for better alignment with PolyORB version.
27776 Store the entity for the asynchronous flag of an RACW, rather than the
27777 expression, in the asynchronous flags table. This will allow this flag
27778 to be used in other subprograms beside Add_RACW_Read_Attribute.
27780 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27782 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27783 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27784 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27785 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27786 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
27787 sockets constant MSG_NOSIGNAL (Linux-specific).
27788 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27789 all Send operations.
27790 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27791 from trigerring SIGPIPE.
27792 Rename components to avoid clash with Ada 2005 possible reserved
27794 (Check_Selector): When the select system call returns with an error
27795 condition, propagate Socket_Error to the caller.
27797 2004-10-01 Jan Hubicka <jh@suse.cz>
27799 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27801 2004-09-23 Robert Dewar <dewar@gnat.com>
27804 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27805 instead do this at freeze time (we won't do it if there is an address
27807 Change "pragma inline" to "pragma Inline" in information and error
27809 Minor reformatting.
27811 * freeze.adb (Check_Address_Clause): Remove previous change, not the
27812 right way of doing things after all.
27813 (Freeze_Entity): For object, set Is_Public for imported entities
27814 unless there is an address clause present.
27816 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
27818 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27819 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27820 ensures proper handling of types with rep clauses, which might have
27821 their TYPE_SIZE set already.
27823 2004-09-21 Robert Dewar <dewar@gnat.com>
27825 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27826 packed array types in both little- and big-endian cases. This change
27827 ensures that we no longer count on the unused bits being initialized
27828 for such types (and in particular ensures that equality testing will
27829 only read the relevant bits).
27830 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27831 These changes mean that we no longer need to initialize small packed
27833 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27834 optimization to an LJM field as to its parent field.
27836 * ada-tree.h, trans.c, utils.c, utils2.c:
27837 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27839 2004-09-20 Jan Hubicka <jh@suse.cz>
27841 * utils.c (gnat_finalize): Remove.
27842 (end_subprog_body): Directly call cgraph_finalize_function;
27843 do not lower the nested functions.
27845 2004-09-20 Robert Dewar <dewar@gnat.com>
27848 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27849 if an address clause is present, since that means that the Import
27852 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
27854 * 5tsystem.ads: Removed, no longer used.
27856 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
27857 Zack Weinberg <zack@codesourcery.com>
27859 * ada-tree.def: Use tree_code_class enumeration constants
27860 instead of code letters.
27861 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27862 Update for new tree-class enumeration constants.
27864 2004-09-17 Vincent Celier <celier@gnat.com>
27866 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27867 capabilities of the general project manager.
27869 2004-09-09 Vincent Celier <celier@gnat.com>
27871 * a-direct.ads: Add pragma Ada_05
27872 (Directory_Entry_Type): Give default value to component Kind to avoid
27873 not initialized warnings.
27875 * a-direct.adb (Current_Directory): Remove directory separator at the
27877 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27878 an existing directory.
27879 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27880 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27881 Convert the result to File_Size.
27883 * prj.ads: (Project_Error): New exception
27885 * prj-attr.adb: Except in procedure Initialize, Fail comes from
27886 Prj.Com, not from Osint.
27887 (Attrs, Package_Attributes): Tables moved to private part of spec
27888 (Add_Attribute, Add_Unknown_Package): Moved to new child package
27890 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
27891 Prj.Project_Error after call to Fail.
27892 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
27893 Fail. Check that package name is not already in use.
27895 * prj-attr.ads: Comment updates to indicate that all subprograms may be
27896 used by tools, not only by the project manager, and to indicate that
27897 exception Prj.Prj_Error may be raised in case of problem.
27898 (Add_Unknown_Package, Add_Attribute): Moved to new child package
27900 (Attrs, Package_Attributes): Table instantiations moved from the body to
27901 the private part to be accessible from Prj.Attr.PM body.
27903 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
27904 from new package Prj.Attr.PM.
27905 (Parse_Attribute_Declaration): Call Add_Attribute from new package
27908 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
27910 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
27911 instead of Elaboration_Checks).
27913 * a-calend.adb: Minor reformatting
27915 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27917 * gigi.h (maybe_pad_type): New declaration.
27918 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
27920 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
27922 * cuintp.c: Convert to use buildN.
27924 * decl.c (maybe_pad_type): No longer static.
27925 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
27927 Convert to use buildN.
27929 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
27930 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
27931 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
27933 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
27934 (gnat_gimplify_expr, case ADDR_EXPR): New case.
27935 Convert to use buildN.
27937 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
27938 TREE_READONLY for const.
27939 Convert to use buildN.
27941 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
27942 (create_var_decl): Refine when TREE_STATIC is set.
27943 Convert to use buildN.
27945 2004-09-09 Gary Dismukes <dismukes@gnat.com>
27947 * gnat_ugn.texi: Delete text relating to checking of ali and object
27950 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
27953 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
27955 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
27956 pragmas recognized by GNAT.
27958 * gnat_rm.texi: Document pragma Detect_Blocking.
27960 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
27961 raise Program_Error if called from a protected operation.
27963 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
27964 the protected action nesting level.
27965 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
27966 protected action nesting level.
27967 (Unlock): When pragma Detect_Blocking is active decrease the protected
27968 action nesting level.
27970 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
27971 Protected_Action_Nesting.
27973 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
27974 Common_ATCB record. It contains the dynamic level of protected action
27975 nesting for each task. It is needed for checking whether potentially
27976 blocking operations are called from protected operations.
27977 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
27978 Detect_Blocking is active or not in the partition.
27980 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
27981 raise Program_Error if called from a protected operation.
27982 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
27983 Program_Error if called from a protected operation.
27984 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
27985 Program_Error if called from a protected operation.
27987 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
27988 raise Program_Error if called from a protected operation.
27990 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
27991 raise Program_Error if called from a protected operation, and increase
27992 the protected action nesting level.
27993 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
27994 Program_Error if called from a protected operation, and increase the
27995 protected action nesting level.
27996 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
27997 protected action nesting level.
27999 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28000 raise Program_Error if called from a protected operation, and increase
28001 the protected action nesting level.
28002 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28003 Program_Error if called from a protected operation, and increase the
28004 protected action nesting level.
28005 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28006 raise Program_Error if called from a protected operation.
28007 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28008 active, raise Program_Error if called from a protected operation.
28009 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28010 protected action nesting level.
28012 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28013 insertion of the statement raising Program_Error. The run time
28014 contains the required machinery for handling that.
28016 * sem_util.ads: Change comment associated to procedure
28017 Check_Potentially_Blocking_Operation.
28018 This procedure does not insert a call for raising the exception because
28019 that is currently done by the run time.
28021 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28023 * init.c: Add the global variable __gl_detect_blocking that indicates
28024 whether pragma Detect_Blocking is active (1) or not (0). Needed for
28025 making the pragma available at run time.
28026 (__gnat_set_globals): Pass and update the detect_blocking parameter.
28028 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28029 pragma Detect_Blocking is active.
28031 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28033 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28034 DB is found in the ali file. Any unit compiled with pragma
28035 Detect_Blocking active forces its effect in the whole partition.
28037 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28038 Detect_Blocking is active and delay is called from a protected
28041 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28042 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28043 Detect_Blocking is active (0 otherwise).
28044 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28045 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28048 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
28050 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28051 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28054 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28055 (Register_Receiving_Stub): Add Subp_Info formal parameter.
28056 Update API in placeholder implemetation of s-parint to reflect changes
28057 in distribution runtime library.
28059 * sem_ch3.adb (Expand_Derived_Record): Rename to
28060 Expand_Record_Extension.
28062 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28063 primitive operations of potentially distributed object types that have
28064 non-controlling anonymous access formals.
28066 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28068 New implementation of expansion for remote access-to-subprogram types,
28069 based on the RACW infrastructure.
28070 This version of sem_dist is compatible with PolyORB/DSA as well as
28073 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28074 Asynchrronous that applies to a remote access-to-subprogram type, mark
28075 the underlying RACW type as asynchronous.
28077 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28078 __gnat_using_gnu_linker to 1.
28080 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28081 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28082 GNAT.Perfect_Hash_Generators, and remove the empty
28083 GNAT.Perfect_Hash package.
28085 * atree.adb: Minor reformatting
28087 * exp_ch3.adb (Expand_Derived_Record): Rename to
28088 Expand_Record_Extension.
28089 (Build_Record_Init_Proc.Build_Assignment): The default expression in
28090 a component declaration must remain attached at that point in the
28091 tree so New_Copy_Tree copies it if the enclosing record type is derived.
28092 It is therefore necessary to take a copy of the expression when building
28093 the corresponding assignment statement in the init proc.
28094 As a side effect, in the case of a derived record type, we now see the
28095 original expression, without any rewriting that could have occurred
28096 during expansion of the ancestor type's init proc, and we do not need
28097 to go back to Original_Node.
28099 * exp_ch3.ads (Expand_Derived_Record): Rename to
28100 Expand_Record_Extension.
28102 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28103 Returns the RACW type used to implement a remote access-to-subprogram
28105 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28106 New subprograms. Used to create a proxy tagged object for a remote
28107 subprogram. The proxy object is used as the designated object
28108 for RAS values on the same partition (unless All_Calls_Remote applies).
28109 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28110 System.Partition_Interface.Get_Unique_Remote_Pointer.
28111 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28112 Renamed from Add_RAS_*_Attribute.
28113 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28115 New implementation of expansion for remote access-to-subprogram types,
28116 based on the RACW infrastructure.
28118 * exp_dist.ads (Copy_Specification): Update comment to note that this
28119 function can copy the specification from either a subprogram
28120 specification or an access-to-subprogram type definition.
28122 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28124 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28125 in an instance, between an explicit subprogram an one inherited from a
28126 type derived from an actual.
28128 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28129 add a polling call if the subprogram is to be inlined by the back-end,
28130 to avoid repeated calls with multiple inlinings.
28132 * checks.adb (Apply_Alignment_Check): If the expression in the address
28133 clause is a call whose name is not a static entity (e.g. a dispatching
28134 call), treat as dynamic.
28136 2004-09-09 Robert Dewar <dewar@gnat.com>
28138 * g-trasym.ads: Minor reformatting
28140 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28141 packed arrays, since unused bits are expected to be zero for a
28144 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28146 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28149 2004-09-09 Pascal Obry <obry@gnat.com>
28151 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28152 enable map file generation. Add the right option to generate the map
28153 file if Map_File is set to True.
28155 * gnatdll.adb (Gen_Map_File): New variable.
28156 (Syntax): Add info about new -m (Map_File) option.
28157 (Parse_Command_Line): Add support for -m option.
28158 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28159 Minor reformatting.
28161 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28163 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28164 new gnatdist implementation.
28165 Define a subpackage isolating the output routines specific to this
28168 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28170 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28172 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28174 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28176 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28179 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28180 version of the language is used to compile the run time.
28182 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28184 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28185 of variable length temporaries for function return now that the
28186 back-end and gigi support it.
28188 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28190 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28192 * trans.c (struct stmt_group): Delete field GLOBAL.
28193 (gnat_init_stmt_group): Do not initialize it.
28194 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28195 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28196 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28197 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28198 (start_stmt_group): Likewise.
28199 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28201 * utils2.c (ggc.h): Include.
28202 (build_call_raise): Call build_int_cst, not build_int_2.
28204 * utils.c (gnat_init_decl_processing): Fix arg to
28205 build_common_tree_nodes.
28206 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28207 (gnat_define_builtin): Set built_in_decls.
28208 (init_gigi_decls): Call build_int_cst, not build_int_2.
28210 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28211 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28212 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28213 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28214 SET_TYPE_MODULE): Use them.
28215 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28216 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28217 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28218 SET_TYPE_ADA_SIZE): Likewise.
28219 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28220 (DECL_CONST_CORRESPONDING_VAR,
28221 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28222 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28223 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28224 (TYPE_RM_SIZE_NUM): New macro.
28225 (TYPE_RM_SIZE): Modified to use above.
28227 * cuintp.c: (build_cst_from_int): New function.
28228 (UI_To_gnu): Use it.
28230 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28231 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28232 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28233 MIN_EXPR for the size, copy it into new.
28235 2004-09-01 Robert Dewar <dewar@gnat.com>
28237 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28238 packed indexed component where array is an IN OUT formal. This
28239 generated garbage code previously.
28241 * gnat_ugn.texi: Document -fverbose-asm
28243 * gnat-style.texi: Minor updates (note that boolean constants and
28244 variables are joined with AND/OR rather than short circuit forms).
28246 2004-09-01 Ed Schonberg <schonberg@gnat.com>
28248 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28249 it is an upward conversion of an untagged type with no representation
28252 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
28254 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28255 System.Partition_Interface.
28257 * checks.adb (Apply_Access_Checks): Do not generate checks when
28258 expander is not active (but check for unset reference to prefix of
28261 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28262 pragma Debug as an if statement with a constant condition, for
28263 consistent treatment of entity references contained within the
28264 enclosed procedure call.
28266 2004-09-01 Vincent Celier <celier@gnat.com>
28268 * bindgen.adb: (Set_EA_Last): New procedure
28269 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28271 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28272 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28273 linked without errors.
28274 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28276 (Gen_Exception_Table_C): Correct same bugs
28278 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28280 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28281 on Windows, make sure that the drive letter is in upper case.
28283 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28284 Windows, when the drive letter is added and Case_Sensitive is True, the
28285 drive letter is forced to upper case.
28287 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28288 to Options_2 for the call to MLib.Utl.Gcc.
28290 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28291 directory separator when defining BASE_DIR.
28293 2004-09-01 Pascal Obry <obry@gnat.com>
28295 * gprcmd.adb (Extend): Do not output trailing directory separator. This
28296 is not needed and it confuses Windows GNU/make which does not report
28297 directory terminated by a slash as a directory.
28298 (gprcmd): Idem for "pwd" internal command.
28300 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28301 target names rewrite to fix regressions with recent version of
28302 GNU/make. Starting with GNU/make 3.80 the pipe character was not
28303 handled properly anymore.
28305 2004-09-01 Andreas Schwab <schwab@suse.de>
28307 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28308 * raise.c [!IN_RTS]: Undef abort.
28310 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
28312 * utils2.c (build_allocator): Use ssize_int.
28314 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28316 2004-08-27 Andreas Schwab <schwab@suse.de>
28318 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28320 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28321 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28323 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28325 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28327 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28328 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28329 * utils.c (init_gigi_decls): Likewise.
28330 * utils2.c (build_call_raise, build_allocator): Likewise.
28332 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
28334 * utils.c (gnat_init_decl_processing): Adjust
28335 build_common_tree_nodes call.
28337 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
28339 * utils2.c (build_allocator): Use build_int_cst for negative
28342 2004-08-18 Richard Henderson <rth@redhat.com>
28344 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28346 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
28348 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28350 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28351 (gnat_to_gnu): Likewise.
28353 2004-08-16 Pascal Obry <obry@gnat.com>
28355 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28356 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28357 option and not mdll anymore. Update comment.
28359 2004-08-16 Pascal Obry <obry@gnat.com>
28361 * bld.adb (Put_Include_Project): Properly handle directory separators
28364 2004-08-16 Ed Schonberg <schonberg@gnat.com>
28366 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28367 decreasing the number of allocated junk nodes while searching for the
28368 appropriate subprogram.
28370 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
28372 * cuintp.c (UI_To_gnu): Use build_int_cst..
28373 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28374 * utils.c (init_gigi_decls): Likewise.
28375 * utils2.c (build_call_raise): Likewise.
28377 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
28379 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28380 for a global aliased object with a variable size and an unconstrained
28381 nominal subtype, pretend there is no initializer if the one we have is
28382 incomplete, and avoid referencing an inexistant component in there. The
28383 part we have will be rebuilt anyway and the reference may confuse
28384 further operations.
28386 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
28388 * einfo.ads: Minor reformatting
28390 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28391 restrictions in the ALI if we only want to warn about violations.
28393 2004-08-13 Vincent Celier <celier@gnat.com>
28395 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28396 when creating a new Unit_Record in table Units.
28398 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28399 that are violated, if any.
28401 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28402 add directory separator if path already ends with a directory separator.
28404 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28406 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28407 unit, this is an attempt to inline a construct that is not available in
28408 the current restricted mode, so abort rather than trying to continue.
28410 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28411 discriminants that rename those of the parent, recover names of
28412 original discriminants for the constraint on the full view of the
28414 (Complete_Private_Subtype): Do not create a subtype declaration if the
28415 subtype is an itype.
28417 * gnat_rm.texi: Added section on implementation of discriminated
28418 records with default values for discriminants.
28420 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28423 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28424 the second operand is overloaded.
28426 2004-08-10 Richard Henderson <rth@redhat.com>
28428 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28429 add __builtin_alloca.
28431 2004-08-10 Richard Henderson <rth@redhat.com>
28433 * config-lang.in (boot_language): Yes.
28435 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
28437 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28438 from complaining on potential uninitialized reference.
28439 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28440 new specification and test explicitly for non-zero return value.
28442 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28443 returning C.int, to avoid using a derived boolean type.
28445 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28446 Duplicate_Subexpr_No_Checks in preference to direct use of
28447 Remove_Side_Effects and New_Copy_Tree.
28448 Clear Comes_From_Source on prefix of 'Size attribute reference.
28450 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28451 g-socthi-vxworks.adb: Change calls to
28452 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28453 and test explicitly for non-zero return value.
28455 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28456 (Is_Socket_In_Set): Declare imported function as returning C.int, to
28457 avoid using a derived boolean type.
28459 2004-08-09 Albert Lee <lee@gnat.com>
28461 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28463 2004-08-09 Pascal Obry <obry@gnat.com>
28465 * gnat_ugn.texi: Document new way to build DLLs on Windows using
28466 GCC's -shared option.
28468 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28469 Options_2 parameter (options put after object files).
28471 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
28473 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28474 ignore overflows on low and high bounds of an index to also account for
28475 differences in signedness between sizetype and gnu_index_subtype.
28476 These are as legitimate as the ones caused by a lower TYPE_PRECISION
28479 2004-08-09 Robert Dewar <dewar@gnat.com>
28481 * s-solita.ads, s-solita.adb: Minor reformatting
28483 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28484 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28485 obsolescent section
28486 Add note that No_Implicit_Conditionals does not suppress
28487 run time constraint checks.
28489 * vms_conv.ads: Minor reformatting
28491 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28492 and necessary for following change).
28493 (Mark): Return new format Mark_Id containing sec stack address
28494 (Release): Use sec stack address from Mark_Id avoiding Self call
28496 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28497 pointer (cleanup and necessary for following change).
28498 Define Mark_Id as record containing address of secondary stack, that way
28499 Release does not need to find the stack again, decreasing the number of
28500 calls to Self and improving efficiency.
28502 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28504 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28505 case variable into the individual case branches when possible.
28507 * sem_ch11.adb: Minor reformatting
28509 * prj.ads: Correct spelling of suffixs
28511 * prj-nmsc.adb: Minor reformatting
28512 Correct spelling suffixs throughout (also in identifiers)
28514 * freeze.adb: Minor spelling correction
28516 * exp_ch2.adb: Cleanups to handling of Current_Value
28517 (no functional effect).
28519 * bld.adb: Correct spelling of suffixs
28521 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28523 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28526 * sem_ch7.adb (Install_Private_Declarations): In the body of the
28527 package or of a child, private entities are both immediately_visible
28530 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28532 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28533 there are no range checks on the value of the literal.
28535 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28536 wrapped is the triggering alternative of an asynchronous select, action
28537 statements mustbe inserted before the select itself.
28539 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28540 case where the prefix is a protected function call.
28541 (Resolve_Attribute, case 'Access): The attribute reference on a
28542 subprogram is legal in a generic body if the subprogram is declared
28545 2004-08-09 Vincent Celier <celier@gnat.com>
28547 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28548 languages, otherwise building the library may fail with unresolved
28550 (Compile_Sources): Do not build libraries if -c switch is used
28552 * gnatlink.adb (Process_Args): New switches -M and -Mmap
28553 (Write_Usage): If map file creation is supported, output new switches
28555 (Gnatlink): When -M is specified, add the necessary switch(es) to the
28556 gcc call, when supported.
28558 * Makefile.in: Added indepsw.o to the object list for gnatlink
28559 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28561 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28562 indepsw.adb, indepsw.ads: New files.
28564 2004-08-09 Bernard Banner <banner@gnat.com>
28566 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28568 * Makefile.in: add section for vxworks x86
28570 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
28572 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28573 per-object constrained components where the discriminant is of an
28575 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28576 the parent initialization procedure for derived Unchecked_Unions.
28577 Instead, derived Unchecked_Unions build their own initialization
28579 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28580 Check the body of the subprogram for details.
28581 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28582 functions for derived Unchecked_Union types by introducing a condition.
28583 Allow the creation of TSS equality functions for Unchecked_Unions.
28584 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28585 Add formal parameter Discr to function signature. Discr is used to
28586 control the generated case statement for Unchecked_Union types.
28587 (Make_Eq_If): Rename formal parameter Node to E in function signature.
28589 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28591 Check the body of the subprogram for details.
28592 (Expand_Composite_Equality): Augment composite type equality to include
28593 correct handling of Unchecked_Union components.
28594 (Expand_N_In): Add condition to detect illegal membership tests when the
28595 subtype mark is a constrained Unchecked_Union and the expression lacks
28596 inferable discriminants, and build a Raise_Program_Error node.
28597 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28598 to detect types that contain components of unconstrained Unchecked_Union
28599 subtype. Add condition to detect equality between types that have an
28600 unconstrained Unchecked_Union component, and build a Raise_Program_Error
28601 node. Add condition to detect equality between Unchecked_Union types
28602 that lack inferable discriminants, and build a Raise_Program_Error node.
28603 Otherwise build a TSS equality function call.
28604 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28605 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28606 with the operand lacking inferable discriminants, and build a Raise_
28607 Program_Error node.
28608 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28609 composite equality.
28610 (Has_Inferable_Discriminants): Implement new predicate for objects and
28611 expressions of Unchecked_Union type. Check the body of subprogram for
28613 (Has_Unconstrained_UU_Components): Add function
28614 Component_Is_Unconstrained_UU. It is used to detect whether a single
28615 component is of an unconstrained Unchecked_Union subtype. Add function
28616 Variant_Is_Unconstrained_UU. It is used to detect whether a single
28617 component inside a variant is of an unconstrained Unchecked_Union type.
28619 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28620 inferred discriminant values. Add condition to generate a case
28621 statement with an inferred discriminant as the switch.
28622 (Make_Component_List_Assign): Introduce a Boolean flag that determines
28623 the behaviour of the subprogram in the presence of an Unchecked_Union.
28624 Add condition to trigger the usage of the inferred discriminant value
28625 as the generated case statement switch.
28626 (Make_Field_Assign): Introduce a Boolean flag that determines the
28627 behaviour of the subprogram in the presence of an Unchecked_Union. Add
28628 condition to trigger the usage of the inferred discriminant value as
28629 the right-hand side of the generated assignment.
28631 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28632 parameter generation when dealing with Unchecked_Unions.
28634 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28635 checks for Unchecked_Unions.
28637 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28639 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28640 Raise_Program_Error nodes for the execution of Read and Write
28641 attributes of Unchecked_Union types and the execution of Input and
28642 Output attributes of Unchecked_Union types that lack default
28643 discriminant values.
28645 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28646 Unchecked_Union. Add procedure Check_Component. It is used to inspect
28647 per-object constrained components of Unchecked_Unions for being
28648 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28649 check individual components withing a variant.
28651 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28652 comparison of Unchecked_Unions.
28653 (Resolve_Equality_OP): Remove guard that prevents equality between
28656 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28657 of component subtypes for Unchecked_Union components.
28658 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28659 since it is the actual subtype.
28661 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28662 pass of Unchecked_Union subtypes as generic actuals to formal types
28663 that lack known_discriminant_parts or that are derived Unchecked_Union
28664 types, and do nothing. In any other case, produce an error message.
28666 * sem_ch3.adb (Analyze_Component_Declaration): Add function
28667 Contains_POC. It determines whether a constraint uses the discriminant
28668 of an enclosing record type.
28669 Add condition to detect per-object constrained component and set the
28671 (Derived_Type_Declaration): Remove guard that prevents derivation from
28672 Unchecked_Union types.
28673 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28676 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28677 references to Unchecked_Union discriminants.
28679 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28680 formal generation when dealing with Unchecked_Unions.
28681 (Set_Actual_Subtypes): Add condition to prevent generation of actual
28682 subtypes for Unchecked_Unions.
28684 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28685 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28686 completions of discriminated partial views by Unchecked_Unions and
28687 produce an error message.
28689 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28691 * trans.c (struct stmt_group): New field, GLOBAL.
28692 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28693 (struct elab_info): New struct.
28694 (elab_info_list, gnu_elab_proc_stack): New variables.
28695 (Compilation_Unit_to_gnu): New procedure.
28696 (gigi): Call it and also handle elaboration procs we've saved.
28697 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28698 global field from parent.
28699 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28700 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28701 (start_stmt_group): Initialize global field from parent.
28702 (add_decl_expr): Set to global for current statement group.
28703 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28706 * utils.c (global_bindings_p): True when no current_function_decl; no
28707 longer check current_binding_level.
28709 2004-08-09 Ben Brosgol <brosgol@gnat.com>
28711 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28714 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28716 2004-08-06 Andreas Schwab <schwab@suse.de>
28718 * utils.c (gnat_define_builtin): Remove second parameter of
28720 (begin_subprog_body): Likewise.
28722 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
28724 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28725 optimization, not supported by the tree-ssa back-end.
28727 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
28729 * s-mastop-irix.adb: Update comments.
28731 * a-except.adb (Exception_Information): Raise Constraint_Error if
28732 exception Id is Null_Id.
28733 This is required behavior, which is more reliably and clearly checked
28734 at the top level interface level.
28736 2004-07-26 Javier Miranda <miranda@gnat.com>
28738 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28739 call if a component has no default_expression and the box is used.
28741 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28742 default_expression and you use box, it behaves as if you had declared a
28743 stand-alone object.
28744 (Resolve_Record_Aggregate): If a component has no default_expression and
28745 you use box, it behaves as if you had declared a stand-alone object.
28747 * sem_ch10.adb (Install_Siblings): Do not make visible the private
28748 entities of private-with siblings.
28750 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28752 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28753 for a component of an itype, set the parent pointer for analysis,
28754 there is no list in which to insert it.
28756 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28757 bona-fide renamings, not for inherited operations.
28759 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28760 actual for a formal that is an access parameter, create local
28761 finalization list even if the expression is not an aggregate.
28763 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28766 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28767 Diagnose properly illegal subprogram renamings that are library units.
28769 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28772 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28773 conversion rewritten as an unchecked conversion, check that original
28774 expression is a variable.
28776 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28777 unchecked_conversion, create new node rather than rewriting in place,
28778 to preserve original construct.
28780 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28782 * gigi.h (gnat_expand_body): Deleted.
28784 * Make-lang.in: (trans.o): Depends on function.h.
28786 * misc.c: (gnat_expand_body): Moved to here.
28788 * trans.c (gnat_expand_body_1): Deleted.
28789 (gnat_expand_body): Moved from here.
28790 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28791 (add_stmt): Check for marked visited with global_bindings_p.
28792 (gnat_gimplify_expr, case COMPONENT_REF): New case.
28793 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28795 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28796 VIEW_CONVERT_EXPR if not operation type.
28798 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28801 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28802 changes: reformatting of negation operators, removing unneeded
28803 inequality comparison with zero, converting equality comparisons with
28804 zero to negations, changing int/0/1 to bool/false/true, replace calls
28805 to gigi_abort with abort, and various other similar changes.
28807 2004-07-26 Vincent Celier <celier@gnat.com>
28809 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28812 * make.adb (Gnatmake): Fail when a library is not present and there is
28813 no object directory.
28815 * mlib-prj.adb (Check_Library): No need to check if the library needs
28816 to be rebuilt if there is no object directory, hence no object files
28817 to build the library.
28819 * opt.ads (Setup_Projects): New Boolean flag.
28821 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28823 Create directory when Kind /= "" and in "gnat setup". Report error if
28824 directory cannot be created.
28825 (Ada_Check): Create library interface copy dir if it does not exist
28826 and we are in "gnat setup".
28827 (Find_Sources): No error if in "gnat setup" and no Ada sources were
28829 (Language_Independent_Check): Create object directory, exec directory
28830 and/or library directory if they do not exist and we are in
28833 * vms_conv.ads: (Command_Type): New command Setup.
28835 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28837 * vms_data.ads: Add qualifiers/switches for new built-in command
28840 2004-07-25 Richard Henderson <rth@redhat.com>
28842 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28843 DECL_IGNORED_P on RESULT_DECL.
28845 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
28847 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28848 allocation and potentially overflowing update with
28849 Tailored_Exception_Information. Use the sec-stack free procedural
28850 interface to output Exception_Information instead.
28852 * a-except.adb (To_Stderr): New subprogram for character, and string
28853 version moved from a-exextr to be visible from other separate units.
28854 (Tailored_Exception_Information): Remove the procedural version,
28855 previously used by the default Last_Chance_Handler and not any more.
28856 Adjust various comments.
28858 * a-exexda.adb: Generalize the exception information procedural
28859 interface, to minimize the use of secondary stack and the need for
28860 local buffers when the info is to be output to stderr:
28861 (Address_Image): Removed.
28862 (Append_Info_Character): New subprogram, checking for overflows and
28863 outputing to stderr if buffer to fill is of length 0.
28864 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28865 (Append_Info_Address, Append_Info_Exception_Name,
28866 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28867 Append_Info_Basic_Exception_Traceback,
28868 Append_Info_Exception_Information): New subprograms.
28869 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28870 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28871 Exception_Info_Maxlength, Exception_Name_Length,
28872 Exception_Message_Length): New subprograms.
28873 (Exception_Information): Use Append_Info_Exception_Information.
28874 (Tailored_Exception_Information): Use
28875 Append_Info_Basic_Exception_Information.
28876 Export services for the default Last_Chance_Handler.
28878 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28879 other separate units.
28881 2004-07-20 Vincent Celier <celier@gnat.com>
28883 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
28885 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28887 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
28888 emit itype references for the designated types of component types that
28889 are declared outside of the full record declaration, and that may
28890 denote a partial view of that record type.
28892 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28895 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
28896 which is the designated type in an access component declaration, to the
28897 list of incomplete dependents of the parent type, to avoid elaboration
28898 issues with out-of-scope subtypes.
28899 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
28900 full view of the parent.
28902 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28905 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
28906 entities that are hidden, such as references to generic actuals
28907 outside an instance.
28909 2004-07-20 Javier Miranda <miranda@gnat.com>
28911 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
28912 support to the new notation.
28913 (Analyze_Selected_Component): Add call to Try_Object_Operation.
28915 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
28917 * s-taprob.adb: Adding the elaboration code required for initializing
28918 the tasking soft links that are common to the full and the restricted
28921 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
28922 restricted run time has been moved to the package
28923 System.Soft_Links.Tasking.
28925 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
28926 restricted run time has been moved to the package
28927 System.Soft_Links.Tasking.
28929 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
28931 * s-solita.ads, s-solita.adb: New files.
28933 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28935 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
28936 Case_Statement_to_gnu): Split off from gnat_to_gnu.
28937 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
28938 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
28939 Exception_Handler_to_gnu_zcx): Likewise.
28941 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
28943 * gigi.h (builtin_function): Declare.
28945 2004-07-15 Robert Dewar <dewar@gnat.com>
28947 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
28950 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
28951 access values as an example of a warning.
28953 * gnat_rm.texi: Document new attribute Has_Access_Values
28955 * gnat-style.texi: Document that box comments belong on nested
28958 * sem_util.ads (Has_Access_Values): Improved documentation
28960 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
28962 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
28963 (Process_Interface_Name): Call to this new procedure
28964 (Set_Extended_Import_Export_External_Name): Call to this new procedure
28966 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
28968 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
28970 * einfo.ads: Minor comment typo fixed
28972 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
28974 * snames.adb: Add _atcb.
28976 * snames.ads: Add Name_uATCB.
28978 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
28979 (in the expanded code) when using the restricted run time.
28981 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
28982 a in parameter in order to allow ATCBs to be preallocated (in the
28985 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
28986 order to allow ATCBs to be preallocated. In case of error, the ATCB is
28987 deallocated in System.Tasking.Stages.
28989 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
28990 order to allow ATCBs to be preallocated.
28992 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
28993 here. It was previously done in Initialize_ATCB.
28995 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
28997 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
28998 Restricted run time.
29000 * exp_ch3.adb: When using the Restricted run time, pass the
29001 preallocated Ada_Task_Control_Block when creating a task.
29003 2004-07-15 Ed Schonberg <schonberg@gnat.com>
29005 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29006 function call that is itself an actual in an enclosing call, diagnose
29007 problem here rather than assuming that resolution will catch it.
29009 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29010 the local copy of a generic unit for a formal package, and the generic
29011 is a child unit, install private part of ancestors before compiling
29012 private part of spec.
29014 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29015 use scope entities rather than tree structures, to handle properly
29016 parent units that are instances rewritten as bodies for inlining
29019 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29020 Remove_Parents): Handle properly a parent unit that is an
29021 instantiation, when the unit has been rewritten as a body for inlining
29024 * par.adb (Goto_List): Global variable to collect goto statements in a
29025 given unit, for use in detecting natural loops.
29027 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29028 use in detecting natural loops.
29030 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29031 backwards goto's, and rewrite as a infinite loop, to improve locality
29034 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29035 subcomponent that includes an indexed reference, to prevent the
29036 generation of copies that would miscompile the desired assignment
29038 (Build_Task_Image_Decls): Add a numeric suffix to
29039 generated name for string variable, to avoid spurious conflicts with
29040 the name of the type of a single protected object.
29042 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29043 loop with an explicit exit statement, to avoid generating an
29044 out-of-range value with 'Succ leading to spurious constraint_errors
29045 when compiling with -gnatVo.
29047 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
29049 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29050 might not be analyzed yet, even if its Etype is already set (case of an
29051 unchecked conversion built using Unchecked_Convert_To, for example).
29052 If the prefix has already been analyzed, this will be a nop anyway.
29054 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29055 controller type, or an assignment of a record type with controlled
29056 components, copy only user data, and leave the finalization chain
29057 pointers untouched.
29059 2004-07-15 Vincent Celier <celier@gnat.com>
29061 * make.adb (Collect_Arguments): Improve error message when attempting
29062 to compile a source not part of any project, when -x is not used.
29064 * prj.ads: (Defined_Variable_Kind): New subtype
29066 * prj-attr.adb (Register_New_Package): Two new procedures to register
29067 a package with or without its attributes.
29068 (Register_New_Attribute): Mew procedure to register a new attribute in a
29070 New attribute oriented subprograms: Attribute_Node_Id_Of,
29071 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29072 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29074 New package oriented subprograms: Package_Node_Id_Of,
29075 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29077 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29079 (Package_Node_Id): Now a private, self initialized type
29080 (Register_New_Package): New procedure to register a package with its
29082 New attribute oriented subprograms: Attribute_Node_Id_Of,
29083 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29084 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29086 New package oriented subprograms: Package_Node_Id_Of,
29087 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29089 * prj-dect.adb (Parse_Attribute_Declaration,
29090 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29092 * prj-makr.adb (Make): Parse existing project file before creating
29093 other files. Fail if there was an error during parsing.
29095 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29096 new spec of Prj.Attr.
29098 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29099 to new spec of Prj.Attr.
29101 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29103 * utils2.c: Fix typo in comment.
29105 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29107 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29108 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29110 2004-07-14 Andreas Schwab <schwab@suse.de>
29112 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29114 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29116 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29118 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29121 * misc.c (gnat_types_compatible_p): New function.
29122 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29123 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29125 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29126 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29127 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29128 (mark_visited): Don't mark dummy type.
29129 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29130 parameter, we must remove any LJM building from GNU_NAME.
29131 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29132 (pos_to_constructor): Use int_const_binop.
29133 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29136 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29137 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29138 (gnat_install_builtins): Add __builtin_memset.
29140 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29142 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29143 for a renaming, stabilize the initialization expression if we are at a
29144 local level. At the local level, uses of the renaming may be performed
29145 by a direct dereference of the initializing expression, and we don't
29146 want possible variables there to be evaluated for every use.
29148 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29149 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29150 them on the way. Account for the fact that we may introduce side
29151 effects in the process.
29153 2004-07-13 Richard Henderson <rth@redhat.com>
29155 * misc.c (default_pass_by_ref): Use pass_by_reference.
29157 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29159 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29160 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29162 2004-07-08 Richard Henderson <rth@redhat.com>
29164 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29167 2004-07-06 Vincent Celier <celier@gnat.com>
29169 * vms_conv.ads: Minor reformatting.
29170 Alphabetical order for enumerated values of type Command_Type, to have
29171 the command in alphabetical order for the usage.
29173 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29174 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29176 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29178 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29179 (Add_Archive_Path): Only add the global archive if there is one.
29180 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29181 or not any object file to put in the global archive, and don't build
29182 a global archive if there is none.
29183 (X_Switches): New table
29184 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29185 in the X_Switches table, if any.
29186 (Initialize): Make sure the X_Switches table is empty
29187 (Scan_Arg): Record -X switches in table X_Switches
29189 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29191 * make.adb: Minor comment fix
29193 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29194 invoked with directory information, add the directory in front of the
29197 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29198 invoked with directory information, add the directory in front of the
29201 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29202 when Keep_Temporary_Files is False.
29203 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29204 directory information, add the directory in front of the path.
29205 When not on VMS, handle new switch -dn before the command to set
29206 Keep_Temporary_Files to True.
29207 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29210 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29211 invoked with directory information, add the directory in front of the
29214 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
29216 * snames.ads, snames.adb (Name_Stub): New name for the distributed
29219 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29220 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29222 * g-socket.adb (To_Timeval): Fix incorrect conversion of
29223 Selector_Duration to Timeval for the case of 0.0.
29225 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29226 documentation from Evolve_And_Then.
29228 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
29230 * s-taprop-tru64.adb, s-taprop-os2.adb,
29231 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29233 2004-07-06 Robert Dewar <dewar@gnat.com>
29235 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29236 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29237 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29238 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29239 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29240 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29241 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29242 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29243 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29244 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29245 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29246 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29247 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29248 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29249 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29250 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29251 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29252 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29253 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29254 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29255 vms_data.ads: Minor reformatting,
29256 Fix bad box comment format.
29258 * gnat_rm.texi: Fix minor grammatical error
29260 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29262 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29263 more cases of discriminated records to be recognized as not needing a
29265 (Has_Access_Values): New function.
29267 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29269 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29270 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29271 with LRM terminology).
29272 Change terminology in comments primitive type => elementary type.
29274 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29277 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29278 parameters do not impose any requirements on the presence of a body.
29280 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29283 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29284 compilation unit and is in an open scope at the point of instantiation,
29285 assume that a body may be present later.
29287 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29289 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29290 Improve error message when specified size is not supported.
29292 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29293 is never a primitive operation.
29295 2004-07-05 Andreas Schwab <schwab@suse.de>
29297 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29298 RECORD_OR_UNION_CHECK.
29299 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29301 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
29303 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29304 dependency on xgnatugn, instead build it via a submake.
29305 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29307 2004-07-04 Richard Henderson <rth@redhat.com>
29309 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29311 2004-07-01 Richard Henderson <rth@redhat.com>
29313 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29314 * utils.c (max_size): Likewise.
29316 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29318 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29319 and rest_of_type_compilation; add arg to create_*_decl.
29320 (annotate_decl_with_node): Deleted.
29321 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29322 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29323 (get_current_block_context, gnat_pushdecl): New declarations.
29324 (gnat_init_stmt_group): Likewise.
29325 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29326 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29327 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29328 (gnat_init): Call gnat_init_stmt_group.
29329 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29330 (gnu_pending_elaboration_list): Deleted.
29331 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29332 (gigi): Rearrange initialization calls and move some to last above.
29333 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29334 Delete calls to add_decl_expr; add arg to create_*_decl.
29335 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29336 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29337 begin_subprog_body and call it.
29338 Don't push and pop ggc context.
29339 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29340 (add_stmt): Remove handling of DECL_EXPR from here.
29341 If not in function, mark visited.
29342 (add_decl_expr): Put global at top level.
29343 Check for cases of DECL_INITIAL we have to handle here.
29344 (process_type): Add extra arg to create_type_decl.
29345 (build_unit_elab): Rework to just gimplify.
29346 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29347 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29348 (get_pending_elaborations, pending_elaborations_p): Likewise.
29349 (push_pending_elaborations, pop_pending_elaborations): Likewise.
29350 (get_elaboration_location, insert_elaboration_list): Likewise.
29351 (gnat_binding_level): Renamed from ada_binding_level.
29352 (init_gnat_to_gnu): Don't clear pending_elaborations.
29353 (global_bindings_p): Treat as global if no current_binding_level.
29354 (set_current_block_context): New function.
29355 (gnat_pushdecl): Renamed from pushdecl; major rework.
29356 All callers changed.
29357 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29358 (finish_record_type): Call call pushdecl for stub decl.
29359 (function_nesting_depth): Deleted.
29360 (begin_subprog_body): Delete obsolete code.
29361 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29363 2004-06-28 Robert Dewar <dewar@gnat.com>
29365 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29366 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29367 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29368 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29369 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29371 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29372 deal with problem of inefficient slices on machines with strict
29373 alignment, when the slice is a component of a composite.
29375 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29376 machines, we need the check there as well.
29378 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29380 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29381 determine safe copying direction for overlapping slice assignments
29382 when component is controlled.
29384 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29385 formal derived type in the actual for a formal package are visible in
29386 the enclosing instance.
29388 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29391 * sem_util.adb (Trace_Components): Diagnose properly an illegal
29392 circularity involving a private type whose completion includes a
29393 self-referential component.
29394 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29395 renaming or an instantiation from an implicit derived operation.
29397 2004-06-28 Pascal Obry <obry@gnat.com>
29399 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29401 (Library_File_Name_For): Idem.
29403 2004-06-28 Matthew Gingell <gingell@gnat.com>
29405 * g-traceb.ads: Add explanatory note on the format of addresses
29406 expected by addr2line.
29408 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
29410 * Makefile.in: Force debugging information on s-tasdeb.adb,
29411 a-except.adb and s-assert.adb needed by the debugger.
29413 2004-06-28 Vincent Celier <celier@gnat.com>
29415 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29419 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29421 * prj.adb: Minor reformatting
29422 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29424 * prj.ads: Comment updates
29426 (Project_Data): Change Flag1 to Need_To_Build_Lib.
29427 Remove Flag2: not used.
29429 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29432 * gnat_ugn.texi: Put a "null;" declaration in one project file example
29434 * gnat_rm.texi: Document Empty declarations "null;".
29436 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29437 front of the linker options.
29438 (Link_Foreign): Put the global archives and the libraries in front of
29439 the linker options.
29441 2004-06-28 Javier Miranda <miranda@gnat.com>
29443 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29444 (RTU_Loaded): Code cleanup
29445 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29446 withed predefined units.
29448 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29449 explicitly withed predefined units.
29450 Fix typo in comment
29452 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29453 explicitly withed predefined units.
29455 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29457 * ada-tree.def (DECL_STMT): Deleted.
29458 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29459 (DECL_STMT_VAR): Deleted.
29460 * decl.c: add_decl_stmt now add_decl_expr.
29461 * gigi.h: Likewise.
29462 * trans.c: Likewise.
29463 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29464 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29465 (add_stmt): Only handle padded type here.
29466 (add_stmt_with_node): Allow gnat_node to not be present.
29467 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29468 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29469 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29470 make a SAVE_EXPR for the entire fat pointer.
29471 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29472 (create_index_type): Make a DECL_EXPR.
29473 (end_subprog_body): Don't call allocate_struct_function here but
29476 2004-06-25 Pascal Obry <obry@gnat.com>
29478 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29479 Relocatable from Build_Dynamic_Library call.
29481 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29482 Relocatable are now synonym.
29484 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29486 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29487 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29490 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29491 Lib_Address and Relocatable.
29492 (Default_DLL_Address): Removed.
29494 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29495 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29496 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29497 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29498 (Default_DLL_Address): Removed.
29500 * mlib-tgt-mingw.adb: Ditto.
29501 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29503 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29504 the initial thread stack size.
29506 * a-strmap.ads: Move package L to private part as it is not used in
29507 the spec. Found while reading code.
29509 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
29511 * tracebak.c: Introduce support for a GCC infrastructure based
29512 implementation of __gnat_backtrace.
29514 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29515 any more. Use accessors instead. This eases maintenance and relaxes
29516 some alignment constraints.
29517 (_GNAT_Exception structure): Remove the Ada specific fields
29518 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29520 (is_handled_by, __gnat_eh_personality): Replace component references to
29521 exception structure by use of the new accessors.
29523 * init.c (__gnat_initialize): Adjust comments to match the just
29524 reverted meaning of the -static link-time option.
29526 * adaint.c (convert_addresses): Arrange not to define a stub for
29527 mips-irix any more, as we now want to rely on a real version from a
29528 recent libaddr2line.
29530 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29531 the personality routine can use them and not have to rely on a C
29532 counterpart of the record anymore. This simplifies maintenance and
29533 relaxes the constraint of having Standard'Maximum_Alignment match
29535 Update comments, and add a section on the common header alignment issue.
29537 2004-06-25 Geert Bosch <bosch@gnat.com>
29539 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29540 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29542 2004-06-25 Robert Dewar <dewar@gnat.com>
29544 * gnat_rm.texi: Fix section on component clauses to indicate that the
29545 restriction on byte boundary placement still applies for bit packed
29547 Add comment on stack usage from Initialize_Scalars
29549 * gnat_ugn.texi: Add documentation for -gnatyLnnn
29551 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29552 limiting nesting level.
29554 * usage.adb: Add line for -gnatyLnnn switch
29556 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29557 sem_ch13.adb, exp_aggr.adb: Minor reformatting
29559 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29560 type as well as on the subtype. This corrects a problem in freeze in
29561 setting alignments of atomic types.
29563 * sem_eval.ads: Minor comment typo fixed
29565 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29566 level. Minor reformatting.
29568 * fname.adb (Is_Predefined_File_Name): Require a letter after the
29569 minus sign. This means that file names like a--b.adb will not be
29570 considered predefined.
29572 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29573 record Test new flag and give diagnostic for bad component clause.
29574 (Freeze_Entity): Set alignment of array from component alignment in
29575 cases where this is safe to do.
29577 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29580 * cstand.adb: (Create_Standard): Set alignment of String to 1
29582 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29584 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29585 code in the common constrained array cases.
29587 * a-storio.adb: Change implementation to avoid possible alignment
29588 problems on machines requiring strict alignment (data should be moved
29589 as type Buffer, not type Elmt).
29591 * checks.adb (Apply_Array_Size_Check): Improve these checks by
29592 killing the overflow checks which we really do not need (64-bits is
29595 2004-06-25 Vincent Celier <celier@gnat.com>
29597 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29598 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29599 inconditionally for the main project.
29600 (Recursive_Add_Archives.Add_Archive_Path): New procedure
29601 (Link_Executables.Check_Time_Stamps): New procedure
29602 (Link_Executables.Link_Foreign): New procedure
29603 Changes made to reduce nesting level of this package
29604 (Check): New procedure
29605 (Add_Switches): When not in quiet output, check that a switch is not
29606 the concatenation of several valid switches. If it is, issue a warning.
29607 (Build_Global_Archive): If the global archive is rebuilt, linking need
29609 (Compile_Sources): Rebuilding a library archive does not imply
29610 rebuilding the global archive.
29611 (Build_Global_Archive): New procedure
29612 (Build_Library): New name for Build_Archive, now only for library
29614 (Check_Archive_Builder): New procedure
29615 (Create_Global_Archive_Dependency_File): New procedure
29616 (Gprmake): Call Build_Global_Archive before linking
29617 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29619 (Scan_Arg): Display the Copyright notice when -v is used
29621 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29624 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29626 Add new GNAT LIST qualifier /FILES=
29627 Added qualifier /DIRECTORY= to GNAT METRIC
29628 Added qualifier /FILES= to GNAT METRIC
29629 Added qualifier /FILES to GNAT PRETTY
29631 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29632 to take into account both versions of the switch.
29634 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29635 always be the last switch to the gcc driver. Disable switch storing so
29636 that switches automatically added by the gcc driver are not put in the
29639 * prj.adb (Project_Empty): Take into account changes in components of
29642 * prj.ads (Languages_Processed): New enumaration value All_Languages.
29644 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29645 used. Split Boolean component Ada_Sources_Present in two Boolean
29646 components Ada_Sources_Present and Other_Sources_Present.
29649 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29650 instead of Sources_Present.
29651 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29653 * prj-nmsc.adb: Minor reformatting
29654 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29655 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29656 Check_Ada_Naming_Scheme.
29657 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29660 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29662 Make sure that all cycles where there is at least one "limited with"
29664 (Parse_Single_Project): New Boolean parameter In_Limited
29666 * prj-proc.adb (Recursive_Check): When Process_Languages is
29667 All_Languages, call first Prj.Nmsc.Ada_Check, then
29668 Prj.Nmsc.Other_Languages_Check.
29670 * prj-proc.adb (Process): Use Ada_Sources_Present or
29671 Other_Sources_Present (instead of Sources_Present) depending on
29674 * lang-specs.h: Keep -g and -m switches in the same order, and as the
29677 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29678 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29680 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29683 * lib.ads (Disable_Switch_Storing): New procedure.
29685 * make.adb: Modifications to reduce nesting level of this package.
29686 (Check_Standard_Library): New procedure
29687 (Gnatmake.Check_Mains): New procedure
29688 (Gnatmake.Create_Binder_Mapping_File): New procedure
29689 (Compile_Sources.Compile): Add switch -gnatez as the last option
29690 (Display): Never display -gnatez
29692 * Makefile.generic:
29693 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29695 * gnatcmd.adb (Check_Project): New function
29696 (Process_Link): New procedure to reduce nesting depth
29697 (Check_Files): New procedure to reduce the nesting depth.
29698 For GNAT METRIC, include the inherited sources in extending projects.
29699 (GNATCmd): When GNAT LS is invoked with a project file and no files,
29700 add the list of files from the sources of the project file. If this list
29701 is too long, put it in a temp text files and use switch -files=
29702 (Delete_Temp_Config_Files): Delete the temp text file that contains
29703 a list of source for gnatpp or gnatmetric, if one has been created.
29704 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29705 in the project file is too large, create a temporary text file that
29706 list them and pass it to the tool with "-files=<temp text file>".
29707 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29709 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29710 generated file is in not in Ada.
29712 * gnatls.adb: Remove all parameters And_Save that are no longer used.
29713 (Scan_Ls_Arg): Add processing for -files=
29714 (Usage): Add line for -files=
29716 * g-os_lib.adb (On_Windows): New global constant Boolean flag
29717 (Normalize_Pathname): When on Windows and the path starts with a
29718 directory separator, make sure that the resulting path will start with
29721 * clean.adb (Clean_Archive): New procedure
29722 (Clean_Project): When there is non-Ada code, delete the global archive,
29723 the archive dependency files, the object files and their dependency
29724 files, if they exist.
29725 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29727 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
29729 * sinfo.ads: Fix typo in comment.
29731 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29732 the TSS for remote access-to-subprogram types, since these TSS are
29733 always present once the type has been analyzed.
29734 (RAS_E_Dereference): Same.
29736 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29737 reference raises Bad_Attribute, mark the reference as analyzed so the
29738 node (and any children resulting from rewrites that could have occurred
29739 during the analysis that ultimately failed) is not analyzed again.
29741 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29743 * exp_dist.adb: Minor comment fix.
29745 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29746 type is an anonymous access type, no unchecked deallocation of the
29747 allocated object can occur. If the object is controlled, attach it with
29748 a count of 1. This allows attachment to the Global_Final_List, if
29749 no other relevant list is available.
29750 (Get_Allocator_Final_List): For an anonymous access type that is
29751 the type of a discriminant or record component, the corresponding
29752 finalisation list is the one of the scope of the type.
29754 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29756 * sem_ch3.adb (Replace_Type): When computing the signature of an
29757 inherited subprogram, use the first subtype if the derived type
29758 declaration has no constraint.
29760 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29761 before applying previous optimization. Minor code cleanup.
29763 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29764 placed at the beginning of an unpacked record without explicit
29765 alignment, a slice of it will be aligned and does not need a copy when
29768 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29772 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29773 reference is written with expressions mimicking parameters.
29775 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
29778 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29779 STEP 2a. The constraints of a full type declaration of a derived record
29780 type are checked for conformance with those declared in the
29781 corresponding private extension declaration. The message
29782 "not conformant with previous declaration" is emitted if an error is
29785 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
29787 * g-traceb.ads: Document the need for -E binder switch in the spec.
29789 * g-trasym.ads: Document the need for -E binder switch in the spec.
29791 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
29793 * sem_prag.adb: Add handling of pragma Detect_Blocking.
29795 * snames.h, snames.ads, snames.adb: Add entry for pragma
29798 * s-rident.ads: Change reference to pragma Detect_Blocking.
29800 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29803 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29804 to indicate whether pragma Detect_Blocking is active.
29806 * par-prag.adb: Add entry for pragma Detect_Blocking.
29808 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29809 of not handling WITH.
29810 Note that this replaces the previous update which was incorrect.
29812 2004-06-25 Javier Miranda <miranda@gnat.com>
29814 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29815 use-clauses to have a clean environment.
29817 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29818 the installation of the use-clauses to stablish a clean environment in
29819 case of compilation of a separate unit; otherwise the call to
29820 use_one_package is protected by the barrier Applicable_Use.
29822 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29823 the installation of the use-clauses to stablish a clean environment in
29824 case of compilation of a separate unit.
29825 (End_Use_Clauses): Minor comment cleanup.
29827 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
29829 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29831 2004-06-23 Richard Henderson <rth@redhat.com>
29833 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29835 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29837 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29838 now bool instead of int.
29839 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29840 * trans.c (gnu_switch_label_stack): New function.
29841 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29842 elaboration of renamed entity returns.
29843 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29844 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29845 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29846 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29847 DECL_SIZE_UNIT and simplify variable-sized case.
29848 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29849 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29850 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29851 (build_unit_elab): Disable for now.
29852 * utils.c (mark_visited): New function.
29853 (pushdecl): Walk tree to call it for global decl.
29854 (update_pointer_to): Update all variants of pointer and ref types.
29855 Add arg to COMPONENT_REF.
29856 (convert): Likewise.
29857 Move check for converting between variants lower down.
29858 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29859 (build_allocator): Don't force type of MODIFY_EXPR.
29860 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29861 put_var_into_stack.
29863 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29865 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29866 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29867 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29869 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29870 all callers changed.
29871 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29872 the way that EXIT_STMT finds the loop label.
29873 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29874 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29875 (add_stmt): Use annotate_with_locus insted of setting directly.
29876 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29877 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29878 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29879 (build_vms_descriptor): Add extra args to ARRAY_REF.
29880 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29881 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
29883 (build_binary_op): Don't make explicit CONVERT_EXPR.
29884 Add extra rgs to ARRAY_REF.
29886 2004-06-14 Pascal Obry <obry@gnat.com>
29888 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
29889 Windows. Fix minor typo.
29891 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
29892 which is now supported on Windows. With this implementation using the
29893 Library Project feature is no different on Windows than on UNIX.
29895 2004-06-14 Vincent Celier <celier@gnat.com>
29897 * makegpr.adb (Compile_Sources): Nothing to do when there are no
29900 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
29902 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
29903 found, show the project name and the path of the previously parsed
29906 2004-06-14 Ed Schonberg <schonberg@gnat.com>
29908 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
29909 array, avoid copying the actual before the call.
29911 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
29913 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
29914 Instead, allocate memory on worst-case alignment assumptions, and then
29915 return an aligned address within the allocated zone.
29917 2004-06-14 Robert Dewar <dewar@gnat.com>
29919 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
29920 elab entities in predefined units in No_Run_Time_Mode.
29921 (Gen_Adainit_C): Same fix
29922 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
29923 units in No_Run_Time_Mode
29924 (Gen_Elab_Calls_C): Same fix
29926 * symbols-vms-alpha.adb: Minor reformatting
29928 * g-debpoo.ads: Minor reformatting
29930 * lib.adb (In_Same_Extended_Unit): Version working on node id's
29932 * lib.ads (In_Same_Extended_Unit): Version working on node id's
29934 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
29937 * make.adb: Minor reformatting
29939 * par-ch12.adb: Minor reformatting
29941 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
29943 * prj-strt.adb: Minor reformatting
29945 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
29948 * sem_attr.adb: Minor reformatting
29950 * sem_ch7.adb: Minor reformatting
29952 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
29953 for type in the same unit as the object declaration.
29955 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
29956 static string expressions and not just string literals.
29958 (Set_Warning): Reset restriction warning flag for restriction pragma
29959 Implement pragma Profile_Warnings
29960 Implement pragma Profile (Restricted)
29961 Give obolescent messages for old restrictions and pragmas
29963 * snames.h, snames.ads, snames.adb: Add new entry for pragma
29966 * s-rident.ads: Add declarations for restrictions required by profile
29967 Restricted and profile Ravenscar.
29969 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
29971 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
29972 configuration pragmas.
29974 2004-06-11 Vincent Celier <celier@gnat.com>
29976 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
29977 gnatsym, when symbol policy is Restricted.
29979 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
29980 gnatsym, when symbol policy is Restricted.
29982 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
29983 read the symbol file.
29984 (Finalize): Fail in symbol policy Restricted if a symbol in the original
29985 symbol file is not in the object files. Do not create a new symbol file
29986 when symbol policy is Restricted.
29988 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
29991 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
29993 (Usage): Line for new switch -R
29995 * make.adb (Initialize): When the platform is not VMS, add the
29996 directory where gnatmake is invoked in the front of the path, if
29997 gnatmake is invoked with directory information. Change the Scan_Args
29998 while loop to a for loop.
29999 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30000 if Depth is equal or greater than the proposed depth, there is nothing
30002 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30005 * prj.ads: Add new symbol policy Restricted.
30007 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30008 with the new parameters Check_All_Labels and Case_Location.
30010 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30011 (Library_Symbol_File needs to be defined).
30013 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30014 and Case_Location If Check_All_Labels is True, check that all values of
30015 the string type are used, and output warning(s) if they are not.
30017 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30020 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30022 * gnat_ugn.texi: Update documentation about the library directory in
30025 * makegpr.adb (Display_Command): In verbose mode, also display the
30026 value of the CPATH env var, when the compiler is gcc.
30027 (Initialize): Change the Scan_Args while loop to a for loop
30028 (Compile_Individual_Sources): Change directory to object directory
30029 before compilations.
30031 * symbols.ads: New symbol policy Restricted.
30033 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
30035 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30036 is now taken care of internally in the Exception_Propagation package
30037 and does not require clients assistance any more.
30039 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30040 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30041 functions. Helpers to maintain a predicate required in the handling of
30042 occurrence transfer between tasks.
30043 This is now handled internally and does not require clients assistance
30044 for the setup/propagate separation anymore.
30045 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30046 allocation strategy, handle the Setup_And_Not_Propagated predicate and
30049 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30050 raise_after_setup, now that everything is handled internally within the
30051 setup/propagation engine.
30053 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30055 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30056 Add additional conditions for the case of an actual being a simple
30057 name or literal. Improve inlining by preventing the generation
30058 of temporaries with a short lifetime (one use).
30060 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30063 * einfo.ads: Minor comment updates for Has_Completion and
30064 E_Constant list of flags.
30066 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30067 and constant redeclarations now set the Has_Completion flag of their
30068 defining identifiers.
30070 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30071 Inspect_Deferred_Constant_Completion.
30072 Used to detect private deferred constants that have not been completed
30073 either by a constant redeclaration or pragma Import. Emits error message
30074 "constant declaration requires initialization expression".
30076 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30077 completes a deferred constant.
30079 2004-06-11 Geert Bosch <bosch@gnat.com>
30081 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30083 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30084 calculating exponent for scaling denormal numbers.
30085 (Leading_Part): Properly raise Constraint_Error for zero or negative
30087 (Remainder): Properly raise Constraint_Error for zero divisor.
30089 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
30091 * sem_util.adb: Minor reformatting.
30093 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30094 dereference when accessing the entry parameter record.
30095 (Check_Array_Type): Always check for possible implicit dereference.
30096 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30097 Abort if a pointer is still present (denoting that an implicit
30098 dereference was left in the tree by the front-end).
30100 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30101 dereference when accessing the entry parameter record.
30102 (Check_Array_Type): Always check for possible implicit dereference.
30103 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30104 Abort if a pointer is still present (denoting that an implicit
30105 dereference was left in the tree by the front-end).
30107 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30109 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30110 message, like the compiler itself does. Easier to parse the output.
30112 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30114 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30115 be base names, and not includes directories.
30117 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30119 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30120 so that dependencies are properly taken into account by make.
30122 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30125 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30126 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30128 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30130 * Makefile.in (install-gnatlib): install target-specific run-time files.
30132 * Make-lang.in: Remove obsolete targets.
30134 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30136 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30137 specification, to catch misuses of program unit names.
30139 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30140 superfluous conversions in an instance.
30142 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30145 * sem_ch12.adb (Save_References): If operator node has been folded to
30146 enumeration literal, associated_node must be discarded.
30148 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30150 * s-stchop-vxworks.adb: Add required pragma Convention to
30151 Task_Descriptor because it is updated by a C function.
30153 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30156 * Makefile.in: Remove target specific SO_OPT on IRIX
30158 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30160 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30161 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30162 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30163 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30164 (STMT_STMT, USE_STMT): New statement codes.
30165 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30166 * ada-tree.h: Reflect above changes.
30167 (struct tree_loop_id): Deleted.
30168 (union lang_tree_node, struct lang_decl, struct lang_type):
30169 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30170 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30171 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30172 (IS_ADA_STMT): New macro.
30173 * decl.c (annotate_decl_with_node): New function.
30174 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30175 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30176 Call add_stmt_with_node to do needed assignments.
30177 Add call to update setjmp buffer directly, not via EXPR_STMT.
30178 (maybe_variable): Argment GNAT_NODE deleted.
30179 * gigi.h (maybe_variable): Likewise.
30180 (make_transform, add_stmt_with_node, set_block_for_group): New.
30181 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30182 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30183 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30184 (set_lineno, set_lineno_from_sloc): Likewise.
30185 (record_code_position, insert_code_for): Likewise.
30186 (gnat_poplevel): Now returns void.
30187 (end_subprog_body): Now takes argument.
30188 * misc.c (cgraph.h, tree-inline.h): New includes.
30189 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30190 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30191 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30192 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30193 (gnat_parse_file): Don't set immediate_size_expand.
30194 Call cgraph functions.
30195 (gnat_expand_expr): Remove most cases.
30196 (record_code_position, insert_code_for): Remove from here.
30197 * trans.c (toplev.h, tree-gimple.h): Now included.
30198 (discard_file_names): Deleted.
30199 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30200 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30201 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30202 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30203 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30204 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30205 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30206 (set_block_for_group, add_stmt_list): Likewise.
30207 (start_stmt_group): Renamed from start_block_stmt.
30208 (end_stmt_group): Likewise, from end_block_stmt.
30209 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30210 (gigi): Don't set discard_file_names or call set_lineno.
30211 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30212 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30213 Numerous changes throughout to reflect new names and complete
30214 function-at-a-time implementation.
30215 (gnat_expand_stmt): Delete or comment out all cases.
30216 (process_inlined_subprograms): Use add_stmt.
30217 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30218 call set_lineno; also remove unneeded block handling.
30219 (process_type): Remove unneeded block handling.
30220 (build_unit_elab): Remove calls to deleted functions.
30221 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30222 (tree-dump.h): Likewise.
30223 (struct ada_binding_level): Add field jmpbuf_decl.
30224 (gnat_define_builtin, gnat_install_builtins): New.
30225 (gnat_gimplify_function, gnat_finalize): Likewise.
30226 (gnat_poplevel): No longer return BLOCK, set it instead.
30227 Remove code dealing with nested functions.
30228 (gnat_init_decl_processing): Also set size_type_node.
30229 Call gnat_install_builtins.
30230 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30231 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30232 Remove special-case for "main".
30233 (end_subprog_body): Add arg and rework for tree-ssa.
30234 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30235 Add case for BOOLEAN_TYPE.
30236 * utils2.c (rtl.h): Now include.
30237 (build_call_raise): Test Debug_Flag_NN directly.
30238 (build_call_alloc_dealloc): Don't use local stack allocation for now.
30239 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30240 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30242 2004-06-07 Robert Dewar <dewar@gnat.com>
30244 * a-direct.ads, einfo.ads: Minor comment updates
30246 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30247 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30248 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30249 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30250 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30252 * s-interr-sigaction.adb: Remove unreferenced variable
30253 (Attached_Interrupts). Minor reformatting.
30254 Avoid use of variable I (replace by J).
30256 * par-ch10.adb: Fix text of one error message
30258 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30259 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30260 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30261 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30262 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30263 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30264 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30265 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30266 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30267 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30268 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30271 2004-06-07 Doug Rupp <rupp@gnat.com>
30273 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30275 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30277 * mlib-tgt-vms-ia64.adb: New file.
30279 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30280 Add mlib-tgt-vms-ia64.adb
30281 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30282 Move to alpha specific ifeq section.
30283 Add VMS specific versions of symbols.adb
30284 Renaming of 5q vms files.
30286 * 5qsystem.ads renamed to system-vms_64.ads.
30288 2004-06-07 Vincent Celier <celier@gnat.com>
30290 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30291 explain that when a time of day corresponding to the non existing hour
30292 on the day switching to DST is specified, Split may return a different
30295 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30298 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30299 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30301 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30303 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30304 the linking options.
30305 (Build_Library.Check_Libs): On VMS, if there is a dependency on
30306 g-trasym.ads, set Gtrasymobj_Needed to True.
30308 * prj-attr.adb: Add new package Metrics for gnatmetric
30310 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30311 canonical case to take into account files with upper case characters on
30313 (Ada_Check): Load the reference symbol file name in the name buffer to
30314 check it, not the symbol file name.
30316 * snames.ads, snames.adb: Add standard name Metrics (name of project
30317 file package for gnatmetric).
30319 * vms_conv.ads: Add Metric to Comment_Type
30321 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30323 * vms_data.ads: Add qualifiers for GNAT METRIC
30325 * makegpr.adb (Link_Executables): Take into account the switches
30326 specified in package Linker of the main project.
30328 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
30330 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30331 the index of the last element is Units.Last, not Units.Table'Last
30332 (which is usually not a valid index within the actually allocated
30333 storage for the table).
30335 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30336 determines whether to generate a call to a checked storage pool
30337 Dereference action.
30338 Generate such a call only for a dereference that either comes from
30339 source, or is the result of rewriting a dereference that comes from
30342 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
30344 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30346 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
30348 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30349 file level, elaborate the stride for inner dimensions in alignment
30352 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30355 2004-06-07 Javier Miranda <miranda@gnat.com>
30357 * exp_ch6.adb: Correct wrong modification in previous patch
30359 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
30361 * g-trasym.ads: Corrected comment to properly reflect level of support
30364 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
30366 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30367 includes case of a variable referenced on the left hand side of an
30368 assignment, therefore remove redundant code. Variables and prefixes of
30369 indexed or selected components are now marked as referenced on left
30370 hand side. Warnings are now properly emitted when variables or prefixes
30371 are assigned but not read.
30373 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30374 left hand side referenced variables. Private access types do not
30375 produce the warning "variable ... is assigned but never read".
30376 Add also additional checks to left hand side referenced variables.
30377 Aliased, renamed objects and access types do not produce the warning
30378 "variable ... is assigned but never read" since other entities may read
30379 the memory location.
30381 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
30383 * Makefile.in: In the powerpc/vxworks-specific section, restore
30384 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30387 2004-06-07 Ed Schonberg <schonberg@gnat.com>
30389 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30390 predefined operators.
30391 Removes spurious type errors from g-trasym-vms.adb.
30393 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30394 distinct from the operator appearing in the source, call appropriate
30395 routine to insert conversions when needed, and complete resolution of
30397 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30398 interpretations for rewritten right operand.
30399 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30400 the other operand is overloaded and the context is a type conversion.
30402 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30404 * ada-tree.def (BLOCK_STMT): Now has two operands.
30407 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30409 * gigi.h: (gnat_poplevel): Now returns a tree.
30411 * trans.c (end_block_stmt): Add arg; all callers changed.
30412 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30413 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30414 (add_stmt): Set TREE_TYPE.
30415 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30416 (gnat_expand_stmt, case BREAK_STMT): New case.
30418 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30420 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
30422 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30423 procedure Set_Stack_Size that is not needed.
30425 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
30427 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30428 used for gnatpp input file and for the files upon which it depends
30430 2004-06-07 Ben Brosgol <brosgol@gnat.com>
30432 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30434 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
30436 * gnatvsn.ads: Bump version numbers appropriately.
30437 Add new build type.
30439 2004-06-07 Pascal Obry <obry@gnat.com>
30441 * gnat_ugn.texi: Improve comments about imported names and link names
30442 on Windows. Add a note about the requirement to use -k gnatdll's option
30443 when working with a DLL which has stripped stdcall symbols (no @nn
30446 2004-05-27 Vincent Celier <celier@gnat.com>
30448 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30449 COMMENTS_LAYOUT=UNTOUCHED
30451 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30452 symbols-vms-alpha.adb
30454 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
30456 * sem.ads: Clarify documentation on checks suppression.
30458 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30460 2004-05-27 Ed Schonberg <schonberg@gnat.com>
30462 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30463 the case of multiple derivations.
30464 (Is_Object_Reference): For a selected component, verify that the prefix
30465 is itself an object and not a value.
30467 * sem_ch12.adb (Same_Instantiated_Constant): New name for
30468 Same_Instantiated_Entity.
30469 (Same_Instantiated_Variable): Subsidiary to
30470 Check_Formal_Package_Instance, to recognize actuals for in-out generic
30471 formals that are obtained from a previous formal package.
30472 (Instantiate_Subprogram_Body): Emit proper error when
30473 generating code and the proper body of a stub is missing.
30475 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30476 has a universal interpretation, do the disambiguation here.
30478 * exp_ch4.adb (Expand_N_Type_Conversion,
30479 Expand_N_Unchecked_Type_Conversion): Special handling when target type
30480 is Address, to avoid typing anomalies when Address is a visible integer
30483 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30484 to determine whether a subprogram should not be marked Pure, even when
30485 declared in a pure package.
30487 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
30489 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30491 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30492 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30493 Update the documentation about the Ravenscar profile, following the
30494 definition found in AI-249.
30496 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30497 setting the Profile (Ravenscar). This must be done in addition to
30498 setting the required restrictions.
30500 * rtsfind.ads: Add the set of operations defined in package
30503 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30506 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
30508 lang-specs.h: Always require -c or -S and always redirect to /dev/null
30509 if -gnatc or -gnats is passed.
30511 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
30513 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30514 a significant reference. Warnings are now properly emitted when a
30515 discriminated type is not referenced.
30517 * lib-xref.adb (Generate_Reference): A deferred constant completion,
30518 record representation clause or record type discriminant does not
30519 produce a reference to its corresponding entity. Warnings are now
30520 properly emitted when deferred constants and record types are not
30523 2004-05-27 Geert Bosch <bosch@gnat.com>
30525 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30526 Fixes ACATS Annex G tests.
30528 2004-05-27 Robert Dewar <dewar@gnat.com>
30530 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30533 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
30535 * s-interr.adb (Server_Task): Take into account case of early return
30536 from sigwait under e.g. linux.
30538 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
30540 * gnat_ugn.texi: Add description for the new gnatpp options:
30541 -rnb - replace the original source without creating its backup copy
30542 -c0 - do not format comments
30544 2004-05-24 Geert Bosch <bosch@gnat.com>
30546 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30547 with 192 bits of precision, sufficient to reduce a double-extended
30548 arguments X with a maximum relative error of T'Machine_Epsilon, for X
30549 in -2.0**32 .. 2.0**32.
30550 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
30551 reduction by the processor, which only uses a 68-bit approximation of
30553 (Tan): Always reduce arguments and compute function either using
30554 the processor's fptan instruction, or by dividing sin and cos as needed.
30556 2004-05-24 Doug Rupp <rupp@gnat.com>
30558 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30559 gcc error on 32/64 bit VMS.
30561 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
30563 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30564 since this is what we get for stack overflows although not documented
30566 Document the issues which may require adjustments to our signal
30569 2004-05-24 Ed Schonberg <schonberg@gnat.com>
30571 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30572 enclosing dynamic scope if the instantiation is within a generic unit.
30574 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30576 * exp_dbug.ads: Fix typo.
30578 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30579 Rename it to its proper name: system-linux-ia64.ads
30580 (stamp-gnatlib1): Remove extra target specific run time files when
30581 setting up the rts directory.
30583 2004-05-24 Javier Miranda <miranda@gnat.com>
30585 * einfo.ads, einfo.adb (Limited_Views): Removed.
30586 (Limited_View): New attribute that replaces the previous one. It is
30587 now a bona fide package with the limited-view list through the
30588 first_entity and first_private attributes.
30590 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30591 limited-private-with clause.
30592 (Install_Limited_Withed_Unit): Install the private declarations of a
30593 limited-private-withed package. Update the installation of the shadow
30594 entities according to the new structure (see Build_Limited_Views)
30595 (Build_Limited_Views): Replace the previous implementation of the
30596 limited view by a package entity that references the first shadow
30597 entity plus the first shadow private entity (required for limited-
30598 private-with clause)
30599 (New_Internal_Shadow_Entity): Code cleanup.
30600 (Remove_Limited_With_Clause): Update the implementation to undo the
30601 new work carried out by Build_Limited_Views.
30602 (Build_Chain): Complete documentation.
30603 Replace Ada0Y by Ada 0Y in comments
30606 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30607 types the level of accessibility depends on the enclosing type
30610 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30611 entities. Complete documentation of previous change.
30613 2004-05-24 Robert Dewar <dewar@gnat.com>
30615 * namet.adb: Minor reformatting
30616 Avoid use of name I (replace by J)
30617 Minor code restructuring
30619 * sem_ch6.adb: Minor reformatting
30621 * lib-writ.adb: Do not set restriction as active if this is a
30622 Restriction_Warning case.
30624 * sem_prag.adb: Reset restriction warning flag if real pragma
30625 restriction encountered.
30627 * s-htable.adb: Minor reformatting
30628 Change rotate count to 3 in Hash (improves hash for small strings)
30630 * 5qsystem.ads: Add comments for type Address (no literals allowed).
30632 * gnat_ugn.texi: Add new section of documentation "Code Generation
30633 Control", which describes the use of -m switches.
30635 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
30637 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30638 through the DECL_INITIAL for renamed variables.
30640 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30642 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30644 2004-05-19 Joel Brobecker <brobecker@gnat.com>
30646 * exp_dbug.ads: Correct comments concerning handling of overloading,
30647 since we no longer use $ anymore.
30649 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
30651 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30652 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30653 with illegal subunits.
30655 2004-05-19 Ed Schonberg <schonberg@gnat.com>
30657 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30658 body with front-end inlining enabled, check whether an inline pragma
30659 appears immediately after the body and applies to it.
30661 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30662 enabled and the pragma appears after the body of the subprogram.
30664 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30666 Part of function-at-a-time conversion
30668 * misc.c (adjust_decl_rtl): Deleted.
30669 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30672 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30673 (add_decl_stmt, add_stmt, block_has_vars): New functions.
30674 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30676 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30677 when making a decl.
30678 (gnat_to_gnu_entity): Likewise.
30679 Use add_stmt to update setjmp buffer.
30680 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30682 No longer call adjust_decl_rtl.
30683 (DECL_INIT_BY_ASSIGN_P): New macro.
30684 (DECL_STMT_VAR): Likewise.
30686 * trans.c (gigi): Call start_block_stmt to make the outermost
30688 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30689 Call start_block_stmt and end_block_stmt temporarily.
30690 Use gnat_expand_stmt instead of expand_expr_stmt.
30691 (add_decl_stmt): New function.
30692 (tree_transform): Call it.
30693 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30694 (end_block_stmt): Set type and NULL_STMT.
30695 (gnat_expand_stmt): Make recursize call instead of calling
30697 (gnat_expand_stmt, case DECL_STMT): New case.
30698 (set_lineno_from_sloc): Do nothing if global.
30699 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30700 (start_block_stmt, add_stmt, end_block_stmt): New functions.
30701 (build_block_stmt): Call them.
30702 (gnat_to_code): Don't expand NULL_STMT.
30703 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30705 (tree_transform): Likewise.
30706 (tree_transform, case N_Null_Statement): Return NULL_STMT.
30707 (gnat_expand_stmt, case NULL_STMT): New case.
30708 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30711 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30714 * utils.c (create_var_decl): Do not call expand_decl or
30716 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30717 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30719 (struct e_stack): Add chain_next to GTY.
30720 (struct binding_level): Deleted.
30721 (struct ada_binding_level): New struct.
30722 (free_block_chain): New.
30723 (global_binding_level, clear_binding_level): Deleted.
30724 (global_bindings_p): Rework to see if no chain.
30725 (kept_level_p, set_block): Deleted.
30726 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30727 new data structure and work directly on BLOCK node.
30728 (gnat_poplevel): Similarly.
30729 (get_decls): Look at BLOCK_VARS.
30730 (insert_block): Work directly on BLOCK node.
30731 (block_has_var): New function.
30732 (pushdecl): Rework for new binding structures.
30733 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30735 (build_subprog_body): Likewise.
30736 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30738 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30740 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30741 (DECL_STMT_VAR): Likewise.
30743 2004-05-17 Robert Dewar <dewar@gnat.com>
30745 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30748 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30749 of restriction synonyums by using
30750 Restrict.Process_Restriction_Synonyms.
30752 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30754 * s-restri.ads (Tasking_Allowed): Correct missing comment
30756 * s-rident.ads: Add entries for restriction synonyms
30758 * ali.adb: Fix some problems with badly formatted ALI files that can
30759 result in infinite loops.
30761 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30762 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30763 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30764 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30765 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30766 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30767 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30768 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30769 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30770 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30771 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30772 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30773 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30774 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30775 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30776 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30777 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30778 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30779 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30780 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30781 to Task_Id (minor cleanup).
30783 2004-05-17 Vincent Celier <celier@gnat.com>
30785 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30786 directory separator.
30788 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30789 project being extended, if Languages is not declared in extending
30792 2004-05-17 Javier Miranda <miranda@gnat.com>
30794 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30795 limited view of a visible sibling.
30797 2004-05-14 Robert Dewar <dewar@gnat.com>
30799 * gnat_ugn.texi: Minor change to -gnatS documentation
30801 * sprint.adb: Remove some instances of Assert (False) and for this
30802 purpose replace them by output of a ??? string.
30804 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30807 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30808 flag processing. This was suppressing required dependencies in
30809 No_Run_Time mode and is not needed since the binder does not generate
30810 references for things in libgnat anyway.
30812 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30815 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
30817 * gnat_ugn.texi: Document AIX-specific issue with initialization of
30820 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30821 action for the case of an actual parameter in an init proc call.
30823 2004-05-14 Ed Schonberg <schonberg@gnat.com>
30825 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30826 subtype, check visible entities in base type.
30828 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30829 actions if the object is a renaming.
30831 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30832 Check_Formal_Package_Instance, to determine more precisely when the
30833 formal and the actual denote the same entity.
30835 2004-05-14 Javier Miranda <miranda@gnat.com>
30837 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30839 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30840 corresponding to a private_with must be removed from visibility; it
30841 will be made visible later, just before we analyze the private part of
30843 (Check_Private_Child_Unit): Allow private_with clauses in public
30845 (Install_Siblings): Make visible the private entities of private-withed
30847 (Install_Withed_Unit): Do not install the private withed unit if we
30848 are compiling a package declaration and the Private_With_OK flag was
30849 not set by the caller. These declarations will be installed later,
30850 just before we analyze the private part of the package.
30852 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30853 during the evaluation of the expression that initializes the object,
30854 decorate it with the expected type to avoid cascade errors.
30857 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30858 subprogram we have to install the private_with clauses after its
30859 specification has been analyzed (as documented in AI-262.TXT).
30861 * sem_ch8.adb (Has_Private_With): New function. Determines if the
30862 current compilation unit has a private with on a given entity.
30863 (Find_Direct_Name): Detect the Beaujolais problem described in
30866 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30867 provides the functionality of the function Is_Ancestor that was
30868 previously available in sem_ch10. It has been renamed to avoid
30871 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30873 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30875 * utils.c (build_vms_descriptor): Use SImode pointers.
30877 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
30879 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30881 2004-05-14 GNAT Script <nobody@gnat.com>
30883 * Make-lang.in: Makefile automatically updated
30885 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
30887 Renaming of target specific files for clarity
30889 * Makefile.in: Rename GNAT target specific files.
30891 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
30892 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
30893 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
30894 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
30895 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
30896 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
30897 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
30898 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
30899 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
30900 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
30901 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
30902 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
30903 51osinte.adb, 51osinte.ads, 51system.ads,
30904 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
30905 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
30906 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
30907 56tpopsp.adb, 57system.ads, 58system.ads,
30908 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
30909 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30910 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
30911 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
30912 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
30913 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30914 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
30915 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30916 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30917 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
30918 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
30919 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
30920 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
30921 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
30922 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
30923 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30924 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30925 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30926 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
30927 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
30928 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
30929 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
30930 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
30931 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30932 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
30933 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
30934 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30935 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
30936 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30937 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
30938 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
30939 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
30940 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
30941 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
30942 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
30943 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
30944 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
30945 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
30946 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
30947 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
30949 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
30950 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
30951 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
30952 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
30953 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
30954 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
30955 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
30956 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
30957 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
30958 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
30959 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
30960 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
30961 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
30962 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
30963 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
30964 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
30965 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
30966 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
30967 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
30968 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
30969 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
30970 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
30971 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
30972 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
30973 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
30974 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
30975 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
30976 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
30977 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
30978 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
30979 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
30980 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
30981 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
30982 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
30983 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
30984 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
30985 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
30986 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
30987 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
30988 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
30989 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
30990 s-osinte-vms.ads, s-osinte-vxworks.adb,
30991 s-osinte-vxworks.ads, s-osprim-mingw.adb,
30992 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
30993 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
30994 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
30995 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
30996 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
30997 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
30998 s-stchop-vxworks.adb, s-taprop-dummy.adb,
30999 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31000 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31001 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31002 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31003 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31004 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31005 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31006 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31007 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31008 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31009 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31010 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31011 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31012 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31013 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31014 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31015 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31016 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31017 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31018 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31019 system-irix-o32.ads, system-linux-x86_64.ads,
31020 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31021 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31022 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31023 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31024 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31025 system-vxworks-mips.ads, system-vxworks-ppc.ads,
31026 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31029 2004-05-13 Zack Weinberg <zack@codesourcery.com>
31031 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31033 2004-05-13 Diego Novillo <dnovillo@redhat.com>
31035 Merge from tree-ssa-20020619-branch.
31037 * config-lang.in (boot_language, build_by_default): Set
31039 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31040 (max_size): Add static chain op for call_expr.
31042 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
31045 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31047 2004-05-11 Roger Sayle <roger@eyesopen.com>
31049 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31052 2004-05-10 Doug Rupp <rupp@gnat.com>
31054 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31057 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31059 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31061 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31062 Fixes undefined symbols in IA64 gnatlib.
31064 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31066 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31067 Short_Address). This will be moved to system.auxdec.
31069 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
31071 * sem_util.adb: Replace test for presence of a node that is always
31072 present with a call to Discard_Node.
31074 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31075 Analyze on the library unit node after generation of distribution stub
31076 constructs. The call was a no-op because Unit_Node has already been
31077 Analyzed, and the tree fragments for the distribution stubs are
31078 analyzed as they are inserted in Exp_Dist.
31079 Update comment regarding to distribution stubs to reflect that we
31080 do not generate stub in separate files anymore.
31082 * einfo.ads: Clarify the fact that a tagged private type has the
31083 E_Record_Type_With_Private Ekind.
31085 * erroutc.adb: Minor reformatting
31087 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31088 values if line length is increased using -gnatyM (noticed during code
31091 * eval_fat.adb: Minor reformatting
31092 Put spaces around exponentiation operator
31094 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31097 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31098 has been rewritten as an explicit dereference, retrieve type of
31099 original node to check for possibly unconstrained record type.
31101 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31103 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31104 overriding, use the operation of the parent unconditionally.
31106 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31107 operation when either operand is a literal, to avoid further
31110 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31111 overridden by a previous explicit declaration, mark the previous entity
31114 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31115 Is_Visibly_Controlled, to determine whether a declaration of a
31116 primitive control operation for a derived type overrides an inherited
31117 one. Add warning if the explicit declaration does not override.
31119 2004-05-10 Vincent Celier <celier@gnat.com>
31121 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31122 some cases when the sources are no longer present.
31124 * make.adb (Collect_Arguments): Fail if an external source, not part
31125 of any project need to be compiled, when switch -x has not been
31128 * makeusg.adb: Document new switch -x
31130 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31131 defaulted to False.
31133 * switch-m.adb (Scan_Make_Switches): New switch -x
31135 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31136 gnatmake switch -x.
31138 * gnat_ugn.texi: Document new gnatmake switch -x
31140 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31142 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31144 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31145 (process_attributes): Likewise.
31147 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31149 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31151 2004-05-10 Robert Dewar <dewar@gnat.com>
31153 * gnat_ugn.texi: Document that for config pragma files, the maximum
31154 line length is always 32767.
31156 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31157 literals is now allowed.
31159 * gnat-style.texi: Remove statement about splitting long lines before
31160 an operator rather than after, since we do not follow this rule at all.
31161 Clarify rule (really lack of rule) for spaces around exponentiation
31163 * sem_elim.adb: Allow concatenation of string literals as well as a
31164 single string literal for pragma arguments.
31166 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31168 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31169 written for append case.
31171 * frontend.adb: Changes to avoid checking max line length in config
31174 * g-os_lib.ads: Minor reformatting
31176 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31177 wrong in any case. Instead use standard value. Noticed during code
31180 * opt.ads (Max_Line_Length): New field, used to implement removal of
31181 limitation on length of lines when scanning config pragma files.
31183 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31184 makeutl.ads, makeutl.adb: Minor reformatting
31186 * scn.adb: Do not check line length while scanning config pragma files
31187 Do not check line length while scanning out license information
31189 * scng.adb: Changes to avoid line length checks while parsing config
31192 2004-05-10 GNAT Script <nobody@gnat.com>
31194 * Make-lang.in: Makefile automatically updated
31196 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31198 * osint.adb (Find_Program_Name): Fix handling of VMS version
31201 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
31203 * g-os_lib.ads (Invalid_Time): New constant
31205 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31206 return OS_Time instead of time_t to match what is imported by Ada.
31207 Now return -1 if the file doesn't exist, instead of a random value
31209 2004-05-05 Robert Dewar <dewar@gnat.com>
31211 * usage.adb: Add line for -gnatR?s switch
31213 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31215 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31216 and for Match (Data_First, Data_last)
31218 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31219 written when we are dealing with multi-unit files.
31221 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
31223 * Makefile.in: Remove unused targets and variables.
31225 2004-05-05 Vincent Celier <celier@gnat.com>
31227 * switch-m.adb: New gnatmake switch -eI
31229 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31230 of new gnatmake switch -eInnn.
31232 * makegpr.adb: Take into account new parameters Index and Src_Index in
31235 * clean.adb: Implement support for multi-unit sources, including new
31238 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31241 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31242 (Extract_From_Q): New out parameter Index
31243 (Mark, Is_Marked): Subprograms moved to Makeutl
31244 (Switches_Of): New parameter Source_Index
31245 (Add_Switch): New parameter Index
31246 (Check): New parameter Source_Index
31247 (Collect_Arguments): New parameter Source_Index
31248 (Collect_Arguments_And_Compile): New parameter Source_Index
31249 (Compile): New parameter Source_Index
31250 Put subprograms in alphabetical order
31251 Add support for multi-source sources, including in project files.
31253 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31254 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31257 * makeusg.adb: New gnatmake switch -eInnn
31259 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31262 * opt.ads (Main_Index): New variable, defaulted to 0.
31264 * osint.ads, osinte.adb (Add_File): New parameter Index
31265 (Current_Source_Index): New function
31267 * prj.adb: Take into account new components Index and Src_Index
31269 * prj.ads (String_Element): New component Index
31270 (Variable_Value): New component Index
31271 (Array_Element): New component Src_Index
31273 * prj-attr.adb: Indicate that optional index may be specified for
31274 attributes Main, Executable, Spec, Body and some of Switches.
31276 * prj-attr.ads (Attribute_Kind): New values for optional indexes
31277 (Attribute_Record): New component Optional_Index
31279 * prj-com.ads (File_Name_Data): New component Index
31281 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31283 * prj-env.adb (Put): Output optional index
31285 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31286 attributes Spec and Body.
31288 * prj-nmsc.adb: Process optional indexes
31290 * prj-pp.adb: Ouput "at" for optional indexes
31292 * prj-proc.adb: Take into account optional indexes
31294 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31295 Optional_Index. For string literal,
31296 process optional index when Optional_Index is True.
31297 (Parse_Expresion): New Boolean parameter Optional_Index
31299 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31300 (Set_Source_Index_Of): New procedure
31302 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31305 * prj-util.ads (Executable_Of): New parameter Index
31306 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31307 New parameter Src_Index, defaulted to 0.
31309 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31312 * sem_ch3.adb (Access_Definition): If this is an access parameter
31313 whose designated type is imported through a limited_with clause, do
31314 not add the enclosing subprogram to the list of private dependents of
31317 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31320 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31321 a limited_with clause, and the other is its non-limited view.
31323 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
31325 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31327 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31328 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31329 Stand.Boolean_Literals to produce references to entities
31330 Standard_False and Standard_True from compile-time computed boolean
31333 * stand.ads (Boolean_Literals): New variable, provides the entity
31334 values for False and True, for use by the expander.
31336 2004-05-05 Doug Rupp <rupp@gnat.com>
31338 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31339 5vinmaop.adb: Unchecked convert Short_Address vice Address
31341 * adaint.c, raise.c: Caste CRTL function return value
31342 to avoid gcc error on 32/64 bit IVMS.
31344 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31347 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31349 * 5qsystem.ads (Address): Declare as Long_Integer
31350 (Short_Address): Declare as 32 bit subtype of Address
31351 Declare abstract address operations to avoid gratuitous ambiguities.
31353 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
31355 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31356 instead of the old Boolean_Entry_Barriers.
31357 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31359 2004-05-05 GNAT Script <nobody@gnat.com>
31361 * Make-lang.in: Makefile automatically updated
31363 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31365 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31367 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
31370 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31371 alone. Replacing object references by literals is inappropriate in a
31372 so low level context.
31374 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31376 * a-exexpr.adb: Add comments
31378 2004-05-03 Joel Brobecker <brobecker@gnat.com>
31380 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31381 declare the Ancestor_Tags array in Type_Specific_Data with a small size
31382 without risking a bounds check error when accessing one of its
31384 (Type_Specific_Data): Define Ancestor_Tags as a small array.
31385 This prevents us from hitting a limitation during the debug info
31386 generation when using stabs.
31388 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31390 This prevents us from hitting a limitation during the debug info
31391 generation when using stabs.
31393 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
31395 lang-specs.h: Remove -gnatz* from specs.
31397 2004-05-03 Vincent Celier <celier@gnat.com>
31399 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31401 * Make-lang.in, Makefile.in: Add gprmake
31403 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
31405 * sem_aggr.adb: Fix typo in comment.
31407 2004-05-03 Robert Dewar <dewar@gnat.com>
31409 * make.adb: Minor reformatting
31411 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31413 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31414 so that it works when address is not a private type.
31416 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31417 properly with rewritten unchecked conversions. This prevents
31418 order-of-elaboration issues that can otherwise arise.
31419 (Minimum_Size): Don't check size of access types under VMS
31421 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31422 interpretations of integer literals as type System.Address.
31424 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31425 (Is_Descendent_Of): New function
31427 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
31429 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31430 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31431 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31433 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31434 of the old Max_Entry_Queue_Depth.
31436 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31437 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31438 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31440 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31441 New entry for proper handling of Max_Entry_Queue_Depth.
31442 New entry for proper handling of No_Dynamic_Interrupts.
31444 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31445 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31446 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31447 the GNAT specific restriction Max_Entry_Queue_Depth.
31448 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31449 the GNAT specific restriction No_Dynamic_Interrupts.
31451 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31452 instead of the old Boolean_Entry_Barriers.
31453 Use the new restriction No_Dynamic_Attachment instead of the old
31454 No_Dynamic_Interrupts.
31456 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31457 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31459 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31460 of the old Max_Entry_Queue_Depth.
31462 2004-05-03 GNAT Script <nobody@gnat.com>
31464 * Make-lang.in: Makefile automatically updated
31466 2004-04-29 Ed Schonberg <schonberg@gnat.com>
31468 * checks.adb (Enable_Range_Check): If the prefix of an index component
31469 is an access to an unconstrained array, perform check unconditionally.
31471 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31473 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31476 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
31478 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31479 alternate stack setting. There was no support for the tasking cases
31480 and the changes eventually caused a number of side-effect failures in
31481 the non-tasking case too.
31483 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
31485 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31488 2004-04-29 Vincent Celier <celier@gnat.com>
31490 * make.adb (Gnatmake): Increase max size of argument array for
31491 gnatbind for the potential addition of -F.
31492 If there are Stand-Alone Library projects, invoke gnatbind with -F to
31493 be sure that elaboration flags will be checked.
31495 * switch-c.adb: Correct call to Scan_Pos for -gnateI
31497 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
31499 * sem_warn.adb (Check_References): Move '<access-variable> may be
31500 null' warning out of under Warn_On_No_Value_Assigned.
31502 2004-04-29 Ed Falis <falis@gnat.com>
31504 * gnat_ugn.texi: Fixed texi error
31506 2004-04-29 Robert Dewar <dewar@gnat.com>
31508 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31509 abstract operations if they come from predefined files.
31511 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31514 * s-addope.adb: Correct obvious error in mod function
31516 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
31518 * Makefile.in: Add target pairs for powerpc darwin*
31521 * a-intnam-darwin.ads, s-osinte-darwin.adb,
31522 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31524 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31526 * Makefile.in: Add target macro definitions for s390*-linux*.
31527 * system-linux-s390.ads: New file.
31528 * system-linux-s390x.ads: New file.
31530 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
31532 * gnat_ugn.texi: Correct argument to @setfilename.
31534 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31536 * a-exexpr.adb (Unwind_Word): New data type.
31537 (Unwind_Exception): Use it as type of Private1 and Private2.
31539 * raise.c (db_action_for): Fix debug printf.
31541 2004-04-27 Ed Schonberg <schonberg@gnat.com>
31543 * a-wtmoio.ads: Formal type must be a modular type, not a signed
31546 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31548 * decl.c (gnat_to_gnu_entity, case object): Call
31549 __builtin_update_setjmp_buf.
31551 * gigi.h (update_setjmp_buf): Deleted.
31552 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31554 * misc.c: (update_setjmp_buf): Deleted.
31556 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31557 around block of RTL.
31559 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31561 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
31563 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31564 subprogram for which no pragma All_Calls_Remote applies, store the
31565 address of the real subprogram in the underlying record type, so local
31566 dereferences do not go through the PCS.
31568 2004-04-26 Robert Dewar <dewar@gnat.com>
31570 * i-c.ads: Add some type qualifications to avoid ambiguities when
31571 compiling with s-auxdec.ads and a non-private address type.
31573 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
31575 * Makefile.rtl: Fix error in previous check-in:
31576 Add s-addope.o to non tasking object list (rather than tasking object
31579 2004-04-26 Javier Miranda <miranda@gnat.com>
31581 * sem_aggr.adb: Fix typo in comments
31582 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31583 Required to check the null-exclusion attribute.
31585 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31586 case of anonymous access types in record and array components. For a
31587 component definition the level is the same of the enclosing composite
31590 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31591 that are anonymous access types the level of accessibility depends on
31592 the enclosing type declaration. In order to have this information, set
31593 the scope of the anonymous access type to the enclosing record type
31595 (Array_Type_Declaration): In case of components that are anonymous
31596 access types the level of accessibility depends on the enclosing type
31597 declaration. In order to have this information, set the scope of the
31598 anonymous access type to the enclosing array type declaration.
31600 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31603 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31604 renaming of anonymous access-to-constant types allowed if and only if
31605 the renamed object is access-to-constant.
31607 * sem_util.adb (Type_Access_Level): In case of anonymous access types
31608 that are component_definition or discriminants of a nonlimited type,
31609 the level is the same as that of the enclosing component type.
31611 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
31613 * sem_elim.adb: Some minor code reorganization from code reading. Fix
31614 misprint in the function name (File_Name_Match).
31616 2004-04-23 Laurent Guerby <laurent@guerby.net>
31618 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31621 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31623 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31625 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
31627 * adaint.c (__gnat_try_lock): No longer requires that the parent
31628 directory be writable, the directory itself is enough.
31629 (gnat_is_absolute_path): Change profile, so that the call from
31630 GNAT.OS_Lib can be made more efficient.
31632 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31633 from GNAT.OS_Lib can be made more efficient.
31635 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31636 one copy of the file name. Found by code reading.
31638 2004-04-23 Vincent Celier <celier@gnat.com>
31640 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31641 Correct documentation on gnatmake switches transmitted to the compiler
31643 * ali.ads: Minor comment fix
31645 2004-04-23 Javier Miranda <miranda@gnat.com>
31647 * sem_ch6.adb: (Confirming Types): Code cleanup
31649 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31650 subprogram types: E_Anonymous_Access_Subprogram_Type and
31651 E_Anonymous_Access_Protected_Subprogram_Type.
31653 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
31655 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31656 whether a pragma All_Calls_Remote applies to the subprogram on which
31658 No functional change is introduced by this revision; the new parameter
31659 will be used to allow calls to local RCI subprograms to be optimized
31660 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31661 as is already done in the PolyORB implementation of the DSA.
31663 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31664 whether a pragma All_Calls_Remote applies to the subprogram on which
31666 No functional change is introduced by this revision; the new parameter
31667 will be used to allow calls to local RCI subprograms to be optimized
31668 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31669 as is already done in the PolyORB implementation of the DSA.
31671 2004-04-23 Robert Dewar <dewar@gnat.com>
31673 * Makefile.rtl: Add entry for s-addope.o in run time library list
31674 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31675 * s-addope.ads, s-addope.adb: New files.
31677 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31678 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31679 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31680 System.Address to be non-private and signed.
31682 * sem_elim.adb: Minor reformatting (fairly extensive)
31683 Some minor code reorganization from code reading
31684 Add a couple of ??? comments
31686 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31688 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31689 (tree_transform, case N_If_Statement): Remove non-determinism.
31691 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31693 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
31695 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31696 Eliminate' section.
31698 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31699 no longer used as a parameter name for Eliminate pragma).
31701 2004-04-22 Laurent Guerby <laurent@guerby.net>
31703 PR optimization/14984
31704 PR optimization/14985
31705 * trans.c (gigi): Fix non determinism leading to bootstrap
31706 comparison failures.
31708 2004-04-21 Pascal Obry <obry@gnat.com>
31710 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31711 passed to spawnvp() to properly handle program pathname with spaces on
31714 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
31716 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31717 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31718 unlocked in case of exceptions.
31720 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31722 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31723 This function does not exist anymore.
31725 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31727 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31729 * link.c: Move variables to the __gnat name space.
31731 * Makefile.in: list link.o explicitly when needed.
31733 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31735 2004-04-21 Javier Miranda <miranda@gnat.com>
31737 * einfo.adb (Original_Access_Type): New subprogram
31738 (Set_Original_Access_Type): New subprogram
31739 (Write_Field21_Name): Write the name of the new field
31741 * einfo.ads (Original_Access_Type): New field present in access to
31743 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31744 E_Anonymous_Access_Protected_Subprogram_Type.
31746 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31749 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31750 to anonymous access to subprogram types.
31752 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31753 to subprogram types.
31755 * sem_ch3.adb (Access_Definition): Complete decoration of entities
31756 corresponding to anonymous access to subprogram types.
31757 (Analyze_Component_Declaration): Add new actual to the call to
31758 subprogram replace_anonymous_access_to_protected_subprogram.
31759 (Array_Type_Declaration): Add new actual to the call to subprogram
31760 replace_anonymous_access_to_protected_subprogram.
31761 (Process_Discriminants): Add new actual to the call to subprogram
31762 replace_anonymous_access_to_protected_subprogram.
31763 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31765 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31768 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31769 access to subprogram types.
31771 * sem_util.adb (Has_Declarations): Addition of package_specification
31774 2004-04-21 Ed Schonberg <schonberg@gnat.com>
31776 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31777 inlined flags to renamed entity only if in current unit.
31779 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31781 * s-parint.ads: Add DSA implementation marker.
31783 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31784 value of System.Partition_Interface.DSA_Implementation to determine
31785 what version of the distributed systems annex is available (no
31786 implementation, GLADE, or PolyORB).
31788 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31790 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31792 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31794 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31795 with new type if alias sets differ.
31796 Fixes ACATS c41103b.
31798 2004-04-21 Vincent Celier <celier@gnat.com>
31800 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31801 Add array Lang_Args for the language specific compiling argument
31804 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31806 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
31808 * gnat_rm.texi: Update the descripton of the Eliminate pragma
31809 according to the recent changes in the format of the parameters of the
31810 pragma (replacing Homonym_Number with Source_Location).
31812 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
31814 * 5isystem.ads: Removed, unused.
31816 * gnat_rm.texi: Redo 1.13 change.
31818 2004-04-19 Robert Dewar <dewar@gnat.com>
31820 * s-stoele.ads: Clean up definition of Storage_Offset (the new
31821 definition is cleaner, avoids the kludge of explicit Standard operator
31822 references, and also is consistent with a visible System.Address with
31823 no visible operations.
31825 * s-geveop.adb: Add declarations to avoid assumption of visible
31826 operations on type System.Address (since these might not be available
31827 if Address is a non-private type for which the operations
31828 are made abstract).
31830 * sem_eval.adb: Minor reformatting
31832 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31833 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31834 reformatting (new function spec format).
31836 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31837 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31838 s-caun64.adb: Add declarations to avoid assumption of visible
31839 operations on type System.Address (since these might not be available
31840 if Address is a non-private type for which the operations are made
31843 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31845 * exp_intr.adb: Minor comment update
31847 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31849 * 5omastop.adb: Add declarations to avoid assumption of visible
31850 operations on type System.Address (since these might not be available
31851 if Address is a non-private type for which the operations
31852 are made abstract).
31854 2004-04-19 Vincent Celier <celier@gnat.com>
31856 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31858 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31861 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31863 Call Check with Process_Languages.
31864 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31865 with Process_Languages.
31866 (Recursive_Check): New Boolean parameter Process_Languages. Call
31867 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31870 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31872 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31873 parameter Ada_Main, defaulted to True.
31874 Check for Ada specific characteristics only when Ada_Main is True.
31876 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31878 * prj.adb: (Project_Empty): Add new Project_Data components.
31880 * prj.ads: New types and tables for non Ada languages.
31881 (Project_Data): New components Languages, Impl_Suffixes,
31882 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
31883 Include_Path, Include_Data_Set.
31885 * prj-env.ads, prj-env.adb: Minor reformatting
31887 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
31888 Put subprograms in alphabetical order
31890 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
31891 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
31894 * mlib-prj.adb: Back out modification in last version, as they are
31896 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
31898 * make.adb: (Mains): Moved to package Makeutl
31899 (Linker_Opts): Moved to package Makeutl
31900 (Is_External_Assignment): Moved to package Makeutl
31901 (Test_If_Relative_Path): Moved to package Makeutl
31902 (Gnatmake): Move sorting of linker options to function
31903 Makeutl.Linker_Options_Switches.
31905 * makeutl.ads, makeutl.adb: New files.
31907 * Makefile.in: Add makeutl.o to the object files for gnatmake
31909 * makeusg.adb: Add line for new switch -eL.
31911 * gnatls.adb (Image): New function.
31912 (Output_Unit): If in verbose mode, output the list of restrictions
31913 specified by pragmas Restrictions.
31915 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
31918 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
31919 needed, to put it in the range 1970 (included) - 2026 (excluded).
31920 (Time_Of): Do not shift Unix_Min_Year (1970).
31921 Shift the date by multiple of 56 years, if needed, to put it in the
31922 range 1970 (included) - 2026 (excluded).
31924 * adaint.h, adaint.c (__gnat_set_executable): New function.
31926 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31928 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
31929 and pop GC context.
31930 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
31931 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
31932 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
31933 (tree_transform, case N_Code_Statement): Likewise.
31934 (gnat_expand_stmt, case LABEL_STMT): Don't look at
31935 LABEL_STMT_FIRST_IN_EH.
31936 (gnat_expand_stmt, case ASM_STMT): New case.
31938 * utils2.c (build_unary_op): Properly set TREE_READONLY of
31939 UNCONSTRAINED_ARRAY_REF.
31941 * utils.c (poplevel): Temporarily push/pop GC context around inline
31942 function expansion.
31944 * decl.c (maybe_variable): Properly set TREE_READONLY of
31945 UNCONSTRAINED_ARRAY_REF.
31946 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
31948 * ada-tree.def: (ASM_STMT): New.
31950 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
31951 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
31952 ASM_STMT_INPUT): New.
31953 (ASM_STMT_CLOBBER): Likewise.
31955 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
31957 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
31958 general rcheck mechanism to raise Program_Error for E.4(18), instead
31959 of a custom raiser in System.Partition_Interface.
31960 Part of general cleanup work before PolyORB integration.
31962 * snames.ads, snames.adb: Add new runtime library entities and names
31965 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31967 (Build_Subprogram_Id): New subprogram provided by exp_dist
31968 Code reorganisation in preparation for PolyORB integration.
31970 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31972 (Build_Subprogram_Id): New subprogram provided by exp_dist
31974 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
31975 actual parameter types for call to dereference of an
31976 access-to-subprogram type.
31978 * rtsfind.ads: Add new runtime library entities and names for PolyORB
31981 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
31982 instead, which has the same behaviour here since we never pass it a
31985 * link.c (run_path_option, Solaris case): Use -Wl, as for other
31988 * Makefile.in: adjust object file lists for gnatlink and gnatmake
31989 to account for new dependency upon Interfaces.C.Strings + link.o
31990 For x86 FreeBSD, use 86numaux.
31992 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
31993 from Mlib.Tgt to Mlib.
31995 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
31996 target-independent.
31998 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
31999 target-specific versions of this subprogram, now implemented as a
32000 target-independent function in Mlib.
32002 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32003 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32004 (Linker_Library_Path_Option): Remove target-specific versions of this
32005 subprogram, now implemented as a target-independent function in Mlib.
32007 * atree.adb: (Allocate_Initialize_Node): New subprogram.
32008 Factors out node table slots allocation.
32009 (Fix_Parents): New subprogram.
32010 Encapsulate the pattern of fixing up parent pointers for syntactic
32011 children of a rewritten node.
32012 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32013 (Rewrite): Use New_Copy when creating saved copy of original node.
32014 (Replace): Use Copy_Node to copy nodes.
32016 2004-04-19 Javier Miranda <miranda@gnat.com>
32018 * sprint.adb (Sprint_Node_Actual): Give support to the new
32019 Access_To_Subprogram node available in Access_Definition nodes. In
32020 addition, give support to the AI-231 node fields: null-exclusion,
32021 all-present, constant-present.
32023 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32025 * sinfo.ads, sinfo.adb:
32026 New field Access_To_Subprogram_Definition in Access_Definition nodes
32028 * sem_ch6.adb (Process_Formals): Move here the code that creates and
32029 decorates internal subtype declaration corresponding to the
32030 null-excluding formal. This code was previously in Set_Actual_Subtypes.
32031 In addition, carry out some code cleanup on this code. In case of
32032 access to protected subprogram call
32033 Replace_Anonymous_Access_To_Protected_Subprogram.
32034 (Set_Actual_Subtypes): Code cleanup.
32036 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32037 Find_Type in case of anonymous access renamings. Add warning in case of
32038 null-excluding attribute used in anonymous access renaming.
32040 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32043 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32045 (Access_Definition): In case of anonymous access to subprograms call
32046 the corresponding semantic routine to decorate the node.
32047 (Access_Subprogram_Declaration): Addition of some comments indicating
32048 some code that probably should be added here. Detected by comparison
32049 with the access_definition subprogram.
32050 (Analyze_Component_Declaration): In case of access to protected
32051 subprogram call Replace_Anonymous_Access_To_Protected.
32052 (Array_Type_Declaration): In case of access to protected subprogram call
32053 Replace_Anonymous_Access_To_Protected_Subprogram.
32054 (Process_Discriminants): In case of access to protected subprogram call
32055 Replace_Anonymous_Access_To_Protected_Subprogram.
32057 * par.adb (P_Access_Definition): New formal that indicates if the
32058 null-exclusion part was present.
32059 (P_Access_Type_Definition): New formal that indicates if the caller has
32060 already parsed the null-excluding part.
32062 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32063 (P_Identifier_Declarations): Code cleanup and give support to renamings
32064 of anonymous access to subprogram types.
32065 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32066 (P_Array_Type_Definition): Give support to AI-254.
32067 (P_Component_Items): Give support to AI-254.
32068 (P_Access_Definition): New formal that indicates if the header was
32069 already parsed by the caller.
32070 (P_Access_Type_Definition): New formal that indicates if the caller has
32071 already parsed the null-excluding part.
32073 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32074 call to P_Access_Definition.
32076 2004-04-19 Geert Bosch <bosch@gnat.com>
32078 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32079 the delicate semantics of floating-point to integer conversion.
32080 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32082 * eval_fat.adb (Machine_Mantissa): Moved to spec.
32083 (Machine_Radix): New function.
32085 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32087 (Machine_Radix): New function also for use in conversion checks.
32089 2004-04-19 Ed Schonberg <schonberg@gnat.com>
32091 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32093 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32094 to decorate the access-to-protected subprogram and the equivalent type.
32096 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32097 to anonymous access to subprogram types.
32099 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32100 constant-folding, for legality checks in contexts that require an RM
32103 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32104 temporary but stack checking is not enabled, increment serial number
32105 to so that symbol generation is consistent with and without stack
32108 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32109 independent on whether stack checking is enabled, caller must check
32110 the corresponding flag.
32112 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32114 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32115 parent if it has discriminants.
32116 (Build_Derived_Private_Type): Constructed full view does
32117 not come from source.
32118 (Process_Discriminants): Default discriminants on a tagged type are
32119 legal if this is the internal completion of a private untagged
32122 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32123 no constraint checks, because it corresponds to an existing object.
32125 * sem_prag.adb (Process_Convention): Pragma applies
32126 only to subprograms in the same declarative part, i.e. the same unit,
32127 not the same scope.
32129 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32130 ignore type mismatch on a numeric conversion if expression comes from
32133 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32135 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32136 Homonym_Number parameter, add processing for Source_Location parameter
32138 (Check_Eliminated): Remove the check for homonym numbers, add the check
32139 for source location traces.
32141 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32142 with Arg_Source_Location corresponding to the changes in the format of
32145 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32146 Eliminate pragma corresponding to the changes in the format of the
32147 pragma: Homonym_Number is replaced with Source_Location, two ways of
32148 distinguishing homonyms are mutially-exclusive.
32150 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32152 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32154 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32155 No_Dollar_In_Label, no longer necessary, as it is always True.
32156 (Strip_Suffixes): Likewise.
32158 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32160 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32161 modulus for compatibility with size clause on targets with 16-bit
32164 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32165 full type to fix type mismatches on calls to size functions for
32166 discriminant-dependent array components.
32168 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32170 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32173 2004-04-19 Pascal Obry <obry@gnat.com>
32175 * mdll-utl.adb (Locate): New version is idempotent.
32177 2004-04-17 Laurent Guerby <laurent@guerby.net>
32179 PR ada/14988 (partial)
32180 * impunit.adb: Fix typo.
32182 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32184 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32185 and install-rts-cert targets. Remove all gnatlib and gnattools
32186 targets and all other rts-* targets (moved to libada). Remove (now)
32187 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32188 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32190 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32192 * trans.c (tree_transform): Shortcut returning error_mark_node for
32193 statements in annotate_only_mode.
32194 (tree_transform, case N_Label, case N_Return_Statement,
32195 N_Goto_Statement): Make statement tree instead of generating code.
32196 (tree_transform, case N_Assignment_Statement): No longer check
32197 type_annotate_only.
32198 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32200 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32202 (gnat_to_gnu): Collect any RTL generated and deal with it.
32203 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32204 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32205 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32207 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32209 * ada-tree.def (EXPR_STMT): Fix typo in name.
32210 (BLOCK_STMT, IF_STMT): New nodes.
32212 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32213 LABEL_STMT_FIRST_IN_EH): New macros.
32214 (RETURN_STMT_EXPR): Likewise.
32216 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32217 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32219 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32221 * atree.ads: Correct documentation on extended nodes.
32223 * link.c: Set run_path_option for FreeBSD.
32225 2004-04-08 Vincent Celier <celier@gnat.com>
32227 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32228 one of the ALI file, do not link with DEC lib.
32230 * par.adb Remove the last two characters ("%s" or "%b") when checking
32231 if a language defined unit may be recompiled.
32233 2004-04-08 Ed Schonberg <schonberg@gnat.com>
32235 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32236 removal of abstract operation leaves no possible interpretation for
32239 * sem_eval.adb (Eval_Qualified_Expression): Use
32240 Set_Raises_Constraint_Error on node when needed, so that it does not
32241 get optimized away by subsequent optimizations.
32243 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32244 operands even when they are not wrapped in a type conversion.
32246 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
32248 * sem_prag.adb (Set_Exported): Warn about making static as result of
32249 export only when the export is coming from source. This may be not
32250 be true e.g. on VMS where we expand export pragmas for exception codes
32251 together with imported or exported exceptions, and we don't want the
32252 user to be warned about something he didn't write.
32254 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32256 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32257 duplication between normal entities and those declared as renamings.
32258 No functional change.
32260 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32261 inline functions returning an unconstrained result.
32263 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
32265 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32266 conform to what other front-ends do.
32268 2004-04-08 Doug Rupp <rupp@gnat.com>
32270 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32273 2004-04-06 Pascal Obry <obry@gnat.com>
32275 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32277 * osint.adb (Program_Name): Do not look past a directory separator.
32279 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
32281 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32283 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32284 requirement for preserving a copy of the original assignment node.
32286 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32288 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
32290 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32293 2004-04-06 Ed Schonberg <schonberg@gnat.com>
32295 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32296 operator calls in functional notation, and apply
32297 Universal_Interpretation to operands, not to their type.
32299 2004-04-06 Robert Dewar <dewar@gnat.com>
32301 * 5wdirval.adb: Minor reformatting
32303 2004-04-06 Ed Falis <falis@gnat.com>
32305 * gnat_rm.texi: Improve a reference to the GCC manual
32307 2004-04-05 Vincent Celier <celier@gnat.com>
32309 * adaint.h, adaint.c: Add function __gnat_named_file_length
32311 * impunit.adb: Add Ada.Directories to the list
32313 * Makefile.in: Add VMS and Windows versions of
32314 Ada.Directories.Validity package body.
32316 * Makefile.rtl: Add a-direct and a-dirval
32318 * mlib-tgt.ads: Minor comment update.
32320 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32321 a-direct.ads, a-direct.adb: New files.
32323 2004-04-05 Vincent Celier <celier@gnat.com>
32326 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32327 just to the compiler.
32329 2004-04-05 Robert Dewar <dewar@gnat.com>
32331 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32332 returned string is 1.
32334 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32336 * eval_fat.ads: Minor reformatting
32338 * g-curexc.ads: Document that lower bound of returned string values
32341 * gnatlink.adb: Add ??? comment for previous change
32342 (need to document why this is VMS specific)
32344 * s-stoele.ads: Minor reformatting
32346 * tbuild.ads: Minor reformatting throughout (new function specs)
32348 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32351 * scng.adb: Minor reformatting
32353 2004-04-05 Geert Bosch <bosch@gnat.com>
32355 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32356 (Leading_Part): Still perform truncation to machine number if the
32357 specified radix_digits is greater or equal to machine_mantissa.
32359 2004-04-05 Javier Miranda <miranda@gnat.com>
32361 * par-ch3.adb: Complete documentation of previous change
32362 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32363 (aliased must appear before constant).
32365 * par-ch4.adb: Complete documentation of previous change.
32367 * par-ch6.adb: Complete documentation of previous change.
32369 * sinfo.ads: Fix typo in commment.
32371 2004-04-05 Ed Schonberg <schonberg@gnat.com>
32373 * sem_ch3.adb (Inherit_Components): If derived type is private and has
32374 stored discriminants, use its discriminants to constrain parent type,
32375 as is done for non-private derived record types.
32377 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32378 Ada 2005 AI-310: an abstract non-dispatching operation is not a
32379 candidate interpretation in an overloaded call.
32381 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32382 expression is Null and target type is not an access type (e.g. a
32383 non-private address type).
32385 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
32387 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32388 statement whose right-hand side is an inlined call, save a copy of the
32389 original assignment subtree to preserve enough consistency for
32390 Analyze_Assignment to proceed.
32392 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32393 complete assignment subtree which is now unnecessary, as the expansion
32394 of inlined call has been improved to preserve a consistent assignment
32395 tree. Note_Possible_Modification must be called only
32396 after checks have been applied, or else unnecessary checks will
32399 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32400 of explicit dereferences that do not Come_From_Source:
32401 - be selective on cases where we must go back to the dereferenced
32402 pointer (an assignment to an implicit dereference must not be
32403 recorded as modifying the pointer);
32404 - do not rely on Original_Node being present (Analyze_Assignment
32405 calls Note_Possible_Modification on a copied tree).
32407 * sem_warn.adb (Check_References): When an unset reference to a pointer
32408 that is never assigned is encountered, prefer '<pointer> may be null'
32409 warning over '<pointer> is never assigned a value'.
32411 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
32413 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32416 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
32418 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32419 libexc. We currently don't reference anything in this library and
32420 linking it in triggers linker warnings we don't want to see.
32422 * init.c: Update comments.
32424 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32426 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32427 * utils.c (create_field_decl): Likewise.
32428 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32430 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
32432 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32433 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32434 Add info directory entry and category.
32436 2004-04-02 Jan Hubicka <jh@suse.cz>
32438 * utils.c: Include function.h
32439 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32441 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32444 * Make-lang.in: Clean up generation of documentation
32446 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32448 * xgnatug.adb: Removed, replaced by xgnatugn.adb
32450 * xgnatugn.adb: Replaces xgnatug.adb
32452 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32454 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32456 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32457 gnat_ug_wnt.texi: Removed.
32459 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32461 * utils2.c: Update copyright notice.
32463 2004-04-01 Robert Dewar <dewar@gnat.com>
32465 * checks.adb: Minor reformatting throughout
32466 Note that prev checkin added RM reference to alignment warning
32468 2004-04-01 Ed Schonberg <schonberg@gnat.com>
32470 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32471 non-static when building aggregate for bit-packed array.
32473 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32474 function call that is itself the actual in a procedure call, build
32477 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32478 a string literal, create a temporary for it, constant folding only
32479 handles scalars here.
32481 2004-04-01 Vincent Celier <celier@gnat.com>
32483 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32484 Error_Msg_SP): New empty procedures to instantiate the Scanner.
32485 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32487 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32488 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32489 and get the checksum.
32491 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32493 Increase the Marking_Label at the end of the Multiple_Main_Loop,
32494 instead of at the beginning.
32496 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32498 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32501 * osint.ads (Multi_Unit_Index_Character): New Character global variable
32503 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32506 * par.adb: Remove test on file name to detect language defined units.
32507 Add test on unit name, after parsing, to detect language defined units
32508 that are not compiled with -gnatg (except System.RPC and its children)
32510 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32511 following units without style checking.
32513 * switch-c.adb: Change -gnatC to -gnateI
32515 * usage.adb: Document new switch -gnateInnn
32517 * scng.adb (Accumulate_Token_Checksum): New procedure
32518 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32519 word or literal number.
32520 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32523 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
32526 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32527 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32528 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32529 5vtpopde.adb: Add missing 'constant' keywords.
32531 2004-04-01 Javier Miranda <miranda@gnat.com>
32533 * par-ch4.adb: (P_Allocator): Code cleanup
32535 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32538 * sinfo.ads: Complete documentation of previous change
32540 2004-04-01 Pascal Obry <obry@gnat.com>
32542 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32543 only on VMS. This special handling was done because an old GNU/ld bug
32544 on Windows which has been fixed.
32546 2004-04-01 GNAT Script <nobody@gnat.com>
32548 * Make-lang.in: Makefile automatically updated
32550 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32552 * decl.c (gnat_to_gnu_entity, make_type_from_size):
32553 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32554 * trans.c (tree_transform, convert_with_check): Likewise.
32555 * utils.c (gnat_signed_or_unsigned_type): Likewise.
32556 (build_vms_descriptor, unchecked_convert): Likewise.
32557 * utils2.c (nonbinary_modular_operation): Likewise.
32559 2004-03-29 Javier Miranda <miranda@gnat.com>
32561 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32562 (Install_Null_Excluding_Check): Local subprogram that determines whether
32563 an access node requires a runtime access check and if so inserts the
32564 appropriate run-time check.
32565 (Apply_Access_Check): Call Install_Null_Excluding check if required
32566 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32568 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32570 * einfo.ads: Fix typo in comment
32572 * exp_ch3.adb (Build_Assignment): Generate conversion to the
32573 null-excluding type to force the corresponding run-time check.
32574 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32575 type to force the corresponding run-time check.
32577 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32578 the null-excluding type to force the corresponding run-time check.
32580 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32581 case of access types unless they have the null-excluding attribute.
32583 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32586 * exp_util.ads: Fix typo in comment
32588 * par.adb (P_Null_Exclusion): New subprogram
32589 (P_Subtype_Indication): New formal that indicates if the null-excluding
32590 part has been scanned-out and it was present
32592 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32594 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32595 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32596 type to force the corresponding run-time check
32597 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32599 (Resolve_Array_Aggregate): Carry out some static checks
32600 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32602 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32603 attribute must be set only if specified by means of the null-excluding
32604 part. In addition, we must also propagate the access-constant attribute
32606 (Access_Subprogram_Declaration, Access_Type_Declaration,
32607 Analyze_Component_Declaration, Analyze_Object_Declaration,
32608 Array_Type_Declaration, Process_Discriminants,
32609 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32610 and carry out some static checks.
32611 (Build_Derived_Access_Type): Set the null-excluding attribute
32612 (Derived_Type_Declaration, Process_Subtype): Carry out some static
32615 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32617 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32619 * sem_ch6.adb (Process_Formals): Carry out some static checks.
32620 (Set_Actual_Subtypes): Generate null-excluding subtype if the
32621 null-excluding part was present; it is not required to be done here in
32622 case of anonymous access types.
32623 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32626 * sem_res.adb (Resolve_Actuals): Carry out some static check
32627 (Resolve_Null): Allow null in anonymous access
32629 * sinfo.adb: New subprogram Null_Exclusion_Present
32630 All_Present and Constant_Present available on access_definition nodes
32632 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32633 object_declaration, derived_type_definition, component_definition,
32634 discriminant_specification, access_to_object_definition,
32635 access_function_definition, allocator, access_procedure_definition,
32636 access_definition, parameter_specification, All_Present and
32637 Constant_Present flags available on access_definition nodes.
32639 2004-03-29 Robert Dewar <dewar@gnat.com>
32641 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32642 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32643 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32644 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32645 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32646 sem_prag.adb: Updates to handle multiple units/file
32648 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32650 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32651 sem_util.adb: Minor reformatting
32653 * sem_ch12.adb: Add comment for previous change
32655 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
32657 * osint.adb (Executable_Prefix): Set Exec_Name to the current
32658 executable name when not initialized. Otherwise, use its current value.
32660 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32661 initialize it to another executable name than the current one. This
32662 allows to configure paths for an executable name (gnatmake) different
32663 from the current one (gnatdist).
32665 2004-03-29 Ed Schonberg <schonberg@gnat.com>
32667 * exp_ch6.adb (Expand_Call): A call to a function declared in the
32668 current unit cannot be inlined if it appears in the body of a withed
32669 unit, to avoid order of elaboration problems in gigi.
32671 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32672 information for protected (wrapper) operation as well, to simplify gdb
32675 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32676 protected body, indicate that the entity for the generated spec comes
32677 from source, to ensure that references are properly generated for it.
32678 (Build_Body_To_Inline): Do not inline a function that returns a
32681 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32682 apply convention to homonyms that are declared explicitly.
32684 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32685 that renames an equality operator and the operands are overloaded,
32686 resolve them with the declared formal types, before rewriting as an
32689 2004-03-29 GNAT Script <nobody@gnat.com>
32691 * Make-lang.in: Makefile automatically updated
32693 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32695 * memtrack.adb: Log realloc calls, which are treated as free followed
32698 2004-03-25 Vincent Celier <celier@gnat.com>
32700 * prj-makr.adb (Process_Directories): Detect when a file contains
32701 several units. Do not include such files in the config pragmas or
32702 in the naming scheme.
32704 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32705 Resolve links only when not in Trusted_Mode.
32706 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32707 Do not resolve links for the display names.
32709 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32710 resolve links when computing the display names.
32712 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
32714 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32715 attribute reference does not denote a subtype, it can be any
32716 expression that has a classwide type, potentially after an implicit
32717 dereference. In particular, the prefix can be a view conversion for
32718 a classwide type (for which Is_Object_Reference holds), but it can
32719 also be a value conversion for an access-to-classwide type. In the
32720 latter case, there is an implicit dereference, and the original node
32721 for the prefix does not verify Is_Object_Reference.
32723 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32724 conversion of a discriminant-dependent component of a mutable object
32727 2004-03-25 Ed Schonberg <schonberg@gnat.com>
32729 * freeze.adb (Freeze_Entity): When an inherited subprogram is
32730 inherited, has convention C, and has unconstrained array parameters,
32731 place the corresponding warning on the derived type declaration rather
32732 than the original subprogram.
32734 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32735 indication on renaming declaration, if formal has a box and actual
32738 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32739 determine whether to generate an implicit or explicit reference to
32740 the renamed entity.
32742 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32743 subprogram renaming comes from a defaulted formal subprogram in an
32746 2004-03-25 Gary Dismukes <dismukes@gnat.com>
32748 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32749 value expressions to ensure that calls within a component definition
32750 will be checked (since those are evaluated during the record type's
32753 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
32755 * s-tpobop.adb: Code clean up:
32756 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32758 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32760 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
32762 * Makefile.in: Clean up in the ravenscar run time.
32764 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32766 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32767 of No_Strict_Aliasing to build_pointer_type_for_mode.
32768 * utils.c (update_pointer_to): Walk pointer and ref chains.
32770 2004-03-22 Cyrille Comar <comar@act-europe.fr>
32772 * ali.ads: Fix Comment about Dynamic_Elab.
32774 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32775 Has_RACW, Is_Generic, etc.)
32776 (Output_Object, Gnatls): Take into account ALI files not attached to
32779 2004-03-22 Vincent Celier <celier@gnat.com>
32781 * gprep.adb: Change all String_Access to Name_Id
32782 (Is_ASCII_Letter): new function
32783 (Double_File_Name_Buffer): New procedure
32784 (Preprocess_Infile_Name): New procedure
32785 (Process_Files): New procedure
32786 (Gnatprep): Check if output and input are existing directories.
32787 Call Process_Files to do the real job.
32789 2004-03-22 Robert Dewar <dewar@gnat.com>
32791 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32792 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32794 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
32796 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32797 case when the source contains only comments.
32799 2004-03-22 Ed Schonberg <schonberg@gnat.com>
32801 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32802 declaration for a child subprogram body that acts as a spec, indicate
32803 that the entity in the declaration needs debugging information.
32805 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32806 full view if the subtype is created for a constrained record component;
32807 gigi has enough information to construct the record, and there is no
32808 place in the tree for the declaration.
32810 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32811 serial number for the dummy body that is built for analysis, to avoid
32812 inconsistencies in the generation of internal names when compiling
32815 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
32817 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32820 2004-03-22 GNAT Script <nobody@gnat.com>
32822 * Make-lang.in: Makefile automatically updated
32824 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32826 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32827 * trans.c (tree_transform, emit_index_check): Likewise.
32828 * utils.c (build_template): Likewise.
32829 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32830 (maybe_unconstrained_array, unchecked_convert): Likewise.
32831 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32832 (build_unary_op): Likewise.
32833 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32834 (fill_vms_descriptor): Likewise.
32835 (build_call_alloc_dealloc): Likewise.
32837 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32839 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
32842 * gnat_ug.texi: Add info directory category and entry.
32843 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32844 gnat_ug_wnt.texi: Regenerate.
32846 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
32848 * ada-tree.h: Update copyright notice.
32849 Minor reformatting.
32851 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
32853 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32854 as regular exception objects and not as mere integers representing the
32855 condition code. The latter approach required some dynamics to mask off
32856 severity bits, which did not fit well into the GCC table based model.
32857 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32858 exception data objects. We don't it and it would conflict with the other
32859 external symbol we have to generate for such exceptions.
32861 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32862 the special code for VMS exceptions, since these are now represented
32863 as regular exceptions objects.
32865 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32867 * decl.c (debug_no_type_hash): Remove.
32868 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32869 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32871 2004-03-19 Laurent Guerby <laurent@guerby.net>
32873 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32874 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32876 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32878 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32879 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32880 (TYPE_RM_SIZE_INT): Directly use type.values.
32881 (TREE_LOOP_ID): Clean up check.
32882 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
32883 TYPE_VALUES, not TYPE_FIELDS.
32884 * trans.c (convert_with_check): Delay access of bounds of basetype
32885 until sure is numeric.
32887 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
32889 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
32892 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
32893 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
32894 Specific.Set instead of direct call to e.g pthread_setspecific.
32896 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
32898 * adaint.c: Update comments.
32900 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
32901 GNATLIB_SHARED for FreeBSD.
32903 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
32905 * init.c [VxWorks]: Do not fix the stack size for the environment task.
32906 When needed (stack checking) the stack size is retrieved
32907 from the VxWorks kernel.
32909 * Makefile.in: Flag -nostdinc is required when building the run time
32910 for avoiding looking for files in the base compiler.
32911 Add the VxWorks specific version of the package body for
32912 System.Stack_checking.Operations (5zstchop.adb).
32914 * Make-lang.in: Add the object file for
32915 System.Stack_Checking.Operations.
32917 * Makefile.rtl: Add object file for the package
32918 System.Stack_Checking.Operations.
32920 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
32922 * s-stache.ads, s-stache.adb: Move the operations related to stack
32923 checking from this package to package System.Stack_Checking.Operations.
32924 This way, stack checking operations are only linked in the final
32925 executable when using the -fstack-check flag.
32927 2004-03-18 Doug Rupp <rupp@gnat.com>
32929 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
32932 * 5qsystem.ads, 5xcrtl.ads: New files.
32934 2004-03-18 Vincent Celier <celier@gnat.com>
32936 * prj.adb (Reset): Reset hash table Files_Htable
32938 * prj-env.adb (Source_Paths, Object_Paths): New tables.
32939 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
32940 the procedures Add_To_Path_File.
32941 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
32942 making sure that each directory is present only once and, for object
32943 dirs, when a directory already present is added, the duplicate is
32944 removed and the directory is always put as the last in the table.
32945 Write the path files at the end of these accumulations.
32947 * prj-nmsc.adb (Record_Source): Add source file name in hash table
32948 Files_Htable for all sources.
32950 * prj-proc.adb (Process): Remove restrictions between not directly
32951 related extending projects.
32953 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
32955 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
32956 (Find_Sources): Minor speed optimization.
32958 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
32959 parameter Trusted_Mode.
32961 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
32963 * scn.adb (Determine_License): Take into account a degenerated case
32964 when the source contains only comments.
32966 2004-03-18 Ed Schonberg <schonberg@gnat.com>
32968 * sem_warn.adb (Check_References): For a warning on a selected
32969 component that does not come from source, locate an uninitialized
32970 component of the record type to produce a more precise error message.
32972 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
32974 * 3zsoccon.ads: Fix multicast options.
32976 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
32979 2004-03-15 Robert Dewar <dewar@gnat.com>
32981 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
32982 pragma used for a private type.
32984 * lib-xref.adb (Generate_Reference): Do not generate warning if
32985 reference is in a different unit from the pragma Unreferenced.
32987 * 5vtpopde.adb: Minor reformatting
32988 Fix casing of To_Task_ID
32990 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
32991 flag if we have an unchecked conversion to an access type in the same
32994 2004-03-15 Geert Bosch <bosch@gnat.com>
32996 * a-ngcoty.adb (Modulus): In alternate formula for large real or
32997 imaginary parts, use Double precision throughout.
32999 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33000 we want to be able to compile run-time with -gnata for testing, but
33001 this may also be instantiated in user code that is compiled with -gnata.
33003 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
33005 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33006 codes. Having a separate type for this is useful to enforce consistency
33007 throughout the various run-time units.
33008 (Exception_Data): Use Exception_Code for Import_Code.
33010 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33011 Natural and Integer in various places.
33012 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33013 with the severity bits masked off.
33014 (Register_VMS_Exception): Handle the additional exception data pointer
33017 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33018 component, now reflected by an exported accessor.
33019 (is_handled_by): New routine to compute whether the propagated
33020 occurrence matches some handler choice specification. Extracted out of
33021 get_action_description_for, and expanded to take care of the VMS
33023 (get_action_description_for): Use is_handled_by instead of an explicit
33024 complex condition to decide if the current choice at hand catches the
33025 propagated occurrence.
33027 * raise.h (Exception_Code): New type for C.
33029 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33030 System.Standard_Library.Exception_Code, to allow references from the
33031 pragma import/export expander.
33033 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33034 New accessors to allow easy access to GNAT exception data
33036 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33037 redundant Handled_By_Others component, helper for the personality
33038 routine which will now be able to call the appropriate exception data
33041 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33042 component of Standard_Exception_Type to be the closest possible to
33043 Exception_Code in System.Standard_Library, that we cannot get at this
33044 point. Expand a ??? comment to notify that this type node should
33045 probably be rewritten later on.
33047 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33048 registration call to include a pointer to the exception object in the
33051 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33052 instead of int and explicit bitmasks.
33054 2004-03-15 Vincent Celier <celier@gnat.com>
33056 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33057 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33059 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33060 longer needed now that it is in the spec of
33061 System.Tasking.Task_Attributes.
33063 * adaint.h, adaint.c: (__gnat_create_output_file): New function
33065 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33067 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33069 * make.adb (Gnatmake): Do not check the executable suffix; it is being
33070 taken care of in Scan_Make_Arg.
33071 (Scan_Make_Arg): Add the executable suffix only if the argument
33072 following -o, in canonical case, does not end with the executable
33073 suffix. When in verbose mode and executable file name does not end
33074 with executable suffix, output the executable name, in canonical case.
33076 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33077 to avoid warnings when instantiating Ada.Task_Attributes.
33080 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33081 in the correct order.
33083 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33084 redirect standard output and error to a file for the invocation of the
33085 compiler, then read the file.
33087 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33088 directory, instead of the Value.
33089 (Find_Source_Dirs): Remove useless code & comments.
33091 2004-03-15 Ed Schonberg <schonberg@gnat.com>
33093 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33094 tagged type is inherited, and the parent operation is not frozen yet,
33095 force generation of a freeze node for the inherited operation, so the
33096 corresponding dispatch entry is properly initialized.
33097 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33098 when looking for user-defined equality operation.
33100 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33101 boolean when locating primitive equality of tagged component.
33103 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33104 bit-aligned field and the right-hand side a string literal, introduce
33105 a temporary before expanding assignment into a loop.
33107 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33108 priority in full, to ensure that any expanded subepxressions of it are
33109 elaborated in the scope of the init_proc.
33111 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33112 after object declaration, skipping over code that may have been
33113 generated for validity checks.
33115 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33116 discriminants, ignore the known discriminants of its full view, if
33117 any, to check legality.
33119 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33120 component if type has unknown discriminants.
33121 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33122 null if type has unknown discriminants.
33124 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33125 for end label when present.
33127 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33128 temporary file, rather than an empty string.
33130 2004-03-15 Ed Falis <falis@gnat.com>
33132 * s-thread.adb: Removed, no longer used.
33134 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33136 * decl.c (target.h): Now include.
33137 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33138 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33139 (validate_size): For POINTER_TYPE, get smallest size permitted on
33142 * fe.h: Sort Einfo decls and add Set_Mechanism.
33144 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33145 (ada/decl.o): Depends on target.h.
33147 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33148 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33150 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33152 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33154 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33155 Insert_Dereference_Action when rewriting an implicit dereference into
33156 an explicit one, this will be taken care of during expansion of the
33157 explicit dereference.
33158 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33159 of non-packed slices, since the dereference action generated by
33160 expansion of the explicit dereference is needed in any case.
33161 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33162 analyze and resolve the rewritten explicit dereference so it is seen
33164 (Insert_Dereference_Action): This procedure is now called only for the
33165 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33166 dereferences that do not come from source (including explicit
33167 dereferences resulting from rewriting implicit ones), but do not
33168 recursively insert a check for the dereference nodes contained within
33170 (Insert_Dereference_Action): Clarify and correct comment.
33172 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33175 Move language detection to the top level.
33176 * config-lang.in: Build by default.
33178 2004-03-05 Robert Dewar <dewar@gnat.com>
33180 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33182 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33183 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33184 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33185 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33186 unchecked conversion to spec to avoid warnings.
33188 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33191 * 7stpopsp.adb: Correct casing in To_Task_ID call
33193 * a-strsea.ads, a-strsea.adb: Minor reformatting
33195 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33197 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33198 Adjust Max_Msg_Length to be clearly large enough.
33200 * fe.h: Define In_Same_Source_Unit
33202 * osint.adb: Add pragma Warnings Off to suppress warnings
33203 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33206 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33208 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33210 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33212 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33214 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33216 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33217 node. We now do generate them for gcc back end.
33219 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33222 * sinput-c.adb: Fix bad name in header.
33223 Add pragma Warnings Off to suppress aliasing warning.
33225 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33227 * snames.h, snames.ads, snames.adb: Add entry for pragma
33228 No_Strict_Aliasing.
33230 2004-03-05 Vincent Celier <celier@gnat.com>
33232 * prj-com.ads: Add hash table Files_Htable to check when a file name
33233 is already a source of another project.
33235 * prj-nmsc.adb (Record_Source): Before recording a new source, check
33236 if its file name is not already a source of another project. Report an
33239 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33240 source file name, call gnatpp with all the sources of the main project.
33242 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33245 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33246 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33247 /RUNTIME_SYSTEM=, converted to --RTS=
33248 /NOTABS, converted to -notabs
33250 2004-03-05 Pascal Obry <obry@gnat.com>
33252 * make.adb: Minor reformatting.
33254 2004-03-05 Ed Schonberg <schonberg@gnat.com>
33256 Part of implemention of AI-262.
33257 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33259 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33262 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33263 when component type is a partially constrained class-wide subtype.
33264 (Constrain_Discriminated_Type): If parent type has unknown
33265 discriminants, a constraint is illegal, even if full view has
33267 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33268 with unknown discriminants whose full view is a discriminated record.
33270 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33271 flag, to handle properly derivations of tagged types with unknown
33273 (Analyze_Package_Spec, Analyze_Package_Body): Install
33274 Private_With_Clauses before analyzing private part or body.
33276 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33277 Has_Discriminants can be true for a given type (documentation).
33279 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
33281 * s-restri.ads: Fix license (GPL->GMGPL).
33283 * s-tassta.adb: Minor reformatting.
33285 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33286 by calls to Exit_One_ATC_Level, since additional clean up is performed
33289 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33290 by calls to Exit_One_ATC_Level, since additional clean up is performed
33293 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33295 * trans.c: Reflect GCC changes to fix bootstrap problem.
33296 Add warning for suspicious aliasing unchecked conversion.
33298 2004-03-05 GNAT Script <nobody@gnat.com>
33300 * Make-lang.in: Makefile automatically updated
33302 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
33304 * ali.adb (Read_Instantiation_Instance): Do not modify the
33305 current_file_num when reading information about instantiations, since
33306 this corrupts files in later references.
33308 2004-03-02 Vincent Celier <celier@gnat.com>
33310 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33311 before checking if it is read-only.
33313 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33314 of SRC_DIRS and eliminate duplicates.
33316 * gprcmd.adb: Replace command "path" with command "path_sep" to return
33317 the path separator.
33318 (Usage): Document path_sep
33320 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33321 C++ compiler. No need for a script.
33322 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33323 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33326 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33327 where there are Ada sources.
33328 (Set_Ada_Paths): Only add to the include path the source dirs of project
33330 (Add_To_Path): Add the Display_Values of the directories, not their
33333 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33336 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33338 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33339 Value is canonicalized.
33340 (Language_Independent_Check): Do not copy Value to Display_Value when
33341 canonicalizing Value.
33343 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33344 path to find limited with cycles.
33345 (Parse_Single_Project): Use canonical cased path to find the end of a
33348 2004-03-02 Ed Schonberg <schonberg@gnat.com>
33350 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33351 and not a child unit.
33353 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33354 appear in a with_clause.
33356 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33357 only happen in type_annotate mode, do not try to elaborate it.
33359 * exp_util.adb (Force_Evaluation): If expression is a selected
33360 component on the left of an assignment, use a renaming rather than a
33361 temporary to remove side effects.
33363 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33364 inlined instance body, which is analyzed before the end of the
33367 2004-03-02 Robert Dewar <dewar@gnat.com>
33369 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33370 sem_ch4.adb: Use new feature for substitution of keywords in VMS
33372 * errout.ads, errout.adb: Implement new circuit for substitution of
33375 * sem_case.adb (Analyze_Choices): Place message properly when case is
33376 a subtype reference rather than an explicit range.
33378 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33380 2004-03-02 Doug Rupp <rupp@gnat.com>
33382 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33384 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
33386 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33388 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33390 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33393 2004-02-25 Robert Dewar <dewar@gnat.com>
33395 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33396 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33397 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33398 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33399 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33400 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33401 the defining instance of the type to avoid aliasing problems.
33402 Fix copyright header. Fix bad comments in package header.
33404 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33406 2004-02-25 Ed Schonberg <schonberg@gnat.com>
33408 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33409 rewritten as references when aliased through an address clause.
33411 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33412 whether call can be interpreted as an indirect call to the result of a
33413 parameterless function call returning an access subprogram.
33415 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
33418 * exp_ch7.adb (Make_Clean): Remove generation of calls to
33419 Unlock[_Entries], since this is now done by Service_Entries directly.
33421 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33423 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33424 Requeue_Call for better code readability. Change spec and update calls:
33425 PO_Service_Entries now unlock the PO on exit.
33426 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33427 PO_Service_Entries.
33429 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33431 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33433 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
33435 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33436 protected subprogram call and analyzing the result of such expanding
33437 in case when the called protected subprogram is eliminated.
33439 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33442 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
33444 * Makefile.in: Clean ups.
33446 2004-02-23 Ed Schonberg <schonberg@gnat.com>
33448 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33449 protected operations if original subprogram is flagged as eliminated.
33450 (Expand_N_Subprogram_Body): For a protected operation, create
33451 discriminals for next operation before checking whether the operation
33454 * exp_ch9.adb (Expand_N_Protected_Body,
33455 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33456 for internal protected operations if the original subprogram is
33459 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33460 declared in a single protected object.
33462 2004-02-23 Vincent Celier <celier@gnat.com>
33464 * prj-attr.adb: Make attribute Builder'Executable an associative array,
33465 case insensitive if file names are case insensitive, instead of a
33466 standard associative array.
33468 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33469 them as case insensitive on platforms where the file names are case
33472 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33473 project file has already been parsed that canonical path are compared.
33475 2004-02-23 Robert Dewar <dewar@gnat.com>
33477 * sinput-c.ads: Correct bad unit title in header
33479 * freeze.adb: Minor reformatting
33481 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33483 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33484 nonaddressable COMPONENT_REF that is removing padding that we are
33485 taking the address of, take the address of the padded record instead
33486 if item is variable size.
33488 2004-02-20 Robert Dewar <dewar@gnat.com>
33490 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33492 2004-02-20 Ed Schonberg <schonberg@gnat.com>
33494 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33495 itype references for the constrained designated type of a component
33496 whose base type is already frozen.
33498 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
33500 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33501 avoid GCC warnings.
33503 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
33505 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33506 identifier for a phantom package that rewrites the formal package
33507 declaration with a box. The Add semantic decorations for the defining
33508 identifier from the original node (that represents the formal package).
33510 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
33512 * Make-lang.in (ada/stamp-sdefault): Use the top level
33515 2004-02-19 Richard Henderson <rth@redhat.com>
33517 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33519 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
33521 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33522 Scan_ALI can be used for multiple ALI files without reinitializing
33525 2004-02-18 Robert Dewar <dewar@gnat.com>
33527 * debug.adb: Minor reformatting.
33529 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33531 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33532 to zero if there is an address clause.
33534 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
33536 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33538 2004-02-18 Gary Dismukes <dismukes@gnat.com>
33540 * layout.adb (Layout_Component_List): Revise generation of call to
33541 discriminant-checking function to pass selections of all of the type's
33542 discriminants rather than just the variant-controlling discriminant.
33544 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
33546 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33547 fail in the current setup and triggers spurious system error messages.
33548 Pretend it occurred and failed instead.
33550 2004-02-18 Vincent Celier <celier@gnat.com>
33552 * bld.adb: Mark FLDFLAGS as saved
33553 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33554 it is not the root project. Put each directory to be
33555 extended between double quotes to prevent it to be expanded on Windows.
33556 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33557 the project file. Set them back to their initial values if they have not
33558 been set in the project file.
33560 * gprcmd.adb: (Gprdebug, Debug): New global variables
33561 (Display_Command): New procedure
33562 (Usage): Document new command "linkopts"
33563 Call Display_Command when env var GPRDEBUG has the value "TRUE"
33564 Implement new command "linkopts"
33565 Remove quotes that may be around arguments for "extend"
33566 Always call Normalize_Pathname with arguments formatted for the platform
33568 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33569 Change @echo to @$(display) in target clean to be able to clean silently
33571 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33573 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33576 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33577 = Extending_All when current project is an extending all project.
33579 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33580 set to True only for LINK command, after Unix switch -o.
33581 (Process_Arguments): Set Output_File_Expected to True for LINK command
33582 after Unix switch -o. When Output_File_Expected is True, never add an
33583 extension to a file name.
33585 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33586 option file name, only to the --for-linker= switch.
33587 (Option_File_Name): If option file name do not end with ".opt", append
33590 2004-02-18 GNAT Script <nobody@gnat.com>
33592 * Make-lang.in: Makefile automatically updated
33594 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
33596 * Make-lang.in (stamp-sdefault): Do not depend on
33599 2004-02-12 Zack Weinberg <zack@codesourcery.com>
33601 * config-lang.in: Disable Ada by default until probe logic for
33602 a bootstrap Ada compiler can be moved to the top level configure
33605 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
33607 * decl.c (components_to_record): Don't claim that the internal fields
33608 we make to hold the variant parts are semantically addressable, because
33611 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33612 adjust the comment describing the modular type form when we can use it.
33613 (Install_PAT): Account for the Esiz renaming.
33615 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33616 sc_onstack context indication before raising the exception to which
33617 the signal is mapped. Allows better handling of later signals possibly
33618 triggered by the resumed user code if the exception is handled.
33620 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
33622 * 5zinit.adb: Removed, no longer used.
33624 2004-02-12 Robert Dewar <dewar@gnat.com>
33626 * ali.adb: Remove separating space between parameters on R line. Makes
33627 format consistent with format used by the binder for Set_Globals call.
33629 * atree.ads, atree.adb: Minor reformatting (new function header format)
33631 * bindgen.adb: Add Run-Time Globals documentation section containing
33632 detailed documentation of the globals passed from the binder file to
33635 * gnatls.adb: Minor reformatting
33637 * init.c (__gnat_set_globals): Add note pointing to documentation in
33640 * lib-writ.ads, lib-writ.adb: Remove separating space between
33641 parameters on R line.
33642 Makes format consistent with format used by the binder for Set_Globals
33645 * osint.ads: Add 2004 to copyright notice
33648 * snames.ads: Correct capitalization of FIFO_Within_Priorities
33649 Noticed during code reading, documentation issue only
33651 * usage.adb: Remove junk line for obsolete C switch
33652 Noticed during code reading
33654 2004-02-12 Vincent Celier <celier@gnat.com>
33656 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33657 extend for each directory, so that multiple /** directories are
33658 extended individually.
33659 (Recursive_Process): Set the default for LANGUAGES to ada
33661 * gprcmd.adb: Define new command "ignore", to do nothing.
33662 Implement new comment "path".
33664 * Makefile.generic: Suppress output when SILENT is set
33665 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33666 used, so that the correct compiler is invoked.
33667 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33668 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33670 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
33672 * Makefile.in: Clean ups and remove obsolete targets.
33674 2004-02-12 Ed Schonberg <schonberg@gnat.com>
33676 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33677 predicate declared in exp_util.
33679 * exp_util.adb: Add comments.
33681 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33682 visibility before compiling context of the subunit.
33684 * sem_res.adb (Check_Parameterless_Call): If the context expects a
33685 value but the name is a procedure, do not attempt to analyze as a call,
33686 in order to obtain more telling diagnostics.
33688 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33689 'Access on parameterless function calls.
33690 (Normalize_Actuals): For a parameterless function call with missing
33691 actuals, defer diagnostic until resolution of enclosing call.
33693 * sem_util.adb (Wrong_Type): If the context type is an access to
33694 subprogram and the expression is a procedure name, suggest a missing
33697 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
33698 Nathanael Nerode <neroden@gcc.gnu.org>
33702 Merge with libada-branch:
33703 * config-lang.in: Build libada only when ada is built.
33705 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33707 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33708 for a tagged type, verify that both formals have the same type.
33710 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33711 temporary when the formal is an in-parameter and the actual a possibly
33714 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33715 when expansion is disabled, to ensure proper name capture with
33716 overloaded literals. Condition can be of any boolean type, resolve
33719 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33720 renaming is for a formal subprogram with a default operator name, and
33721 there is a usable operator that is visible at the point of
33724 2004-02-09 Robert Dewar <dewar@gnat.com>
33726 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33727 rewrite to ignore errors in ali files, intended to allow tools downward
33728 compatibility with new versions of ali files.
33730 * ali.ads: Add new parameter Ignore_Errors
33732 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33733 duplicating the error message giving the file with restrictions.
33735 * debug.adb: Add debug flag I for gnatbind
33737 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33738 operators for the case where the operator is a defining operator.
33740 * exp_ch3.adb: Minor reformatting (new function spec format).
33742 * exp_ch4.adb: Add comment for previous change, and make minor
33743 adjustment to loop to always check for improper loop termination.
33744 Minor reformatting throughout (new function spec format).
33746 * gnatbind.adb: Implement -di debug flag for gnatbind
33748 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33750 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33752 * lib-load.adb: Fix bad assertion.
33753 Found by testing and code reading.
33754 Minor reformatting.
33756 * lib-load.ads: Minor reformatting.
33758 * lib-writ.adb: There is only one R line now.
33760 * lib-writ.ads: Add documentation on making downward compatible changes
33761 to ali files so old tools work with new ali files.
33762 There is only one R line now.
33763 Add documentation on format incompatibilities (with special GPS note)
33765 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33767 * par-load.adb: Minor reformatting
33769 * sem_ch8.adb: Fix to error message from last update
33770 Minor reformatting and restructuring of code from last update
33772 * par-prag.adb, snames.adb, snames.ads, snames.h,
33773 sem_prag.adb: Implement pragma Profile.
33775 * stylesw.adb: Implement -gnatyN switch to turn off all style check
33778 * usage.adb: Add line for -gnatyN switch
33780 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33782 2004-02-09 Albert Lee <lee@gnat.com>
33784 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33786 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33788 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33791 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33792 is nested in an instance that is not frozen yet, to avoid
33793 order-of-elaboration problems in gigi.
33795 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33796 body the attribute is legal.
33798 2004-02-09 Robert Dewar <dewar@gnat.com>
33800 * s-rident.ads: Minor comment correction
33802 * targparm.adb: Remove dependence on uintp completely. There was
33803 always a bug in Make in that it called Targparm before initializing
33804 the Uint package. The old code appeared to get away with this, but
33805 the new code did not! This caused an assertion error in gnatmake.
33807 * targparm.ads: Fix bad comment, restriction pragmas with parameters
33808 are indeed fully supported.
33810 2004-02-06 Alan Modra <amodra@bigpond.net.au>
33812 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33814 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
33816 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33817 with targetm.calls.promote_prototypes.
33819 2004-02-04 Robert Dewar <dewar@gnat.com>
33821 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33822 ali.ads, gprcmd.adb: Minor reformatting
33824 * bindgen.adb: Output restrictions string for new style restrictions
33827 * impunit.adb: Add s-rident.ads (System.Rident) and
33828 s-restri (System.Restrictions)
33830 * lib-writ.adb: Fix bug in writing restrictions string (last few
33833 * s-restri.ads, s-restri.adb: Change name Restrictions to
33834 Run_Time_Restrictions to avoid conflict with package name.
33835 Add circuit to read and acquire run time restrictions.
33837 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
33839 * restrict.ads, restrict.adb: Use the new restriction
33840 No_Task_Attributes_Package instead of the old No_Task_Attributes.
33842 * sem_prag.adb: No_Task_Attributes is a synonym of
33843 No_Task_Attributes_Package.
33845 * snames.ads, snames.adb: New entry for proper handling of
33846 No_Task_Attributes.
33848 * s-rident.ads: Adding restriction No_Task_Attributes_Package
33849 (AI-00249) that supersedes the GNAT specific restriction
33850 No_Task_Attributes.
33852 2004-02-04 Ed Schonberg <schonberg@gnat.com>
33855 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33856 body, an identifier may be wrapped in an unchecked conversion.
33858 2004-02-04 Vincent Celier <celier@gnat.com>
33860 * lib-writ.ads: Comment update for the W lines
33862 * bld.adb: (Expression): An empty string list is static
33864 * fname-uf.adb: Minor comment update
33866 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33868 * gnatbind.adb: Initialize Cumulative_Restrictions with the
33869 restrictions on the target.
33871 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
33873 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33876 2004-02-02 Arnaud Charlet <charlet@gnat.com>
33878 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33880 2004-02-02 Vincent Celier <celier@gnat.com>
33882 * gprcmd.adb (Check_Args): If condition is false, print the invoked
33883 comment before the usage.
33884 Gprcmd: Fail when command is not recognized.
33885 (Usage): Document command "prefix"
33887 * g-md5.adb (Digest): Process last block.
33888 (Update): Do not process last block. Store remaining characters and
33891 * g-md5.ads (Update): Document that several call to update are
33892 equivalent to one call with the concatenated string.
33893 (Context): Add fields to allow new Update behaviour.
33895 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
33896 defaulted to False.
33897 When May_Fail is True and no existing file can be found, return No_File.
33899 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
33902 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
33903 spec file name instead on the W line.
33905 2004-02-02 Robert Dewar <dewar@gnat.com>
33907 * ali.adb: Read and acquire info from new format restrictions lines
33909 * bcheck.adb: Add circuits for checking restrictions with parameters
33911 * bindgen.adb: Output dummy restrictions data
33912 To be changed later
33914 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33915 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
33916 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
33917 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
33918 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
33920 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
33921 the warning message on access to possibly uninitialized variable S)
33922 Minor changes for new restrictions handling.
33924 * gnatbind.adb: Minor reformatting
33925 Minor changes for new restrictions handling
33926 Move circuit for -r processing here from bcheck (cleaner)
33928 * gnatcmd.adb, gnatlink.adb: Minor reformatting
33930 * lib-writ.adb: Output new format restrictions lines
33932 * lib-writ.ads: Document new R format lines for new restrictions
33935 * s-restri.ads/adb: New files
33937 * Makefile.rtl: Add entry for s-restri.ads/adb
33939 * par-ch3.adb: Fix bad error messages starting with upper case letter
33942 * restrict.adb: Major rewrite throughout for new restrictions handling
33943 Major point is to handle restrictions with parameters
33945 * restrict.ads: Major changes in interface to handle restrictions with
33946 parameters. Also generally simplifies setting of restrictions.
33948 * snames.ads/adb: New entry for proper handling of No_Requeue
33950 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
33951 restriction counting.
33952 Other minor changes for new restrictions handling
33954 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
33955 Restriction_Warnings now allows full parameter notation
33956 Major rewrite of Restrictions for new restrictions handling
33958 2004-02-02 Javier Miranda <miranda@gnat.com>
33960 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
33961 syntax rule for object renaming declarations.
33962 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
33963 component definitions.
33965 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
33967 (Array_Type_Declaration): Give support to access components. In addition
33968 it was also modified to reflect the name of the object in anonymous
33969 array types. The old code did not take into account that it is possible
33970 to have an unconstrained anonymous array with an initial value.
33971 (Check_Or_Process_Discriminants): Allow access discriminant in
33973 (Process_Discriminants): Allow access discriminant in non-limited types
33974 Initialize the new Access_Definition field in N_Object_Renaming_Decl
33975 node. Change Ada0Y to Ada 0Y in comments
33977 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
33978 equality operators.
33979 Change Ada0Y to Ada 0Y in comments
33981 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
33982 renamings Change Ada0Y to Ada 0Y in comments
33984 * sem_type.adb (Find_Unique_Type): Give support to the equality
33985 operators for universal access types
33986 Change Ada0Y to Ada 0Y in comments
33988 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
33990 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
33992 (N_Object_Renaming_Declaration): Addition of Access_Definition field
33993 Change Ada0Y to Ada 0Y in comments
33995 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
33996 component definition and object renaming nodes
33997 Change Ada0Y to Ada 0Y in comments
33999 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
34001 * restrict.adb: Use the new restriction identifier
34002 No_Requeue_Statements instead of the old No_Requeue for defining the
34003 restricted profile.
34005 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34006 No_Requeue_Statements.
34008 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34009 that supersedes the GNAT specific restriction No_Requeue. The later is
34010 kept for backward compatibility.
34012 2004-02-02 Ed Schonberg <schonberg@gnat.com>
34014 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34015 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34016 pragma and fix incorrect ones.
34018 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34019 warning if the pragma is redundant.
34021 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
34023 * 5staprop.adb: Add missing 'constant' keywords.
34025 * Makefile.in: use consistent value for SYMLIB on
34026 platforms where libaddr2line is supported.
34028 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34030 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34033 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
34035 * init.c (__gnat_install_handler): Setup an alternate stack for signal
34036 handlers in the environment thread. This allows proper propagation of
34037 an exception on stack overflows in this thread even when the builtin
34038 ABI stack-checking scheme is used without support for a stack reserve
34041 * utils.c (create_field_decl): Augment the head comment about bitfield
34042 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34043 here, because the former is not accurate enough at this point.
34044 Let finish_record_type decide instead.
34045 Don't make a bitfield if the field is to be addressable.
34046 Always set a size for the field if the record is packed, to ensure the
34047 checks for bitfield creation are triggered.
34048 (finish_record_type): During last pass over the fields, clear
34049 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34050 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
34051 from DECL_BIT_FIELD.
34053 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
34055 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34056 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34057 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34059 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34061 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34063 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34064 (ZCX_By_Default): Likewise.
34065 (Front_End_ZCX_Support): Likewise.
34067 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34068 (Initialize_Lock): Mark Level unreferenced.
34069 (Sleep): Mark Reason unreferenced.
34070 (Timed_Sleep): Likewise.
34071 (Wakeup): Likewise.
34072 (Exit_Task): Use Result.
34073 (Check_No_Locks): Mark Self_ID unreferenced.
34075 * 5gtasinf.adb (New_Sproc): Make Attr constant.
34076 (Bound_Thread_Attributes): Make Sproc constant.
34077 (New_Bound_Thread_Attributes): Likewise.
34079 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34081 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34082 one-dimensional array an slice assignments, when component type is
34085 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34086 component type is controlled, and control_actions are in effect, use
34087 TSS procedure rather than generating inline code.
34089 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34090 arrays with controlled components.
34092 2004-01-26 Vincent Celier <celier@gnat.com>
34094 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34095 command line for the non VMS case.
34097 * gnatlink.adb (Process_Binder_File): When building object file, if
34098 GNU linker is used, put all object paths between quotes, to prevent ld
34099 error when there are unusual characters (such as '!') in the paths.
34101 * Makefile.generic: When there are sources in Ada and the main is in
34102 C/C++, invoke gnatmake with -B, instead of -z.
34104 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34105 from VMS_Conversion.
34106 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34107 specification of argument file on the command line.
34109 2004-01-26 Bernard Banner <banner@gnat.com>
34111 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34113 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34115 * snames.adb: Update copyright notice.
34116 Add info on slice assignment for controlled arrays.
34118 2004-01-23 Robert Dewar <dewar@gnat.com>
34120 * exp_aggr.adb: Minor reformatting
34122 * exp_ch9.adb: Minor code clean up
34124 Fix bad character in comment
34127 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34128 unexpected end of file, along with more detailed message.
34130 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34132 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34135 * decl.c (copy_alias_set): New function.
34136 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34138 2004-01-23 Doug Rupp <rupp@gnat.com>
34140 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34141 lib$${file} in case subsequent character is not a separator.
34143 2004-01-23 Vincent Celier <celier@gnat.com>
34145 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34146 when the GCC version is at least 3.
34148 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34149 Remove all "Opt.", to prepare for opt split
34151 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34152 Extends_All. Set to True when the project parsed is an extending all
34153 project. Fails for importing an extending all project only when the
34154 imported project is an extending all project.
34155 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34156 depending on the value of Extends_All returned.
34158 * prj-proc.adb (Process): Check that no project shares its object
34159 directory with a project that extends it, directly or indirectly,
34160 including a virtual project.
34161 Check that no project extended by another project shares its object
34162 directory with another also extended project.
34164 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34165 Kind = N_With_Clause
34167 * prj-tree.ads: Minor reformatting
34168 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34170 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34172 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34173 applies to a type with an incomplete view, use full view in Name of
34174 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34176 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34178 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34179 SCHED_RR, since other values are not supported by this policy.
34180 (Initialize): Move initialization of mutex attribute to package
34181 elaboration, to prevent early access to this variable.
34183 * Makefile.in: Remove mention of Makefile.adalib, unused.
34185 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34186 1ssecsta.ads: Removed, unused.
34188 2004-01-21 Javier Miranda <miranda@gnat.com>
34190 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34191 entity if already built in the current scope.
34193 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34194 reminder in internal scopes. Required for nested limited aggregates.
34196 2004-01-21 Doug Rupp <rupp@gnat.com>
34198 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34199 VMS. Replace all occurences of libgnat- and libgnarl- with
34200 libgnat$(hyphen) and libgnarl$(hyphen).
34201 Fixed shared library build problem on VMS.
34203 2004-01-21 Robert Dewar <dewar@gnat.com>
34205 * mlib-prj.adb: Minor reformatting
34207 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
34209 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34210 'constant' keywords for declaration of pointers that are not modified.
34212 * exp_pakd.adb: Fix English in comment.
34214 2004-01-21 Ed Schonberg <schonberg@gnat.com>
34217 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34218 copy all attributes of the parent, including the foreign language
34221 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
34224 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34225 for 'delay until' statement.
34227 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
34229 * Make-lang.in: Replace $(docdir) with doc.
34230 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34231 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34232 to use consistent MAKEINFO rule.
34233 (ada.man, ada.srcman): Dummy entry.
34234 (ADA_INFOFILES): Define.
34235 (ada.info, ada.srcinfo): New rules.
34237 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
34239 * utils.c: Update copyright notice, missed in previous change.
34241 2004-01-19 Vincent Celier <celier@gnat.com>
34243 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34244 args if Bind is True. Set First_ALI, if not already done.
34245 (Build_Library): For Stand Alone Libraries, extract from one ALI file
34246 an eventual --RTS switch, for gnatbind, and all backend switches +
34247 --RTS, for linking.
34249 2004-01-19 Robert Dewar <dewar@gnat.com>
34251 * sem_attr.adb, memtrack.adb: Minor reformatting
34253 2004-01-19 Ed Schonberg <schonberg@gnat.com>
34255 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34256 that rename enumeration literals. This is properly done in sem_eval.
34258 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34259 to functions that rename enumeration literals.
34261 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34262 functions that rename enumeration literals.
34264 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
34266 * Make-lang.in (utils.o): Depend on target.h.
34267 * utils.c: Include target.h.
34268 (process_attributes): Use targetm.have_named_sections instead
34269 of ASM_OUTPUT_SECTION_NAME.
34271 2004-01-16 Andreas Jaeger <aj@suse.de>
34273 * Makefile.in: Add $(DESTDIR).
34275 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
34277 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34278 also when not defining if a Size clause applies. That information is
34281 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
34283 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34284 symbolic links for the shared gnat run time when needed.
34286 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
34288 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34289 for writing, and terminate with an error message if not.
34291 2004-01-15 Ed Schonberg <schonberg@gnat.com>
34293 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34294 warning on an access to subprogram in an instance, when the target
34295 type is declared in the same generic unit.
34296 (Eval_Attribute): If 'access is known to fail accessibility check,
34297 rewrite as a raise statement.
34299 2004-01-15 GNAT Script <nobody@gnat.com>
34301 * Make-lang.in: Makefile automatically updated
34303 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
34305 * Make-lang.in (ada.srcextra): Dummy entry.
34307 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
34309 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34311 2004-01-13 Ed Schonberg <schonberg@gnat.com>
34313 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34314 components that are initialized with aggregates.
34316 2004-01-13 Vincent Celier <celier@gnat.com>
34318 * gnatlink.adb (Process_Binder_File): To find directory of shared
34319 libgcc, if "gcc-lib" is not a subdirectory, look for the last
34320 subdirectory "lib" in the path of the shared libgnat or libgnarl.
34322 * make.adb (Gnatmake): If GCC version is at least 3, link with
34323 -shared-libgcc, when there is at least one shared library project.
34325 * opt.ads (GCC_Version): New integer constant.
34327 * adaint.c (get_gcc_version): New function.
34329 2004-01-13 Robert Dewar <dewar@gnat.com>
34331 * sem_dist.adb, sem_res.adb, sem_util.adb,
34332 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34333 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34335 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
34337 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34338 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34341 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
34343 * misc.c: Remove trailing spaces.
34344 Update copyright notice missed in previous change.
34347 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34350 * Makefile.generic: Update copyright.
34351 Add license notice.
34353 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34354 of prefix/share/make.
34356 * Makefile.prolog: Update copyright.
34357 Add license notice.
34359 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
34361 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34362 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34363 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34366 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34369 2004-01-12 Javier Miranda <miranda@gnat.com>
34371 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34372 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34373 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34374 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34375 Component_Definition node.
34377 2004-01-12 Ed Falis <falis@gnat.com>
34379 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34381 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
34383 * link.c: Change default libgnat kind to STATIC for FreeBSD.
34385 2004-01-12 Bernard Banner <banner@gnat.com>
34387 * Makefile.in: map 86numaux to a-numaux for x86_64
34389 2004-01-12 Ed Schonberg <schonberg@gnat.com>
34391 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34392 generated to rename a generic actual, go to the actual itself, the
34393 subtype is not a user-visible entity.
34395 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34396 part is a private subtype, reset the visibility of its full view, if
34397 any, to be consistent.
34400 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34401 to use a generic package G as a formal package for another generic
34404 2004-01-12 Robert Dewar <dewar@gnat.com>
34406 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34408 * usage.adb: Remove mention of obsolete -gnatwb switch
34409 Noticed during code reading
34411 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
34413 * 1ssecsta.adb: Minor changes for -gnatwa warnings
34415 2004-01-12 GNAT Script <nobody@gnat.com>
34417 * Make-lang.in: Makefile automatically updated
34419 2004-01-09 Mark Mitchell <mark@codesourcery.com>
34421 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34423 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34425 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34427 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
34429 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34430 Update comment and copyright date.
34431 * stamp-xgnatug: Delete.
34433 2004-01-05 Robert Dewar <dewar@gnat.com>
34435 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34436 be modified by the binder generated main program if the -D switch is
34439 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34440 imported functions (since now we expect this to be done for imported
34443 * 5vtaprop.adb: Add several ??? for sections requiring more comments
34444 Minor reformatting throughout
34446 * 5zinit.adb: Minor reformatting
34447 Add 2004 to copyright date
34448 Minor changes to avoid -gnatwa warnings
34449 Correct some instances of using OR instead of OR ELSE (noted while
34450 doing reformatting)
34452 * sprint.adb: Minor updates to avoid -gnatwa warnings
34454 * s-secsta.ads, s-secsta.adb:
34455 (SS_Get_Max): New function to obtain high water mark for ss stack
34456 Default_Secondary_Stack is not a constant since it may be modified by
34457 the binder generated main program if the -D switch is used.
34459 * switch-b.adb: New -Dnnn switch for binder
34462 Make -gnatg imply all warnings currently in -gnatwa
34464 * vms_conv.adb: Minor reformatting
34465 Add 2004 to copyright notice
34466 Add 2004 to printed copyright notice
34468 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34469 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34470 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34471 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34472 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34473 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34474 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34475 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34476 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34477 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34478 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34479 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34480 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34481 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34482 checks.adb, clean.adb, cstand.adb, einfo.ads,
34483 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34484 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34485 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34486 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34487 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34488 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34489 Minor reformatting and code clean ups.
34490 Minor changes to prevent -gnatwa warnings
34492 * ali.adb: Minor reformatting and cleanup of code
34493 Acquire new SS indication of secondary stack use from ali files
34495 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34496 (since now we expect this to be done for imported functions)
34498 * bindgen.adb: Generate call to modify default secondary stack size if
34501 * bindusg.adb: Add line for new -D switch
34503 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34504 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34505 Add circuitry for both records and arrays to avoid gigi
34506 processing if the type involved has non-bit-aligned components
34508 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34509 N_String_Literal node always references an E_String_Literal_Subtype
34510 entity. This may not be true in the future.
34511 (Possible_Bit_Aligned_Component): Move processing of
34512 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34514 * exp_ch6.adb (Expand_Thread_Body): Pick up
34515 Default_Secondary_Stack_Size as variable so that we get value modified
34516 by possible -Dnnn binder parameter.
34518 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34519 (Type_May_Have_Bit_Aligned_Components): New function.
34521 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34522 (Type_May_Have_Bit_Aligned_Components): New function.
34524 * fe.h: (Set_Identifier_Casing): Fix prototype.
34525 Add declaration for Sem_Elim.Eliminate_Error_Msg.
34526 Minor reformatting.
34528 * freeze.adb (Freeze_Entity): Add RM reference to error message about
34529 importing constant atomic/volatile objects.
34530 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34531 unless explicit Pure_Function pragma given, to avoid insidious bug of
34532 call to non-pure imported function getting eliminated.
34534 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34535 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34536 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34537 Add 2004 to printed copyright notice
34539 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34542 * Makefile.rtl: Add entry for g-sestin.o
34543 g-sestin.ads: New file.
34545 * mdll.adb: Minor changes to avoid -gnatwa warnings
34547 * mlib-tgt.adb: Minor reformatting
34549 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34550 New switch Sec_Stack_Used (GNAT, GNATBIND)
34551 Make Default_Secondary_Stack_Size a variable instead of a constant,
34552 so that it can be modified by the new -Dnnn bind switch.
34554 * rtsfind.adb (Load_Fail): Give full error message in configurable
34555 run-time mode if all_errors mode is set. This was not done in the case
34556 of a file not found, which was an oversight.
34557 Note if secondary stack unit is used by compiler.
34559 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34560 ineffective elaborate all pragmas on non-visible packages (this
34561 happened when a renamed subprogram was called). Now the elaborate all
34562 always goes on the package containing the renaming rather than the one
34563 containing the renamed subprogram.
34565 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34566 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34568 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34569 has an Etype that references an E_String_Literal.
34570 (Eval_String_Literal): Avoid assumption that N_String_Literal node
34571 always references an E_String_Literal_Subtype entity. This may not
34572 be true in the future.
34574 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34577 * sem_res.adb (Resolve): Specialize msg for function name used in proc
34580 2004-01-05 Ed Falis <falis@gnat.com>
34582 * g-debuti.adb: Replaced direct boolean operator with short-circuit
34585 2004-01-05 Vincent Celier <celier@gnat.com>
34587 * bld.adb: Minor comment updates
34588 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34591 * make.adb (Gnatmake): Special process for files to compile/check when
34592 -B is specified. Fail when there are only foreign mains in attribute
34593 Main of the project file and -B is not specified. Do not skip bind/link
34594 steps when -B is specified.
34596 * makeusg.adb: Document new switch -B
34598 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34600 * switch-m.adb: (Scan_Make_Switches): Process -B switch
34602 * vms_data.ads: Add new GNAT PRETTY qualifier
34603 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34605 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34607 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34610 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34611 Set_Identifier_Casing.
34613 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34614 has size that overflows.
34616 2004-01-05 Gary Dismukes <dismukes@gnat.com>
34618 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34619 -gnatwa warning on static condition.
34621 2004-01-05 Doug Rupp <rupp@gnat.com>
34623 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34625 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
34627 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34628 all attributes, including read-only attribute.
34630 2004-01-05 Pascal Obry <obry@gnat.com>
34632 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34633 library naming scheme.
34635 * mlib-prj.adb (Build_Library): Generate different names for the static
34636 or dynamic version of the GNAT runtime. This is needed to support the
34637 new shared library naming scheme.
34638 (Process_Binder_File): Add detection of shared library in binder file
34639 based on the new naming scheme.
34641 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34642 scheme for the shared runtime libraries.
34645 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34647 (install-gnatlib): Do not create symlinks for shared libraries.
34648 (gnatlib-shared-default): Idem.
34649 (gnatlib-shared-dual-win32): New target. Not used for now as the
34650 auto-import feature does not support arrays/records.
34651 (gnatlib-shared-win32): Do not create copy for the shared libraries.
34652 (gnatlib-shared-vms): Fix shared runtime libraries names.
34654 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34655 dependent runtime shared library name.
34657 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
34659 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34662 2004-01-05 Ed Schonberg <schonberg@gnat.com>
34664 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34665 protected objects when allocator has a subtype indication, not a
34666 qualified expression. Note that qualified expressions may have to be
34667 checked when limited aggregates are implemented.
34669 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34670 pure, emit warning.
34671 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34672 subprogram is imported, remove warning.
34674 2004-01-05 Geert Bosch <bosch@gnat.com>
34676 * s-poosiz.adb: Update copyright notice.
34677 (Allocate): Use Task_Lock to protect against concurrent access.
34678 (Deallocate): Likewise.
34680 2004-01-05 Joel Brobecker <brobecker@gnat.com>
34682 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34685 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
34687 * gnat_ug.texi: Force a CVS commit by updating copyright.
34688 * gnat_ug_vxw.texi: Regenerate.
34689 * gnat_ug_wnt.texi: Regenerate.
34690 * gnat_ug_vms.texi: Regenerate.
34691 * gnat_ug_unx.texi: Regenerate.
34693 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
34695 * trans.c: Remove uses of "register" specifier in
34696 declarations of local variables.
34698 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
34700 * stamp-xgnatug: New stamp file.
34701 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
34702 (ada/doctools/xgnatug): Add $(build_exeext).
34703 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34704 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34706 2003-12-17 Ed Falis <falis@gnat.com>
34708 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34711 * a-exextr.adb: Add context clause for
34712 Ada.Exceptions.Last_Chance_Handler.
34714 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
34716 * cstand.adb (Create_Standard): Change the way how the declaration of
34717 the Duration type is created (making it the same way as it is for all
34718 the other standard types).
34720 2003-12-17 Robert Dewar <dewar@gnat.com>
34722 * s-crtl.ads: Fix header format
34723 Change Pure to Preelaborate
34725 2003-12-17 Ed Schonberg <schonberg@gnat.com>
34727 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34728 the expression type only if it is declared in the current unit.
34730 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34731 are universal and already analyzed, as can occur in constrained
34732 subcomponents that depend on discriminants, when one constraint is a
34735 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34736 type Any_Fixed is legal as the argument of a conversion, if only one
34737 fixed-point type is in context.
34739 2003-12-17 GNAT Script <nobody@gnat.com>
34741 * Make-lang.in: Makefile automatically updated
34743 2003-12-15 Robert Dewar <dewar@gnat.com>
34745 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34748 2003-12-15 Vincent Celier <celier@gnat.com>
34750 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34751 (Gnatchop): Do not set failure status when reporting the number of
34754 2003-12-15 Doug Rupp <rupp@gnat.com>
34756 * s-ctrl.ads: New file.
34758 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34760 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34761 (GNATBIND_OBJS): Add ada/s-crtl.o.
34763 * Makefile.in [VMS]: Clean up ifeq rules.
34765 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34766 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34767 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34768 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34769 s-tasdeb.adb: Update copyright.
34770 Import System.CRTL.
34771 Make minor modifications to use System.CRTL declared functions instead
34772 of importing locally.
34774 2003-12-15 GNAT Script <nobody@gnat.com>
34776 * Make-lang.in: Makefile automatically updated
34778 2003-12-11 Ed Falis <falis@gnat.com>
34780 * 5zinit.adb: Clean up.
34782 * 5zintman.adb (Notify_Exception): replaced case statement with a call
34783 to __gnat_map_signal, imported from init.c to support
34784 signal -> exception mappings that depend on the vxWorks version.
34787 Created and exported __gnat_map_signal to support signal -> exception
34788 mapping that is dependent on the VxWorks version.
34789 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34791 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
34793 * 5wosinte.ads: Link with -mthreads switch.
34795 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
34797 * init.c (__gnat_install_handler [NetBSD]): Set
34798 __gnat_handler_installed, as done on all other platforms.
34799 Remove duplicated code.
34801 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
34803 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34805 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
34807 * sinfo.ads: Fix inconsistent example code in comment.
34809 2003-12-11 Robert Dewar <dewar@gnat.com>
34811 * a-tiinau.adb: Add a couple of comments
34813 * sem_ch3.adb: Minor reformatting
34816 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34817 Minor reformatting throughout
34819 2003-12-11 Ed Schonberg <schonberg@gnat.com>
34821 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34822 bounds of a loop, create a separate block in order to generate proper
34823 cleanup actions to prevent memory leaks.
34825 * sem_res.adb (Resolve_Call): After a call to
34826 Establish_Transient_Scope, the call may be rewritten and relocated, in
34827 which case no further processing is needed.
34829 * sem_util.adb: (Wrong_Type): Refine previous fix.
34830 Fixes ACATS regressions.
34833 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34836 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
34838 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34839 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34842 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34845 2003-12-08 Robert Dewar <dewar@gnat.com>
34847 * 7sintman.adb: Minor reformatting
34849 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34850 standard linker options to get standard libraries linked. We now plan
34851 to provide dummy versions of these libraries to match the appropriate
34852 configurable run-time (e.g. if a library is not needed at all, provide
34853 a dummy empty library).
34855 * targparm.ads: Configurable_Run_Time mode no longer affects linker
34856 options (-L parameters and standard libraries). What we plan to do is
34857 to provide dummy libraries where the libraries are not required.
34859 * gnatbind.adb: Minor comment improvement
34861 2003-12-08 Javier Miranda <miranda@gnat.com>
34863 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34864 aggregate in the parent. Otherwise constants with limited aggregates
34865 are not supported. Add new formal to pass the component type (Ctype).
34866 It is required to call the corresponding IP subprogram in case of
34867 default initialized components.
34868 (Gen_Assign): In case of default-initialized component, generate a
34869 call to the IP subprogram associated with the component.
34870 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34871 of aggregate with default initialized components.
34872 (Has_Default_Init_Comps): Improve implementation to recursively check
34873 all the present expressions.
34875 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34876 to indicate that the initialization call corresponds to a
34877 default-initialized component of an aggregate.
34878 In case of default initialized aggregate with tasks this parameter is
34879 used to generate a null string (this is just a workaround that must be
34880 improved later). In case of discriminants, this parameter is used to
34881 generate a selected component node that gives access to the discriminant
34884 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
34885 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
34886 allocated aggregates with default-initialized components.
34888 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
34889 the box notation is used in positional aggregates.
34891 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
34893 * lib.ads: Fix typo in comment
34895 2003-12-08 Vincent Celier <celier@gnat.com>
34897 * prj.adb (Project_Empty): New component Unkept_Comments
34898 (Scan): Remove procedure; moved to Prj.Err.
34900 * prj.ads (Project_Data): New Boolean component Unkept_Comments
34901 (Scan): Remove procedure; moved to Prj.Err.
34903 * prj-dect.adb: Manage comments for the different declarations.
34905 * prj-part.adb (With_Record): New component Node
34906 (Parse): New Boolean parameter Store_Comments, defaulted to False.
34907 Set the scanner to return ends of line and comments as tokens, if
34908 Store_Comments is True.
34909 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
34910 comments are associated with these nodes. Store the node IDs in the
34912 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
34914 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
34915 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
34916 current project. Call Tree.Restore afterwards. Set the various nodes
34917 for comment storage (Next_End, End_Of_Line, Previous_Line,
34920 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
34921 defaulted to False.
34923 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
34924 to False. When Truncated is True, truncate the string, never go to the
34926 (Write_End_Of_Line_Comment): New procedure
34927 (Print): Process comments for nodes N_With_Clause,
34928 N_Package_Declaration, N_String_Type_Declaration,
34929 N_Attribute_Declaration, N_Typed_Variable_Declaration,
34930 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
34931 Process nodes N_Comment.
34933 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
34934 without comments and there are some comments, set the flag
34935 Unkept_Comments to True.
34936 (Scan): If there are comments, set the flag Unkept_Comments to True and
34937 clear the comments.
34938 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
34939 (Next_End_Nodes: New table
34940 (Comment_Zones_Of): New function
34941 (Scan): New procedure; moved from Prj. Accumulate comments in the
34942 Comments table and set end of line comments, comments after, after end
34944 (Add_Comments): New procedure
34945 (Save, Restore, Seset_State): New procedures
34946 (There_Are_Unkept_Comments): New function
34947 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
34948 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
34950 (First_Comment_After, First_Comment_After_End): New functions
34951 (First_Comment_Before, First_Comment_Before_End): New functions
34952 (Next_Comment): New function
34953 (End_Of_Line_Comment, Follows_Empty_Line,
34954 Is_Followed_By_Empty_Line): New functions
34955 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
34956 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
34957 (Set_Next_Comment): New procedure
34958 (Default_Project_Node): Associate comment before if the node can store
34961 * scans.ads (Token_Type): New enumeration value Tok_Comment
34962 (Comment_Id): New global variable
34964 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
34965 defaulted to False.
34966 (Scan): Store position of start of comment. If comments are tokens, set
34967 Comment_Id and set Token to Tok_Comment when scanning a comment.
34968 (Set_Comment_As_Token): New procedure
34970 * sinput-p.adb: Update Copyright notice
34971 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
34972 that no longer exists.
34974 2003-12-08 Javier Miranda <miranda@gnat.com>
34976 * sem_aggr.adb: Add dependence on Exp_Tss package
34977 Correct typo in comment
34978 (Resolve_Aggregate): In case of array aggregates set the estimated
34979 type of the aggregate before calling resolve. This is needed to know
34980 the name of the corresponding IP in case of limited array aggregates.
34981 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
34982 in case of default initialized array components.
34984 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
34985 types. Required to give support to limited aggregates in generic
34988 2003-12-08 Ed Schonberg <schonberg@gnat.com>
34990 * sem_ch3.adb (Check_Initialization): For legality purposes, an
34991 inlined body functions like an instantiation.
34992 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
34993 until bounds are analyzed, to diagnose premature use of type.
34995 * sem_util.adb (Wrong_Type): Improve error message when the type of
34996 the expression is used prematurely.
34998 2003-12-08 GNAT Script <nobody@gnat.com>
35000 * Make-lang.in: Makefile automatically updated
35002 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
35004 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35005 they are automatically generated by Make-lang.in and cause nothing but
35006 maintenance troubles.
35008 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
35010 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35011 version of this unit).
35013 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
35015 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35016 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35017 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35018 the body of System.Interrupt_Management common to several targets.
35019 Update copyright notice when appropriate.
35021 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35024 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35025 to ensure that the kernel fills in the interrupted context structure
35026 before calling a signal handler, which is necessary to be able to
35027 unwind past it. Update the copyright notice.
35029 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
35031 * a-elchha.ads: New file.
35033 * a-elchha.adb: New default last chance handler. Contents taken from
35034 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35036 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35037 is moved to a-elchha.adb to provide a target-independent default last
35040 * Makefile.rtl: Add a-elchha.o
35042 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35044 2003-12-05 Ed Schonberg <schonberg@gnat.com>
35046 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35047 declared in an instance, do not inline the call if the instance is not
35048 frozen yet, to prevent order of elaboration problems.
35050 * sem_prag.adb: Add comments for previous fix.
35052 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
35054 * g-table.adb: Use the right variable in Set_Item.
35055 Update copyright notice.
35057 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
35059 * Makefile.in: Remove unused rules.
35061 2003-12-05 Vincent Celier <celier@gnat.com>
35063 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35064 -nostdlib. Not needed here after all.
35066 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
35069 * adaint.h, adaint.c, g-os_lib.ads:
35070 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35071 on some platforms (including FreeBSD), it is a 64 bit value.
35072 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35074 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
35076 * gnatvsn.ads (Library_Version): Now contain only the relevant
35078 (Verbose_Library_Version): New constant.
35080 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35081 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35082 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35084 * gnatlbr.adb: Clean up: replace Library_Version by
35085 Verbose_Library_Version.
35087 * make.adb, lib-writ.adb, exp_attr.adb:
35088 Clean up: replace Library_Version by Verbose_Library_Version.
35090 * 5lintman.adb: Removed.
35093 Update and simplify computation of LIBRARY_VERSION.
35094 Fix computation of GSMATCH_VERSION.
35095 5lintman.adb is no longer used: replaced by 7sintman.adb.
35097 2003-12-03 Robert Dewar <dewar@gnat.com>
35100 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35101 name. Modified to consider small non-bit-packed arrays as troublesome
35102 and in need of component-by-component assigment expansion.
35104 2003-12-03 Vincent Celier <celier@gnat.com>
35106 * lang-specs.h: Process nostdlib as nostdinc
35108 * back_end.adb: Update Copyright notice
35109 (Scan_Compiler_Arguments): Process -nostdlib directly.
35111 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35114 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35115 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35116 included in HIE_NONE_TARGET_PAIRS.
35118 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35121 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35122 is legal in an instance, because legality is cheched in the template.
35125 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35126 appplied to an unchecked conversion of a formal parameter.
35129 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35132 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35134 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35135 routines. The second one is new functionality to deal with backtracing
35136 through signal handlers.
35137 (unwind): Split into the two separate subroutines above.
35138 Update the documentation, and deal properly with sizeof (REG) different
35139 from sizeof (void*).
35141 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35143 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35144 so that the debugger can reliably access the value of the parameter,
35145 and therefore is able to display the exception name when an exception
35146 breakpoint is reached.
35148 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35150 * fmap.adb: Fix typo in warning message.
35152 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35153 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35155 2003-12-01 Vincent Celier <celier@gnat.com>
35157 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35159 (Build_Library): Get the switches only if Default_Switches is declared
35162 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35164 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35165 actuals that are indexed components, reanalyze actual to ensure that
35166 packed array references are properly expanded.
35168 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35169 attempted assignment to a discriminant.
35171 2003-12-01 Robert Dewar <dewar@gnat.com>
35173 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35176 * switch-c.adb: Minor reformatting of comments
35178 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35180 * Makefile.in: Clean ups.
35182 2003-12-01 GNAT Script <nobody@gnat.com>
35184 * Make-lang.in: Makefile automatically updated
35186 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35188 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35190 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35192 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35193 to force serialization.
35195 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35197 * g-socket.ads, g-socket.adb:
35198 Clarify documentation of function Stream. Introduce a Free procedure
35199 to release the returned Stream once it becomes unused.
35201 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35203 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
35205 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35206 since NT 4 cannot handle timeout values that are too large,
35207 e.g. DWORD'Last - 1.
35209 2003-11-26 Ed Schonberg <schonberg@gnat.com>
35212 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35213 in procedure calls and whose expansion must be deferred.
35215 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35219 (Build_Derived_Array_Type): Create operator for unconstrained type
35220 if ancestor is unconstrained.
35222 2003-11-26 Vincent Celier <celier@gnat.com>
35224 * make.adb (Project_Object_Directory): New global variable
35225 (Change_To_Object_Directory): New procedure
35226 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35227 of Change_Dir directly. Do not change working directory to object
35228 directory of main project after each compilation.
35229 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35231 Change to object directory of main project before binding step.
35232 (Initialize): Initialize Project_Object_Directory to No_Project
35235 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35236 binding a Stand-Alone Library.
35238 * output.adb: Update Copyright notice
35239 (Write_Char): Output buffer when full
35241 2003-11-26 Robert Dewar <dewar@gnat.com>
35243 * sem_ch13.adb: (Check_Size): Reset size if size is too small
35246 (Check_Size): Fix documentation to include bit-packed array case
35248 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35250 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35252 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35254 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
35257 * utils.c (init_gigi_decls): Change name of built-in setjmp to
35258 __builtin_setjmp, since this is apparently needed by recent
35261 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35263 * adadecode.c: Only include ctype.h if not IN_GCC.
35264 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35266 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
35269 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35270 signals and interrupts.
35272 * 5zintman.ads: New File.
35274 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35275 add exception signals to the set of unmasked signals.
35278 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35279 between signals and interrupts.
35280 Add to Unblocked_Signal_Mask the set of signals that are in
35284 Adding a check to see whether the Interrupt_ID we want to unmask is in
35285 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35286 reason is that the index type of the Keep_Unmasked array is not always
35287 Interrupt_ID; it may be a subtype of Interrupt_ID.
35289 2003-11-24 Gary Dismukes <dismukes@gnat.com>
35292 (Remove_Side_Effects): Condition constantness of object created for a
35293 an unchecked type conversion on the constantness of the expression
35294 to ensure the correct value for 'Constrained when passing components
35295 of view-converted class-wide objects.
35297 2003-11-24 Robert Dewar <dewar@gnat.com>
35299 * par-load.adb (Load): Improve handling of misspelled and missing units
35300 Removes several cases of compilation abandoned messages
35302 * lib.adb: (Remove_Unit): New procedure
35304 * lib.ads: (Remove_Unit): New procedure
35306 * lib-load.adb: Minor reformatting
35308 2003-11-24 Vincent Celier <celier@gnat.com>
35311 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35312 (Marking_Label): Label to mark processed source files. Incremented for
35314 (Gnatmake): Increase Marking_Labet for each executable
35315 (Is_Marked): Compare against marking label
35316 (Mark): Mark with marking label
35318 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
35321 Move the declaration of the TSD for System.Threads to System.Soft_Links.
35324 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35325 (rts-cert): build a single relocatable object for the run-time lib.
35328 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
35331 Use gnatls rather than gcc to obtain the location of GNAT RTL for
35334 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
35336 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35337 can not use it as before (that is, as a variable) when dumping it into
35338 the tree file. Add a local variable to store the result of this
35339 function and to be used as the string to be written into the tree.
35341 * scn.adb (Initialize_Scanner): Add comments explaining the recent
35344 * sinput.adb (Source_First, Source_Last): In case of
35345 Internal_Source_File, replace returning attributes of
35346 Internal_Source_Ptr (which is wrong) with returning attributes of
35349 2003-11-24 Ed Schonberg <schonberg@gnat.com>
35352 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35353 used for implicit concatenation operators.
35357 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35358 task bodies that are in the scope of a Suppress pragma.
35359 (Check_A Call): Use the flag to prevent spurious elaboration checks.
35361 * sinfo.ads, sinfo.adb:
35362 New flag No_Elaboration_Check on function/procedure calls, to properly
35363 suppress checks on calls in task bodies that are within a local suppress
35367 (Expand_Concatenate_Other): Use the proper integer type for the
35368 expression for the upper bound, to avoid universal_integer computations
35371 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
35373 * .cvsignore: Delete.
35375 2003-11-21 Andreas Schwab <schwab@suse.de>
35377 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35379 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
35381 * 5wsystem.ads: Enable zero cost exception.
35383 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
35385 * 5ztiitho.adb: Remove an unreferenced variable.
35387 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
35389 * adaint.c: For FreeBSD, use mkstemp.
35391 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
35393 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35395 2003-11-21 Robert Dewar <dewar@gnat.com>
35397 * bld.adb: Remove useless USE of gnatvsn
35399 * gnatchop.adb: Minor reformatting
35400 Clean up version handling to be more consistent
35402 * gnatxref.adb: Minor reformatting
35404 * gprcmd.adb: Minor reformatting
35405 Fix output of copyright to be more consistent with other tools
35407 2003-11-21 Vincent Celier <celier@gnat.com>
35409 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35411 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
35413 * atree.adb (Initialize): Add initializations for global variables
35414 used in New_Copy_Tree.
35416 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35417 Internal_Source_File as the actual).
35418 Put the set of statements creating Any_Character before the set of
35419 statements creating Any_Array to have Any_Character fully initialized
35420 when it is used in creating Any_Array.
35422 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35423 not call Scan in case if the actual is Internal_Source_File
35424 Add 2003 to copyright note.
35426 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35427 processing Internal_Source_File.
35429 * types.ads: Add the constant Internal_Source_File representing the
35430 source buffer for artificial source-code-like strings created within
35431 the compiler (the definition of Source_File_Index is changed).
35433 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
35435 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35436 56system.ads: New file, FreeBSD version.
35438 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
35440 * Make-lang.in (ada.extraclean): Delete.
35442 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
35444 * gnatmem.adb: Clean up verbose output.
35446 * gprcmd.adb: Change copyright to FSF.
35448 2003-11-19 Vincent Celier <celier@gnat.com>
35450 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35451 and Version (ignored).
35453 * symbols.ads: (Policy): New type
35454 (Initialize): New parameter Reference, Symbol_Policy and
35456 Remove parameter Force.
35457 Minor reformatting.
35459 * snames.ads, snames.adbadb: New standard names
35460 Library_Reference_Symbol_File and Library_Symbol_Policy
35463 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35467 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35469 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35471 * prj.adb: (Project_Empty): New component Symbol_Data
35473 * prj.ads: (Policy, Symbol_Record): New types
35474 (Project_Data): New component Symbol_Data
35477 New attributes Library_Symbol_File, Library_Symbol_Policy and
35478 Library_Reference_Symbol_File.
35481 (Ada_Check): When project is a Stand-Alone library project, process
35482 attribute Library_Symbol_File, Library_Symbol_Policy and
35483 Library_Reference_Symbol_File.
35485 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35486 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35487 5sml-tgt.adb (Build_Dynamic_Library): New parameter
35488 Symbol_Data (ignored).
35490 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35491 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35492 functions Option_File_Name and Version_String. Set new options of
35493 gnatsym related to symbol file, symbol policy and reference symbol
35497 Extensive modifications to take into account the reference symbol file,
35498 the symbol policy, the library version and to put in the symbol file the
35499 minor and major IDs.
35501 * bld.adb (Process_Declarative_Items): Put second argument of
35502 gprcmd to_absolute between single quotes, to avoid problems with
35505 * bld-io.adb: Update Copyright notice.
35506 (Flush): Remove last character of a line, if it is a back slash, to
35507 avoid make problems.
35510 Implement new scheme with reference symbol file and symbol policy.
35512 * g-os_lib.ads: (Is_Directory): Clarify comment
35514 2003-11-19 Robert Dewar <dewar@gnat.com>
35516 * atree.adb: Move New_Copy_Tree global variables to head of package
35518 * errout.adb: Minor reformatting
35520 2003-11-19 Javier Miranda <miranda@gnat.com>
35522 * sem_ch4.adb: (Diagnose_Call): Improve error message.
35523 Add reference to Ada0Y (AI-50217)
35525 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35526 sem_util.adb: Add reference to AI-50217
35528 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35530 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35532 * sem_aggr.adb: Complete documentation of AI-287 changes
35534 * par-ch4.adb: Document previous changes.
35536 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35537 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35540 * exp_aggr.adb: Add references to AI-287 in previous changes
35542 2003-11-19 Ed Schonberg <schonberg@gnat.com>
35545 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35546 in the rewriting is the result of an inlined call.
35548 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35549 parameter is a type conversion, use original node to construct the
35550 post-call assignment, because expression may have been rewritten, e.g.
35551 if it is a packed array.
35554 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35555 body, just as it is in an instance.
35556 Categorization routines
35558 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35559 Instantiate_Object): Set proper sloc reference for message on missing
35562 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
35564 * Makefile.in: Add FreeBSD libgnat pairs.
35566 * usage.adb: Fix typo in usage message.
35568 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
35570 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35571 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35572 pragma Thread_Body.
35573 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35575 * s-thread.adb: This file is now a dummy implementation of
35578 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
35580 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35582 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
35584 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35585 instanciation references in the parent type description.
35587 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35589 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35591 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35592 TYPE_PRECISION directly from esize.
35594 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
35597 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35599 * init.c: Initialization routines for FreeBSD
35601 * link.c: Link info for FreeBSD
35603 * sysdep.c: Add the case of FreeBSD
35605 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
35607 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35608 already called in System.Threads.
35610 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35611 environment task, as it has been moved to System.Threads.Initialization.
35613 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
35615 * adaint.c (__gnatlib_install_locks): Only reference
35616 __gnat_install_locks on VMS, since other platforms can avoid using
35617 --enable-threads=gnat
35619 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35621 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35623 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35624 TYPE_PACKED_ARRAY_TYPE_P.
35625 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35627 Part of PR ada/12806
35628 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35629 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35631 2003-11-17 Vincent Celier <celier@gnat.com>
35633 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35635 Do not set exit status to Failure when Warning is True.
35636 (Gnatchop): Make errors "no compilation units found" and
35637 "no source files written" warnings only.
35639 * make.adb (Gnatmake): When using a project file, set
35640 Look_In_Primary_Dir to False.
35641 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35642 and Local_Configuration_Pragmas in the project where they are declared
35643 not an extending project which might have inherited them.
35645 * osint.adb (Locate_File): If Name is already an absolute path, do not
35646 look for a directory.
35648 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35649 -gnats (Check_Syntax) is used, issue only a warning, not an error.
35651 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35652 in objects of type Variable_Value.
35654 * prj.ads: (Variable_Value): New component Project
35656 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35657 is in a project extended by Project.
35659 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35660 Project of Variable_Values to this new parameter value.
35661 (Expression): Set component Project of Variable_Values.
35662 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35663 Set the component Project in array elements.
35665 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
35667 * errout.adb: (Initialize): Add initialization for error nodes.
35669 * sem_ch12.adb (Initialize): Add missing initializations for
35670 Exchanged_Views and Hidden_Entities.
35672 2003-11-17 Ed Schonberg <schonberg@gnat.com>
35674 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35675 already instantiated tree for use in subsequent inlining.
35676 (Analyze_Associations, Instantiate_Formal_Subprogram,
35677 Instantiate_Object): improve error message for mismatch in
35680 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35681 instantiations of subprograms declared in instances.
35683 2003-11-17 Javier Miranda <miranda@gnat.com>
35685 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35686 executed only under the Extensions_Allowed flag.
35688 2003-11-17 Robert Dewar <dewar@gnat.com>
35690 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35692 (Address_Image): Fix bug of returning 0x instead of 0x0
35693 Minor reformatting (function specs).
35695 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35696 (missed case of 33-63)
35698 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35700 * s-thread.adb: Add comments for pragma Restriction
35702 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35703 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35705 2003-11-17 Ed Falis <falis@gnat.com>
35707 * s-thread.adb: Added No_Tasking restriction for this implementation.
35709 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
35711 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35712 instanciation references in the parent type description.
35714 2003-11-17 GNAT Script <nobody@gnat.com>
35716 * Make-lang.in: Makefile automatically updated
35718 2003-11-16 Jason Merrill <jason@redhat.com>
35720 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35721 and TAGS files that include them for each front end.
35723 2003-11-14 Andreas Jaeger <aj@suse.de>
35725 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35726 is the canonical version.
35727 * misc.c (gnat_handle_option): Likewise.
35729 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35731 * 5nsystem.ads: New file for x86_64-linux-gnu.
35733 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
35735 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35737 * comperr.adb: Fix logic in previous change.
35739 2003-11-13 Vincent Celier <celier@gnat.com>
35741 * 5bml-tgt.adb (Build_Dynamic_Library): Use
35742 Osint.Include_Dir_Default_Prefix instead of
35743 Sdefault.Include_Dir_Default_Name.
35745 * gnatlbr.adb: Update Copyright notice
35746 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35747 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35748 instead of Sdefault.Object_Dir_Default_Name
35751 (Process_Binder_File): Never suppress the option following -Xlinker
35754 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35755 Sdefault.Object_Dir_Default_Name.
35757 * osint.ads, osint.adb:
35758 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35759 Minor reformatting.
35761 * vms_conv.ads: Minor reformating
35762 Remove GNAT STANDARD and GNAT PSTA
35765 Allow GNAT MAKE to have several files on the command line.
35766 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35767 Sdefault.Object_Dir_Default_Name.
35769 Remove data for GNAT STANDARD
35772 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35773 Remove data for GNAT STANDARD
35774 Remove options and documentation for -gnatwb/-gnatwB: these warning
35775 options no longer exist.
35777 2003-11-13 Ed Falis <falis@gnat.com>
35779 * 5zthrini.adb: (Init_RTS): Made visible
35782 (Register): Removed unnecessary call to taskVarGet that checked whether
35783 an ATSD was already set as a task var for the argument thread.
35786 Updated comment to reflect that this is a VxWorks version
35787 Added context clause for System.Threads.Initialization
35788 Added call to System.Threads.Initialization.Init_RTS
35790 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
35793 (Init_RTS): New procedure, for the initialization of the run-time lib.
35796 Remove dependancy on System.Init, so that this file can be used in the
35797 AE653 sequential run-time lib.
35799 2003-11-13 Robert Dewar <dewar@gnat.com>
35801 * bindgen.adb: Minor reformatting
35803 2003-11-13 Ed Schonberg <schonberg@gnat.com>
35806 (Apply_Discriminant_Check): Do no apply check if target type is derived
35807 from source type with no applicable constraint.
35810 (Ensure_System_Dependency): Do not apply the style checks that may have
35811 been specified for the main unit.
35814 (Find_Selected_Component): Further improvement in error message, with
35818 (Resolve): Handle properly the case of an illegal overloaded protected
35821 2003-11-13 Javier Miranda <miranda@gnat.com>
35824 (Has_Default_Init_Comps): New function to check the presence of
35825 default initialization in an aggregate.
35826 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35827 extension aggregate of a limited record. In addition, a new formal
35828 was added to do not initialize the record controller (if any) during
35829 this recursive expansion of ancestors.
35830 (Init_Controller): Add support for limited record components.
35831 (Expand_Record_Aggregate): In case of default initialized components
35832 convert the aggregate into a set of assignments.
35834 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35835 describing the new syntax.
35836 Nothing else needed to be done because this subprogram delegates part of
35837 its work to P_Precord_Or_Array_Component_Association.
35838 (P_Record_Or_Array_Component_Association): Give support to the new
35839 syntax for default initialization of components.
35842 (Resolve_Aggregate): Relax the strictness of the frontend in case of
35843 limited aggregates.
35844 (Resolve_Record_Aggregate): Give support to default initialized
35846 (Get_Value): In case of default initialized components, duplicate
35847 the corresponding default expression (from the record type
35848 declaration). In case of default initialization in the *others*
35849 choice, do not check that all components have the same type.
35850 (Resolve_Extension_Aggregate): Give support to limited extension
35854 (Check_Initialization): Relax the strictness of the front-end in case
35855 of aggregate and extension aggregates. This test is now done in
35856 Get_Value in a per-component manner.
35858 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35859 expression corresponds to a limited aggregate. This test is now done
35862 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35865 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35866 present in an N_Component_Association node
35868 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
35870 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35871 type-conformant entry only if they are homographs.
35873 2003-11-13 GNAT Script <nobody@gnat.com>
35875 * Make-lang.in: Makefile automatically updated
35877 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35879 * adadecode.c: Use <> form of include for ctype.h.
35880 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
35882 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35884 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
35885 Works around PR middle-end/6552.
35887 2003-11-10 Ed Falis <falis@gnat.com>
35889 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
35891 * 5zinit.adb: (Install_Handler): Moved back to spec
35892 (Install_Signal_Handlers): Deleted
35894 * 5zthrini.adb: Added context clause for System.Storage_Elements
35895 (Register): Only handles creation of taskVar; initialization moved to
35897 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
35898 Added declaration of environment task secondary stack and
35901 * s-thread.adb: Implement bodies for thread body processing
35904 Added comment identifying supported targets for pragma Thread_Body.
35906 2003-11-10 Pascal Obry <obry@gnat.com>
35908 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
35912 (Open): Properly check for string length before copying into the buffer.
35913 Raises Name_Error if buffer is too small. Note that this was a potential
35916 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
35918 * bindgen.adb, comperr.adb: Code clean ups.
35919 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
35921 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
35923 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
35925 2003-11-10 Vincent Celier <celier@gnat.com>
35928 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
35931 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
35933 * prj.adb: (Project_Empty): Add new boolean component Virtual
35935 * prj.ads: (Virtual_Prefix): New constant string
35936 (Project_Data): New boolean component Virtual
35938 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
35939 a library project is extended by a virtual extending project.
35942 Modifications throughout to implement extending-all project, including:
35943 (Virtual_Hash, Processed_Hash): New hash tables
35944 (Create_Virtual_Extending_Project): New procedure
35945 (Look_For_Virtual_Projects_For): New procedure
35948 (Process): After checking the projects, if main project is an
35949 extending-all project, set the object directory of all virtual extending
35950 project to the object directory of the main project.
35951 Adjust error message when a virtual extending project has the same
35952 object directory as an project being extended.
35953 (Recursive_Process): If name starts with the virtual prefix, set Virtual
35954 to True in the project data.
35957 (Default_Project_Node): Add new boolean component Extending_All
35958 (Is_Extending_All): New function
35959 (Set_Is_Extending_All): New procedure
35961 * prj-tree.ads: (Is_Extending_All): New function
35962 (Set_Is_Extending_All): New procedure
35963 (Project_Node_Record): New boolean component Extending_All
35965 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
35968 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
35970 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
35971 "gprcmd prefix" to define it.
35973 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
35975 * einfo.ads: Fix a typo and remove an extraneous word in comments.
35978 (Create_Dummy_Package_Unit): Set the scope of the entity for the
35979 created dummy package to Standard_Standard, not to itself, to
35980 defend other parts of the front-end against encoutering a cycle in
35984 (Analyze_With_Clause): When setting the entities for the successive
35985 N_Expanded_Names that constitute the name of a child unit, do not
35986 attempt to go further than Standard_Standard in the chain of scopes.
35987 This case arises from the placeholder units created by
35988 Create_Dummy_Package_Unit in the case of a with_clause for a
35989 nonexistent child unit.
35991 2003-11-10 Ed Schonberg <schonberg@gnat.com>
35994 (Expand_Thread_Body): Place subprogram on scope stack, so that new
35995 declarations are given the proper scope.
35998 (Check_Expr_Constants): Reject an expression that contains a constant
35999 created during expansion, and that appears after the object to which
36000 the address clause applies.
36002 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36003 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36004 that uses 'Range of a function call with controlled components, so
36005 that the function result can be finalized before starting the loop.
36008 (Find_Selected_Component): Improve error message when prefix is
36009 an implicit dereference of an incomplete type.
36011 2003-11-10 Robert Dewar <dewar@gnat.com>
36013 * opt.ads: New Print_Standard flag for -gnatS switch
36015 * sem_ch13.adb: Remove some additional checks for unaligned arrays
36017 * cstand.adb (Create_Standard): Print out package standard if -gnatS
36020 * debug.adb: Update doc for -gnatds to discuss relationship with new
36023 * sinfo.adb: Add new field Entity_Or_Associated_Node
36025 * sinfo.ads: Add new field Entity_Or_Associated_Node
36026 Update documentation for Associated_Node and Entity fields to clarify
36027 relationship and usage.
36030 (Write_Id): Properly process Associated_Node field in generic template
36033 Recognize new -gnatS switch for printing package Standard
36034 This replaces gnatpsta
36037 Add line for new -gnatS switch for printing package Standard
36038 This replaces gnatpsta
36040 2003-11-10 Andreas Jaeger <aj@suse.de>
36042 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36045 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36047 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36050 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36052 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36055 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36057 * sysdep.c: Add handling of cygwin.
36059 2003-11-10 GNAT Script <nobody@gnat.com>
36061 * Make-lang.in: Makefile automatically updated
36063 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36066 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36067 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36068 Replace GNAT_ROOT by GCC_ROOT.
36070 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36072 2003-11-06 Zack Weinberg <zack@codesourcery.com>
36074 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36075 and update for changed meaning of GET_MODE_BITSIZE.
36077 2003-11-04 Doug Rupp <rupp@gnat.com>
36079 * sysdep.c: Problem discovered during IA64 VMS port.
36080 [VMS] #include <unixio.h> to get proper prototypes.
36083 Issues discovered/problems fixed during IA64 VMS port.
36084 [VMS] #define _POSIX_EXIT for proper semantics.
36085 [VMS] #include <unixio.h> for proper prototypes.
36086 [VMS] (fork): #define IA64 version.
36087 (__gnat_os_exit): Remove unnecessary VMS specific code.
36089 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36091 Part of PR ada/12806
36092 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36096 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36099 * targtyps.c, decl.c, misc.c,
36100 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36101 routines to work around change in FP sizing semantics in GCC.
36104 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36106 * gigi.h: (enumerate_modes): New function.
36108 * Make-lang.in: (ada/misc.o): Add real.h.
36110 * misc.c: (enumerate_modes): New function.
36112 2003-11-04 Robert Dewar <dewar@gnat.com>
36114 * 3vtrasym.adb: Minor reformatting
36115 Use terminology encoded/decoded name, rather than C++ specific notion
36116 of mangling (this is the terminology used throughout GNAT).
36118 * einfo.h: Regenerated
36120 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36123 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36125 * par-prag.adb: Add dummy entry for Thread_Body pragma
36128 Add entries for System.Threads entities for thread body processing
36131 (Analyze_Pragma, Access attributes): Check these are not applied to a
36132 thread body, since this is not permitted
36134 * sem_prag.adb: Add processing for Thread_Body pragma.
36138 (Resolve_Call): Check for incorrect attempt to call a thread body
36139 procedure with a direct call.
36141 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36142 Add names associated with thread body expansion
36144 * snames.h: Add entry for Thread_Body pragma
36146 * s-thread.adb: Add entries for thread body processing
36147 These are dummy bodies so far
36149 * s-thread.ads: Add documentation on thread body handling.
36150 Add entries for thread body processing.
36152 2003-11-04 Javier Miranda <miranda@gnat.com>
36155 (Build_Limited_Views): Return after posting an error in case of limited
36156 with_clause on subprograms, generics, instances or generic renamings
36157 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36158 on subprograms, generics, instances or generic renamings
36160 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36162 * raise.c (setup_to_install): Correct mistake in last revision; two
36163 arguments out of order.
36165 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36166 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36167 notice, missed in previous change.
36168 Remove trailing blanks and other style errors introduced in previous
36171 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36173 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36174 rid of the wrapper for a LJM type, ensuring we don't do that if the
36175 field is addressable. This avoids potential low level type view
36176 mismatches later on, for instance in a by-reference argument passing
36179 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36181 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36182 aligned at byte boundary.
36184 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36186 * decl.c (components_to_record): Do not delete the empty variants from
36187 the end of the union type.
36189 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36191 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36192 operation for a derived type, an explicit declaration may use a local
36193 subtype of Boolean.
36195 2003-11-04 Vincent Celier <celier@gnat.com>
36197 * make.adb (Gnatmake): Allow main sources on the command line with a
36198 library project when it is only for compilation (no binding or
36201 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36203 * Makefile.in: Remove many duplicate variables.
36205 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
36207 * Make-lang.in (dvi): Move targets to $(docobjdir).
36208 (gnat_ug_vms.dvi): Simplify rule and adjust target.
36209 (gnat_ug_wnt.dvi): Likewise.
36210 (gnat_ug_unx.dvi): Likewise.
36211 (gnat_ug_vxw.dvi): Likewise.
36212 (gnat_rm.dvi): Likewise.
36213 (gnat-style.dvi): Likewise.
36215 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36217 * gigi.h: Missed commit from update for C90.
36219 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36221 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36223 2003-10-31 Andreas Schwab <schwab@suse.de>
36225 * raise.c (get_action_description_for): Fix typo in last change.
36227 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
36230 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36231 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36233 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
36235 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36236 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36237 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36238 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36239 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36241 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
36244 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36245 numbers when symbol name is too long.
36247 2003-10-30 Ed Falis <falis@gnat.com>
36249 * g-signal.ads, g-signal.adb: New files
36251 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36253 * Makefile.rtl: Introduce GNAT.Signals
36255 2003-10-30 Robert Dewar <dewar@gnat.com>
36257 * freeze.adb: Minor reformatting
36259 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36261 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36262 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36263 New handling of Id_Check parameter to improve recognition of keywords
36264 used as identifiers.
36265 Update copyright notice to include 2003
36267 2003-10-29 Robert Dewar <dewar@gnat.com>
36269 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36270 sem_ch10.adb: Minor reformatting
36272 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36273 (Expand_Assign_Record): Test right hand side for bit unaligned as well
36275 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
36277 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36278 Support for TBK$SYMBOLIZE-based symbolic traceback.
36280 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
36283 Revert previous change, that did not work well when pragma No_Run_Time
36284 was used in conjunction with a run-time other than ZFP.
36286 2003-10-29 Vincent Celier <celier@gnat.com>
36289 (Gnatmake): When there are no Ada mains in attribute Main, disable the
36290 bind and link steps only is switch -z is not used.
36292 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
36294 * Makefile.generic: Remove duplicated setting of CC.
36296 * Makefile.prolog: Set CC to gcc by default, to override make's
36299 * einfo.h: Regenerated.
36301 2003-10-29 Ed Schonberg <schonberg@gnat.com>
36303 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36304 current body, after compiling subunit.
36306 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36307 when in deleted code, because gigi needs properly ordered freeze
36308 actions to annotate types.
36310 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36311 prevent the premature freezing of record type that contains
36312 subcomponents with a private type that does not yet have a completion.
36314 2003-10-29 Javier Miranda <miranda@gnat.com>
36317 (Analyze_Package_Instantiation): Check that instances can not be used in
36318 limited with_clauses.
36321 (Analyze_Package_Renaming): Check that limited withed packages cannot
36322 be renamed. Improve text on error messages related to limited
36325 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36327 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36328 Update copyright notice.
36330 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36331 (Install_Limited_Context_Clauses): New subprogram that isolates all the
36332 checks required for limited context_clauses and installs the limited
36334 (Install_Limited_Withed_Unit): Complete its documentation.
36335 (Analyze_Context): Check that limited with_clauses are only allowed in
36337 (Install_Context): Call Install_Limited_Context_Clauses after the
36338 parents have been installed.
36339 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36340 package as 'From_With_Type'; this mark indicates that the limited view
36341 is installed. Used to check bad usages of limited with_clauses.
36342 (Build_Limited_Views): Do not add shadow entities to the scope's list
36343 of entities. Do not add real entities to the Non_Limited_Views chain.
36344 Improve error notification.
36345 (Remove_Context_Clauses): Remove context clauses in two phases:
36346 limited views first and regular views later (to maintain the
36348 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36349 its visible entities.
36351 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
36353 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36354 with any type that Is_Fixed_Point_Type.
36356 * sinfo.ads: Fix documentation for Associated_Node attribute.
36358 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
36360 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36361 both '-gnatc' and '-gnatt' are specified.
36363 * atree.adb (Initialize): Add initialization for Node_Count (set to
36366 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36368 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36369 do not consider as Pure.
36371 Part of implementation of function-at-a-time:
36373 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36374 (tree_transform): Add new argument to build_component_ref.
36375 (tree_transform, case N_Assignment_Statement): Make and return an
36377 (tree_transform): If result IS_STMT, set flags and return it.
36378 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36380 * utils2.c (build_simple_component_ref, build_component_ref): Add new
36382 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36383 (build_allocator): Likewise.
36385 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36386 Add new arg to build_component_ref.
36387 (maybe_unconstrained_array, unchecked_convert): Likewise.
36389 * ada-tree.def (EXPR_STMT): New code.
36391 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36393 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36394 build_component_ref calls.
36396 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36398 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36399 (build_component_ref): Add new argument, NO_FOLD_P.
36401 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
36403 * Makefile.generic: Add missing substitution on object_deps handling.
36406 * Make-lang.in (check-ada): Enable ACATS test suite.
36408 2003-10-27 Robert Dewar <dewar@gnat.com>
36411 (Freeze_Array_Type): We do not need an initialization routine for types
36412 derived from String or Wide_String. They should be treated the same
36413 as String and Wide_String themselves. This caused problems with the
36414 use of Initialize_Scalars.
36417 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36418 composites. This allows use of component clauses that are not byte
36422 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36423 is an attempt to pack an array of atomic objects.
36425 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36427 2003-10-27 Pascal Obry <obry@gnat.com>
36430 (Basename): Check for drive letters in a pathname only on DOS based OS.
36432 2003-10-27 Vincent Celier <celier@gnat.com>
36435 (Gnatmake): When unable to change dir to the object dir, display the
36436 content of the parent dir of the obj dir, to try to understand why this
36439 2003-10-27 GNAT Script <nobody@gnat.com>
36441 * Make-lang.in: Makefile automatically updated
36443 2003-10-27 Ed Schonberg <schonberg@gnat.com>
36446 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36447 should not be done in Save/Restore_Scope_Stack, because it is performed
36451 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36452 whether use clauses should be removed/restored.
36455 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36456 whether use clauses should be removed/restored.
36458 2003-10-26 Andreas Jaeger <aj@suse.de>
36460 * Makefile.in: Remove duplicated lines.
36462 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36464 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36465 minimize the differences with ACT tree.
36467 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36468 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36469 Gnatvsn.Gnat_Static_Version_String to reduce differences between
36472 2003-10-24 Pascal Obry <obry@gnat.com>
36475 * adadecode.c (ostrcpy): New function.
36476 (__gnat_decode): Use ostrcpy of strcpy.
36477 (has_prefix): Set first parameter a const.
36478 (has_suffix): Set first parameter a const.
36479 Update copyright notice. Fix source name in header.
36480 Removes a trailing space.
36482 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
36485 Remove the test against being in No_Run_Time_Mode before generating a
36486 call to Register_Tag. It is redundant with the test against the
36487 availability of the function Register_Tag.
36489 2003-10-24 Vincent Celier <celier@gnat.com>
36491 * g-catiio.adb: (Month_Name): Correct spelling of February
36493 * make.adb: (Mains): New package
36494 (Initialize): Call Mains.Delete
36495 (Gnatmake): Check that each main on the command line is a source of a
36496 project file and, if there are several mains, each of them is a source
36497 of the same project file.
36498 (Gnatmake): When a foreign language is specified in attribute Languages,
36499 no main is specified on the command line and attribute Mains is not
36500 empty, only build the Ada main. If there is no Ada main, just compile
36501 the Ada sources and their closure.
36502 (Gnatmake): If a main is specified on the command line with directory
36503 information, check that the source exists and, if it does, that the path
36504 is the actual path of a source of a project.
36507 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36508 Full_Path is True, return the full path instead of the simple file name.
36509 (Project_Of): New function
36512 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36513 defaulted to False.
36514 (Project_Of): New function
36516 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36518 * Makefile.generic:
36519 Ensure objects of main project are always checked and rebuilt if needed.
36520 Set CC to gcc by default.
36521 Prepare new handling of link by creating a global archive (not activated
36524 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36525 stringt.h: Update copyright notice. Remove trailing blanks.
36526 Fix source name in header.
36528 2003-10-24 Robert Dewar <dewar@gnat.com>
36530 * sem_ch12.adb: Minor reformatting
36533 Minor reformatting (including new function return style throughout)
36536 Minor reformatting (including new function return style throughout)
36538 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36540 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36541 stringt.h: Update copyright notice. Remove trailing blanks.
36542 Fix source name in header.
36544 2003-10-24 GNAT Script <nobody@gnat.com>
36546 * Make-lang.in: Makefile automatically updated
36548 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
36550 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36551 stringt.h: Convert to ISO C90 declarations and definitions.
36553 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
36556 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36557 External_Tag attribute definition clauses.
36559 2003-10-23 Ed Schonberg <schonberg@gnat.com>
36562 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36563 child unit, generate a fully qualified name to avoid spurious errors
36564 when the context contains renamings of different child units with
36565 the same simple name.
36567 * exp_dbug.ads: Add documentation on name qualification for renamings
36570 2003-10-23 Robert Dewar <dewar@gnat.com>
36572 * g-regpat.ads, g-regpat.adb: Minor reformatting
36574 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
36576 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36578 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36580 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36583 * urealp.h: (Machine): Update to proper definition.
36585 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
36587 * init.c, adaint.c: Minor reformatting.
36589 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
36591 * adaint.c (w32_epoch_offset): Define static const at file level.
36592 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36593 rather than t_create, t_access in call to GetFileTime. Use union
36594 to convert between FILETIME and unsigned long long.
36595 (__gnat_file_time_name): Test for invalid file handle.
36596 (__gnat_set_filetime_name): Support win32 targets using
36597 w32api SetFileTime.
36599 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
36601 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36603 * ctrl_c.c (__gnat_int_handler): Remove declaration.
36605 * decl.c (creat_concat_name): Const-ify prefix.
36607 * adaint.c: Include ctype.h if __MINGW32__.
36608 (__gnat_readlink): Mark arguments as possibly unused.
36609 (__gnat_symlink): Likewise.
36610 (__gnat_is_symbolic_link): Likewise.
36611 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
36613 (__gnat_file_time_name): Don't declare struct stat statbuf when
36615 (__gnat_is_absolute_path): Add parenthesis around condition of
36616 'if' statement to avoid warning.
36617 (__gnat_plist_init): Specify void as parameter.
36618 (plist_enter): Likewise.
36619 (plist_leave): Likewise.
36620 (remove_handle): Make static. Initialize prev.
36622 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36625 * Makefile.in: Disable build of gnatpsta.
36626 * cstreams.c (__gnat_full_name): Minor improvements and clean up
36627 of previous change.
36629 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36631 * tracebak.c (MAX): Avoid redefinition warning.
36633 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36634 Change msg to const char *.
36635 (__gnat_install_handler): Remove ss, unused.
36636 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36638 * cstreams.c (__gnat_full_name): Declare p only when used.
36639 (__gnat_full_name) [sgi] Return buffer.
36641 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36643 * mingw32.h: New file.
36644 * gnat_wrapper.adb: New file.
36646 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
36648 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36649 string match a pre compiled regular expression (the corresponding
36650 version of the function working on a raw regular expression)
36651 Fix typos in various comments
36652 Update copyright notice in spec
36654 2003-10-21 Gary Dismukes <dismukes@gnat.com>
36657 (Component_Needs_Simple_Initialization): Return False when the type is a
36658 packed bit array. Revise spec comments to document this case.
36661 (Expand_Pragma_Import): Set any expression on the imported object to
36662 empty to avoid initializing imported objects (in particular this
36663 covers the case of zero-initialization of bit arrays).
36664 Update copyright notice.
36666 2003-10-21 Ed Schonberg <schonberg@gnat.com>
36669 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36670 a subunit is missing.
36671 (Instantiate_Subprogram_Body): If body of function is missing, set type
36672 of return expression explicitly in dummy body, to prevent cascaded
36673 errors when a subunit is missing.
36677 (Access_Subprogram_Declaration): Verify that return type is valid.
36681 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36686 (Corresponding_Discriminant): If the scope of the discriminant is a
36687 private type without discriminant, use its full view.
36690 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
36692 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36693 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36694 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36695 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36696 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36697 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36698 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36699 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36700 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36701 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36702 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36703 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36704 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36705 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36706 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36707 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36708 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36709 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36710 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36711 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36712 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36713 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36714 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36715 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36716 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36717 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36718 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36719 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36720 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36721 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36722 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36723 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36724 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36725 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36726 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36727 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36728 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36729 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36730 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36731 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36732 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36733 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36734 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36735 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36736 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36737 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36738 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36739 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36740 vms_conv.ads, vms_conv.adb, vms_data.ads,
36741 vxaddr2line.adb: Files added. Merge with ACT tree.
36743 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36744 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36745 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36746 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36747 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36748 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36749 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36750 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36751 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36752 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36754 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36755 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36756 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36757 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36758 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36759 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36760 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36761 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36762 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36763 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36764 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36765 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36766 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36767 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36768 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36769 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36770 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36771 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36772 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36773 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36774 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36775 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36776 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36777 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36778 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36779 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36780 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36781 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36782 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36783 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36784 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36785 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36786 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36787 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36788 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36789 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36790 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36791 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36792 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36793 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36794 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36795 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36796 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36797 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36798 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36799 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36800 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36801 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36802 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36803 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36804 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36805 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36806 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36807 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36808 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36809 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36810 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36811 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36812 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36813 checks.adb, checks.ads, cio.c, comperr.adb,
36814 comperr.ads, csets.adb, cstand.adb, cstreams.c,
36815 debug_a.adb, debug_a.ads, debug.adb, decl.c,
36816 einfo.adb, einfo.ads, errout.adb, errout.ads,
36817 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36818 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36819 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36820 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36821 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36822 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36823 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36824 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36825 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36826 fe.h, fmap.adb, fmap.ads, fname.adb,
36827 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36828 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36829 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36830 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36831 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36832 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36833 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36834 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36835 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36836 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36837 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36838 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36839 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36840 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36841 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36842 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36843 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36844 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36845 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36846 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36847 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36848 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36849 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36850 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36851 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36852 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36853 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36854 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36855 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36856 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36857 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36858 layout.adb, lib.adb, lib.ads, lib-list.adb,
36859 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36860 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36861 link.c, live.adb, make.adb, make.ads,
36862 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36863 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36864 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36865 misc.c, mkdir.c, mlib.adb, mlib.ads,
36866 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36867 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36868 namet.adb, namet.ads, namet.h, nlists.ads,
36869 nlists.h, nmake.adt, opt.adb, opt.ads,
36870 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36871 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36872 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36873 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36874 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36875 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36876 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36877 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36878 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36879 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36880 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36881 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
36882 prj-util.adb, prj-util.ads, raise.c, raise.h,
36883 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
36884 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
36885 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
36886 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
36887 scans.ads, scn.adb, scn.ads, s-crc32.adb,
36888 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
36889 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36890 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
36891 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
36892 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
36893 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
36894 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
36895 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
36896 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
36897 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
36898 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
36899 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
36900 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
36901 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
36902 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
36903 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
36904 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
36905 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
36906 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
36907 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
36908 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
36909 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
36910 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
36911 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
36912 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
36913 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
36914 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
36915 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
36916 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
36917 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
36918 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
36919 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
36920 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
36921 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
36922 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
36923 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
36924 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
36925 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36926 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36927 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
36928 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36929 stringt.adb, stringt.ads, stringt.h, style.ads,
36930 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
36931 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
36932 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
36933 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
36934 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
36935 table.adb, table.ads, targparm.adb, targparm.ads,
36936 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
36937 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
36938 ttypes.ads, types.ads, types.h, uintp.adb,
36939 uintp.ads, uintp.h, uname.adb, urealp.adb,
36940 urealp.ads, urealp.h, usage.adb, utils2.c,
36941 utils.c, validsw.adb, validsw.ads, widechar.adb,
36942 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
36943 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
36944 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
36945 gnatvsn.ads: Merge with ACT tree.
36947 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
36949 2003-10-20 Mark Mitchell <mark@codesourcery.com>
36951 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
36952 (gnat_ug_vmx.info): Likewise.
36953 (gnat_ug_vxw.info): Likewise.
36954 (gnat_ug_wnt.info): Likewise.
36955 (gnat_rm.info): Likewise.
36956 (gnat-style.info): Likewise.
36958 * Make-lang.in (ada.install-info): Remove target.
36959 (info): New target.
36960 (install-info): Likewise.
36961 (gnat_ug_unx.info): Simplify rule.
36962 (gnat_ug_vmx.info): Likewise.
36963 (gnat_ug_vxw.info): Likewise.
36964 (gnat_ug_wnt.info): Likewise.
36965 (gnat_rm.info): Likewise.
36966 (gnat-style.info): Likewise.
36968 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
36970 * Make-lang.in: Replace uses of $(target_alias) with
36971 $(target_noncanonical).
36972 * ada/Makefile.in: Remove unused mention of $(target_alias).
36974 2003-10-06 Mark Mitchell <mark@codesourcery.com>
36976 * Make-lang.in (ada.info): Replace with ...
36978 (ada.dvi): Replace with ...
36981 2003-09-29 Zack Weinberg <zack@codesourcery.com>
36983 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
36984 initialize dconstp5 and dconstmp5.
36986 2003-09-28 Richard Henderson <rth@redhat.com>
36988 * trans.c (tree_transform): Update call to expand_asm_operands.
36990 2003-09-21 Richard Henderson <rth@redhat.com>
36992 * trans.c, utils.c: Revert.
36994 2003-09-21 Richard Henderson <rth@redhat.com>
36996 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
36999 2003-09-04 Michael Matz <matz@suse.de>
37001 * misc.c: Include "target.h".
37002 * Make-lang.in (misc.o): Add dependency on target.h.
37004 2003-09-03 DJ Delorie <dj@redhat.com>
37006 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37009 2003-08-30 Zack Weinberg <zack@codesourcery.com>
37011 * Makefile.in: Update substitutions to match changes to
37012 configure. Use include directives instead of @-insertions
37013 to read in host and target fragments. Add a rule to
37014 regenerate ada/Makefile.
37016 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
37018 * lang-options.h: Remove.
37019 * lang.opt: Add help text.
37021 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
37023 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37026 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
37028 * misc.c (gnat_handle_option): Don't handle filenames.
37030 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
37032 * Make-lang.in: Replace PWD with PWD_COMMAND.
37033 * Makefile.adalib: Likewise.
37034 * Makefile.in: Likewise.
37036 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
37038 * misc.c (gnat_argv): Revert last change.
37039 (gnat_handle_option, gnat_init_options): Copy arguments.
37041 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
37043 * misc.c (gnat_argv): Make const.
37045 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37047 * misc.c (save_argc, save_argv): Keep non-static!
37049 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37051 * misc.c (save_argc, save_argv): Make static.
37052 (gnat_init_options): New prototype.
37053 (gnat_init_options): Update.
37055 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
37057 * gnat_ug.texi: Remove unlikely characters from @vars.
37058 * gnat_ug_vms.texi: Regenerate.
37060 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
37062 * misc.c (record_code_position): Adjust emit_note call.
37064 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
37066 * misc.c (gnat_handle_option): Don't check for missing arguments.
37068 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
37070 * utils.c (end_subprog_body): Adjust expand_function_end call.
37072 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
37074 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37077 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
37079 * lang.opt: Declare Ada.
37080 * misc.c (gnat_init_options): Update.
37082 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
37084 * utils.c (begin_subprog_body): Adjust init_function_start call.
37086 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37088 * Make-lang.in: Update to use options.c and options.h.
37089 * misc.c: Include options.h not aoptions.h.
37090 (gnat_handle_option): Abort on unrecognized switch.
37091 (gnat_init_options): Request Ada switches.
37093 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37095 * lang.opt: Add -Wall.
37096 * misc.c (gnat_handle_option): Handle it.
37098 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37100 * misc.c (gnat_handle_option): Fix warnings.
37102 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37104 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37106 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37108 * Make-lang.in: Update to handle command-line options.
37109 * lang.opt: New file.
37110 * misc.c: Include aoptions.h.
37111 (cl_options_count, cl_options): Remove.
37112 (gnat_handle_option): New.
37113 (gnat_decode_option): Remove.
37114 (LANG_HOOKS_DECODE_OPTION): Remove.
37115 (LANG_HOOKS_HANDLE_OPTION): Override.
37117 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37119 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37121 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37123 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37126 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37128 * Make-lang.in: Update.
37129 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37131 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37133 * misc.c (gnat_init_options): Update.
37135 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37137 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37138 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37139 __attribute__ ((__unused__)).
37141 2003-06-05 Jan Hubicka <jh@suse.cz>
37143 * Make-lang.in: Add support for stageprofile and stagefeedback
37145 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37147 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37148 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37150 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37152 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37153 Remove non-VMS directive.
37154 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37156 (Examples of gnatls Usage): Remove VMS alternative.
37158 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37161 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37162 and turn ZCX_By_Default back to False since the underlying support
37163 is not quite there yet.
37165 2003-06-01 Andreas Jaeger <aj@suse.de>
37167 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37168 and ROUND_TYPE_SIZE_UNIT.
37170 2003-05-22 Geert Bosch <bosch@gnat.com>
37172 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37174 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37176 * trans.c (tree_transform): Use location_t and input_location
37178 (build_unit_elab): Likewise.
37179 * utils.c (create_label_decl): Likewise.
37181 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37183 * trans.c (tree_transform, build_unit_elab,
37184 set_lineno): Rename lineno to input_line.
37185 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37186 end_subprog_body): Likewise.
37187 * utils2.c (build_call_raise): Likewise.
37189 2003-05-01 Laurent Guerby <guerby@acm.org>
37192 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37193 LinuxThread and NPTL version, merge from ACT.
37195 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37197 * utils.c (convert): No need to clear TREE_CST_RTL.
37199 2003-04-23 Geert Bosch <bosch@gnat.com>
37201 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37202 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37203 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37204 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37205 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37206 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37207 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37208 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37209 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37210 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37211 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37212 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37213 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37214 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37215 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37216 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37217 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37218 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37219 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37220 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37221 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37222 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37223 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37224 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37225 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37226 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37227 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37228 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37229 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37230 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37231 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37232 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37233 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37234 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37235 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37236 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37237 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37238 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37239 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37240 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37241 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37242 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37243 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37244 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37245 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37246 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37247 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37248 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37249 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37250 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37251 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37252 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37253 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37254 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37255 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37256 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37257 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37258 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37259 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37260 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37261 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37262 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37263 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37264 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37265 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37266 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37267 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37268 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37269 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37270 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37271 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37272 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37273 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37274 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37275 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37276 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37277 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37278 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37279 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37280 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37281 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37282 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37283 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37284 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37285 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37286 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37287 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37288 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37289 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37290 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37291 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37292 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37293 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37294 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37295 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37296 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37297 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37298 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37299 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37300 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37301 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37302 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37303 ali.adb, ali.ads, alloc.ads, argv.c,
37304 atree.adb, atree.ads, atree.h, aux-io.c,
37305 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37306 binde.adb, binde.ads, binderr.adb, binderr.ads,
37307 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37308 butil.adb, butil.ads, cal.c, calendar.ads,
37309 casing.adb, casing.ads, ceinfo.adb, checks.adb,
37310 checks.ads, cio.c, comperr.adb, comperr.ads,
37311 config-lang.in, csets.adb, csets.ads, csinfo.adb,
37312 cstand.adb, cstand.ads, cuintp.c, debug.adb,
37313 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37314 dec-io.ads, dec.ads, deftarg.c, directio.ads,
37315 einfo.adb, einfo.ads, elists.adb, elists.ads,
37316 elists.h, errno.c, errout.adb, errout.ads,
37317 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37318 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37319 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37320 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37321 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37322 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37323 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37324 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37325 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37326 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37327 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37328 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37329 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37330 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37331 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37332 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37333 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37334 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37335 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37336 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37337 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37338 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37339 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37340 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37341 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37342 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37343 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37344 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37345 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37346 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37347 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37348 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37349 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37350 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37351 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37352 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37353 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37354 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37355 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37356 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37357 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37358 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37359 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37360 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37361 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37362 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37363 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37364 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37365 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37366 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37367 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37368 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37369 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37370 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37371 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37372 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37373 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37374 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37375 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37376 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37377 lib.adb, lib.ads, live.adb, live.ads,
37378 machcode.ads, make.adb, make.ads, makeusg.adb,
37379 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37380 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37381 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37382 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37383 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37384 mlib.ads, namet.adb, namet.ads, nlists.adb,
37385 nlists.ads, opt.adb, opt.ads, osint-b.adb,
37386 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37387 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37388 osint.ads, output.adb, output.ads, par-ch10.adb,
37389 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37390 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37391 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37392 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37393 par-tchk.adb, par-util.adb, par.adb, par.ads,
37394 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37395 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37396 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37397 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37398 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37399 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37400 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37401 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37402 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37403 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37404 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37405 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37406 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37407 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37408 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37409 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37410 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37411 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37412 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37413 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37414 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37415 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37416 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37417 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37418 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37419 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37420 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37421 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37422 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37423 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37424 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37425 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37426 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37427 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37428 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37429 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37430 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37431 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37432 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37433 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37434 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37435 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37436 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37437 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37438 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37439 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37440 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37441 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37442 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37443 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37444 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37445 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37446 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37447 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37448 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37449 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37450 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37451 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37452 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37453 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37454 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37455 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37456 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37457 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37458 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37459 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37460 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37461 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37462 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37463 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37464 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37465 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37466 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37467 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37468 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37469 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37470 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37471 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37472 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37473 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37474 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37475 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37476 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37477 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37478 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37479 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37480 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37481 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37482 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37483 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37484 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37485 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37486 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37487 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37488 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37489 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37490 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37491 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37492 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37493 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37494 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37495 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37496 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37497 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37498 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37499 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37500 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37501 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37502 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37503 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37504 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37505 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37506 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37507 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37508 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37509 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37510 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37511 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37512 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37513 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37514 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37515 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37516 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37517 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37518 snames.ads, sprint.adb, sprint.ads, stand.adb,
37519 stand.ads, stringt.adb, stringt.ads, style.adb,
37520 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37521 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37522 switch-m.ads, switch.adb, switch.ads, system.ads,
37523 table.adb, table.ads, targparm.adb, targparm.ads,
37524 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37525 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37526 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37527 ttypef.ads, ttypes.ads, types.adb, types.ads,
37528 uintp.adb, uintp.ads, uname.adb, uname.ads,
37529 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37530 usage.adb, usage.ads, validsw.adb, validsw.ads,
37531 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37532 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37533 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37534 formatting and other trivial changes from ACT.
37536 2003-04-12 Zack Weinberg <zack@codesourcery.com>
37538 * gigi.h, utils2.c (build_constructor):
37539 Rename gnat_build_constructor. Use build_constructor.
37540 * decl.c (gnat_to_gnu_entity)
37541 * trans.c (tree_transform, pos_to_constructor, extract_values)
37542 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37543 (unchecked_convert)
37544 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37545 (fill_vms_descriptor):
37548 2003-04-06 Zack Weinberg <zack@codesourcery.com>
37550 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37551 * misc.c (gnat_tree_size): New function.
37552 (LANG_HOOKS_TREE_SIZE): Override.
37554 2003-04-03 Jason Merrill <jason@redhat.com>
37556 * misc.c (gnat_adjust_rli): #if 0.
37558 2003-03-31 Geert Bosch <bosch@gnat.com>
37561 * link.c : Fix misspelled "const" keyword
37563 2003-03-23 Mark Mitchell <mark@codesourcery.com>
37566 * utils2.c: Adjust calls to put_var_into_stack.
37568 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
37570 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37572 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
37574 * misc.c (gnat_init): Update for new prototype.
37576 2003-03-05 Olivier Hainque <hainque@gnat.com>
37579 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37580 warning, and fix return type for the IN_RTS && !SJLJ case.
37582 2003-03-04 Tom Tromey <tromey@redhat.com>
37584 * Make-lang.in (ada.tags): New target.
37586 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
37589 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37590 wrapper, which name remains constant whatever underlying GCC
37593 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37594 the stable interface needed for a-except.
37596 2003-03-02 Andreas Jaeger <aj@suse.de>
37598 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37599 gnat_ug_wnt.texi: Regenerate.
37601 2003-03-02 Laurent Guerby <guerby@acm.org>
37603 * Makefile.in (install-gnatlib): Match previous change there
37606 2003-02-28 Andreas Schwab <schwab@suse.de>
37608 * Make-lang.in (install-gnatlib): Change to ada directory before
37609 running make instead of using ada/Makefile directly.
37611 2003-02-18 Ben Elliston <bje@redhat.com>
37613 Part of PR ada/9406
37614 * gnat_ug.texi (Binder output file): Grammar fix.
37616 2003-02-18 Ben Elliston <bje@redhat.com>
37619 * 5qtaprop.adb (Sleep): Fix typo in comment.
37621 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
37623 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37624 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37625 gnat_ug_wnt.texi: Regenerate.
37627 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37629 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37630 be created if necessary.
37631 (ada.install-common): Let $(DESTDIR)$(bindir) be created
37632 if necessary. Remove erroneous and redundant gnatchop
37633 installation commands. Test for gnatdll before attempting
37635 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37636 and gnatdll from all plausible locations.
37638 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
37640 * utils2.c (build_unary_op): Don't check flag_volatile.
37641 * gnat_ug.texi: Remove -fvolatile from example.
37642 * gnat_ug_vxw.texi: Likewise.
37644 2003-01-29 Laurent Guerby <guerby@acm.org>
37647 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37648 * Makefile.in: match previous change.
37649 * Make-lang.in: match previous change.
37651 2003-01-29 Joel Sherrill <joel@OARcorp.com>
37653 * 5rosinte.ads: Add SIGXCPU.
37654 * 5rtpopsp.adb: New file.
37655 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37656 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37657 specific file 5rtpopsp.adb.
37658 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
37659 is likely needed for all newlib targets.
37660 * init.c: Add RTEMS specific version of __gnat_initialize().
37662 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37664 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37666 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37668 * init.c (__gnat_error_handler): Make msg const.
37670 * gmem.c (convert_addresses): Move declaration ...
37671 * adaint.h: ... here.
37672 * adaint.c (convert_addresses): Adapt addrs type to match
37675 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37677 2003-01-24 Andreas Schwab <schwab@suse.de>
37679 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37680 size_t to avoid warning.
37682 2003-01-21 Zack Weinberg <zack@codesourcery.com>
37684 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37686 2003-01-09 Geoffrey Keating <geoffk@apple.com>
37688 * gnat_rm.texi: Remove RCS version number.
37690 * ada-tree.h (union lang_tree_node): Add chain_next option.
37692 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37694 * Make-lang.in (ada.install-info, ada.install-common,
37695 ada.uninstall): Prepend $(DESTDIR) to the destination
37696 directory in all (un)installation commands.
37697 * Makefile.in (install-gnatlib, install-rts): Ditto.
37699 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
37701 * gnat_rm.texi, gnat_ug.texi: Use @copying.
37702 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37703 gnat_ug_wnt.texi: Regenerate.
37705 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
37707 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
37709 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37710 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37711 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37712 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37713 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37714 $(srcdir)/doc/include/gcc-common.texi.
37716 2002-12-15 Geert Bosch <bosch@gnat.com>
37718 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37720 2002-12-14 Geert Bosch <bosch@gnat.com>
37723 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37724 case of a body created for a Renaming_As_Body, on which
37725 conformance checks are not performed.
37727 2002-11-30 Zack Weinberg <zack@codesourcery.com>
37729 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37730 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37731 not already included.
37732 * Make-lang.in: Update dependencies.
37734 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
37735 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37736 solution to buffer overflow bug on GNU/Linux.
37738 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
37742 * bindgen.adb: Remove all references to Public_Version.
37743 * comperr.adb: Remove all references to Public_Version and
37744 GNATPRO_Version; correct bug reporting instructions.
37745 * comperr.ads: Change to match bug box.
37746 * gnatvsn.ads: Remove all references to Public version and
37749 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
37752 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37756 * config-lang.in: Remove diff_excludes.
37758 2002-11-05 Graham Stott <graham.stott@btinternet.com>
37761 * trans.c (gnu_pending_elaboration_lists): New GC root.
37762 (build_unit_elab): Use..
37764 2002-10-30 Geert Bosch <bosch@gnat.com>
37767 * misc.c : Include optabs.h
37769 * Make-lang.in (misc.o): Add dependency on optabs.h
37771 2002-10-29 Geert Bosch <bosch@gnat.com>
37774 * Make-lang.in (gnatbind): Depend on CONFIG_H
37776 2002-10-29 Geert bosch <bosch@gnat.com>
37779 * misc.c: Unrevert misc.c (1.13)
37781 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
37783 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37784 maintainership comments.
37786 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
37789 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37790 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37791 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37792 7staprop.adb: Correct statements in comments about
37793 maintainership of GNAT.
37796 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37797 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37798 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37799 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37800 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37801 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37802 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37803 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37804 comments about maintainership of GNAT.
37806 PR ada/6919 (forward port of patch for PR ada/5904)
37807 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37808 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37809 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37810 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37811 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37812 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37813 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37814 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37815 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37816 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37817 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37818 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37819 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37820 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37821 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37822 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37823 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37824 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37825 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37826 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37827 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37828 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37829 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37830 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37831 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37832 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37833 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37834 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37835 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37836 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37837 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37838 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37839 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37840 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37841 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37842 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37843 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37844 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37845 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37846 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37847 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37848 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37849 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37850 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37851 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37852 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37853 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37854 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37855 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37856 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37857 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37858 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37859 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37860 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37861 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37862 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37863 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37864 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37865 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37866 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37867 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37868 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37869 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37870 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37871 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37872 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37873 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37874 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37875 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37876 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37877 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37878 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37879 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37880 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37881 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
37882 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
37883 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
37884 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
37885 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
37886 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
37887 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
37888 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
37889 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
37890 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
37891 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
37892 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
37893 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
37894 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
37895 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
37896 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
37897 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
37898 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
37899 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
37900 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
37901 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
37902 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
37903 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
37904 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
37905 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
37906 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
37907 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
37908 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
37909 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
37910 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
37911 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
37912 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
37913 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
37914 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
37915 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
37916 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
37917 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
37918 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
37919 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
37920 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
37921 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
37922 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
37923 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
37924 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
37925 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
37926 par-endh.adb par-labl.adb par-load.adb par-prag.adb
37927 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
37928 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
37929 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
37930 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
37931 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
37932 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
37933 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
37934 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
37935 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
37936 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
37937 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
37938 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
37939 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
37940 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
37941 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
37942 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
37943 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
37944 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
37945 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
37946 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
37947 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
37948 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
37949 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
37950 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
37951 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
37952 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
37953 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
37954 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
37955 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
37956 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
37957 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
37958 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
37959 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
37960 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
37961 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
37962 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
37963 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
37964 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
37965 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
37966 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
37967 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
37968 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
37969 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
37970 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
37971 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
37972 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
37973 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
37974 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
37975 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
37976 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
37977 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
37978 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
37979 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
37980 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
37981 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
37982 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
37983 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
37984 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
37985 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
37986 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
37987 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
37988 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
37989 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
37990 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
37991 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
37992 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
37993 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
37994 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
37995 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
37996 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
37997 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
37998 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
37999 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38000 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38001 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38002 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38003 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38004 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38005 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38006 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38007 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38008 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38009 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38010 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38011 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38012 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38013 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38014 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38015 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38016 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38017 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38018 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38019 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38020 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38021 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38022 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38023 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38024 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38025 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38026 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38027 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38028 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38029 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38030 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38031 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38032 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38033 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38034 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38035 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38036 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38037 stringt.ads stringt.h style.adb style.ads stylesw.adb
38038 stylesw.ads switch.adb switch.ads sysdep.c system.ads
38039 table.adb table.ads targparm.adb targparm.ads targtyps.c
38040 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38041 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38042 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38043 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38044 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38045 usage.ads utils.c utils2.c validsw.adb validsw.ads
38046 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38047 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38048 xtreeprs.adb: Correct statements in comments about maintainership
38051 2002-09-23 Zack Weinberg <zack@codesourcery.com>
38053 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38054 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38055 * gnatvsn.ads: Gnat_Version_String is now a function.
38056 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
38057 copy the C version_string into a String and return it.
38058 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38059 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38060 Remove pragma Ident (Gnat_Version_String). If this was the
38061 sole use of package Gnatvsn, remove the with statement too.
38062 * gnat1drv.adb: Tweak -gnatv output.
38064 2002-09-17 Richard Henderson <rth@redhat.com>
38066 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38067 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38068 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38069 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38070 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38071 and real_2expN instead of a loop.
38072 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38073 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38075 2002-08-25 Andre Leis <a.leis@gmx.net>
38076 David Billinghurst <David.Billinghurst@riotinto.com>
38078 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38080 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38082 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38083 Remove $(CONFIG_H) dependency.
38085 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
38087 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38089 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38091 * adadecode.c (ada_demangle): Use xstrdup in lieu of
38093 * misc.c (gnat_decode_option): Likewise.
38095 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38097 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38098 function approach did not work well because of a side effect (the
38099 function call could reallocate the table which was being indexed
38100 using its result). Fixes ada/4851. [RESURRECTED]
38102 2002-07-01 Roger Sayle <roger@eyesopen.com>
38104 * ada/utils.c (builtin_function): Accept an additional parameter.
38106 2002-06-28 Andreas Jaeger <aj@suse.de>
38109 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38112 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38114 * Makefile.in (SHELL): Set to @SHELL@.
38116 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38118 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38119 array size calculation.
38121 2002-06-04 Andreas Jaeger <aj@suse.de>
38123 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38126 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38128 Merge from pch-branch:
38130 * config-lang.in (gtfiles): Add ada-tree.h.
38131 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38132 (SET_TYPE_MODULUS): New.
38133 (SET_TYPE_INDEX): New.
38134 (SET_TYPE_DIGITS_VALUE): New.
38135 (SET_TYPE_RM_SIZE): New.
38136 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38137 (SET_TYPE_ADA_SIZE): New.
38138 (SET_TYPE_ACTUAL_BOUNDS): New.
38139 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38140 (SET_DECL_ORIGINAL_FIELD): New.
38141 (TREE_LOOP_ID): Correct typo.
38142 * decl.c: Use new macros.
38143 * utils.c: Include debug.h, use new macros.
38144 * utils2.c: Use new macros.
38146 * ada-tree.h: Update all macros for new tree description.
38147 (struct tree_loop_id): New.
38148 (union lang_tree_node): New.
38149 (struct lang_decl): New.
38150 (struct lang_type): New.
38151 * misc.c (gnat_mark_tree): Delete.
38152 (LANG_HOOKS_MARK_TREE): Delete.
38153 * trans.c (tree_transform): No longer any need to cast
38156 * utils.c (struct language_function): New dummy structure.
38158 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38159 (misc.o): Likewise.
38160 (utils.o): Likewise; also gtype-ada.h.
38161 * Make-lang.in (gnat1): Add dependency on s-gtype.
38162 (gnatbind): Add dependency on $(CONFIG_H).
38163 * utils.c: Correct last #include.
38164 (stuct e_stack): Remove unnecessary 'static'.
38165 (mark_e_stack): Remove unused prototype.
38167 * scn-nlit.adb: Remove whitespace after version number to
38168 keep lines under 80 chars.
38169 * snames.adb: Likewise.
38170 * treepr.ads: Likewise.
38172 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38173 (misc.o): Likewise.
38174 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38175 * config-lang.in (gtfiles): New.
38176 * decl.c: Use gengtype for roots.
38177 * gigi.h: Use gengtype for roots.
38178 * trans.c: Use gengtype for roots.
38179 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38181 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38183 * misc.c (gnat_init): Adjust setting of internal_error_function.
38185 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38187 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38188 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38189 gnat_ug_wnt.texi: Regenerate.
38191 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38193 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38195 * cstreams.c (max_path_len): Move from here ...
38196 * adaint.c (__gnat_max_path_len): ... to here.
38197 * adaint.c (__gnat_max_path_len): Declare.
38198 * g-dirope.adb (Max_Path): Adjust.
38199 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38200 * i-cstrea.ads (max_path_len): Adjust.
38201 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38202 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38204 * Makefile.in, Make-lang.in: Documentation is now built in
38205 Make-lang.in. Store Info and generated Texinfo files in the
38207 * gnat_ug.texi: Remove CVS keywords, correct version number.
38208 Set file name correctly.
38210 * gnat_ug_*.texi: Add.
38211 * .cvsignore: Ignore generated Texinfo files.
38213 2002-05-30 Zack Weinberg <zack@codesourcery.com>
38215 * ada.h: Add MI guard macro.
38216 (SUBTYPE): Define constants with an anonymous enum, not static
38218 (IN): Cast constants to appropriate type before use.
38220 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
38222 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38225 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38227 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38228 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38229 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38230 (ALL_ADA_CFLAGS): Likewise.
38231 (ADA_INCLUDES): Likewise.
38232 Adapt for new working dir.
38233 (GNATBIND): Use Makefile.in version.
38234 (.SUFFIXES): Copy from Makefile.in.
38235 (ada-warn): Define.
38236 (.adb.o, .ads.o): Copy from Makefile.in.
38237 Added $(OUTPUT_OPTION).
38238 (GNAT1_C_OBJS): Moved from Makefile.in.
38239 Prefix with ada subdir.
38240 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38241 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38242 Adapt for new working dir.
38243 (EXTRA_GNATBIND_OBJS): Likewise.
38244 (ADA_BACKEND): Moved from Makefile.in.
38245 Renamed to avoid conflict with global BACKEND.
38247 (TARGET_ADA_SRCS): Moved from Makefile.in.
38248 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38250 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38251 (ada_extra_files): Moved from Makefile.in.
38252 Prefix with ada subdir.
38253 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38254 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38255 (ada/nmake.ads): Likewise.
38256 (update-sources): Moved from Makefile.in.
38257 Prefix with ada subdir.
38258 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38259 (ADA_TREE_H): Likewise.
38260 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38261 (ada/memtrack.o): Likewise.
38262 (ada/adadecode.o): Likewise.
38263 Update dependencies.
38264 (ada/adaint.o): New.
38265 (ada/argv.o): Moved from Makefile.in.
38266 Prefix with ada subdir.
38267 Update dependencies.
38268 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38269 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38270 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38271 Prefix with ada subdir.
38272 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38273 (GNAT DEPENDENCIES): Regenerate.
38274 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38275 toplevel Makefile.in.
38276 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38277 (TARGET_ADA_SRCS): Removed.
38278 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38279 (GNATBIND_OBJS): Likewise.
38280 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38281 (BACKEND): Removed.
38282 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38283 (TREE_H): Likewise.
38284 (ada_extra_files): Likewise.
38285 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38286 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38287 (update-sources): Likewise.
38288 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38289 (ADA_TREE_H): Likewise.
38290 (adadecoce.o): Likewise.
38291 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38292 (GNAT DEPENDENCIES): Likewise.
38294 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38296 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38297 * Makefile.in: Likewise.
38299 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38301 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38302 Restore $(CONFIG_H) and prefix.o dependencies.
38303 (ada.stage[1-4]): Depend on stage?-start.
38305 * Makefile.in (b_gnatb.c): Depend on interfac.o.
38307 2002-05-02 Jim Wilson <wilson@redhat.com>
38309 * utils.c (finish_record_type): Change record_size to record_type.
38311 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
38313 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38314 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38315 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38317 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
38319 * misc.c (gnat_parse_file): Update.
38321 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
38323 * misc.c (gnat_init): Don't set lang_attribute_common.
38325 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
38327 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38329 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
38331 * gnat_ug.texi: New file.
38333 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
38334 instead of gfdl.texi
38336 * xgnatug.adb, ug_words: New files.
38338 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
38339 gnat_rm and gnat-style manuals.
38341 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
38343 * gigi.h (incomplete_type_error): Remove.
38344 * utils.c (incomplete_type_error): Remove.
38346 2002-04-16 Mark Mitchell <mark@codesourcery.com>
38348 * trans.c (tree_transform): Add has_scope argument to
38349 expand_start_stmt_expr.
38351 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38353 * gigi.h (truthvalue_conversion): Rename.
38354 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38355 * trans.c (tree_transform): Update.
38356 * utils2.c (truthvalue_conversion): Rename, update.
38357 (build_binary_op, build_unary_op): Update.
38359 2002-04-04 Laurent Guerby <guerby@acm.org>
38361 * make.adb: Implement -margs, remove restriction about file name placement.
38362 * makeusg.adb: Documentation update.
38363 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38364 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38366 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38368 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38369 (builtin_function): Similarly.
38371 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38373 * decl.c (gnat_to_gnu_entity): Update.
38374 * gigi.h (mark_addressable): Rename.
38375 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38376 * trans.c (tree_transform): Update.
38377 * utils.c (create_var_decl): Update.
38378 * util2.c (build_binary_op, build_unary_op,
38379 fill_vms_descriptor): Update.
38380 (mark_addressable): Rename, update.
38382 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38384 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38386 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38387 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38388 * trans.c (tree_transform, convert_with_check): Update.
38389 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38392 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
38394 * gigi.h (finish_incomplete_decl): Rename.
38395 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38396 * utils.c (gnat_init_decl_processing): Don't set hook.
38397 (finish_incomplete_decl): Rename.
38399 2002-03-29 Andreas Schwab <schwab@suse.de>
38401 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38404 2001-03-28 Robert Dewar <dewar@gnat.com>
38407 (Remove_Checks): New procedure
38410 (Remove_Checks): New procedure
38413 Use new Duplicate_Subexpr functions
38414 (Duplicate_Subexpr_No_Checks): New procedure
38415 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38416 (Duplicate_Subexpr): Restore original form (checks duplicated)
38417 (Duplicate_Subexpr): Call Remove_Checks
38420 (Duplicate_Subexpr_No_Checks): New procedure
38421 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38422 Add 2002 to copyright notice
38424 * sem_util.adb: Use new Duplicate_Subexpr functions
38427 (Eval_Indexed_Component): This is the place to call
38428 Constant_Array_Ref and to replace the value. We simply merge
38429 the code of this function in here, since it is now no longer
38430 used elsewhere. This fixes the problem of the back end not
38431 realizing we were clever enough to see that this was
38433 (Expr_Val): Remove call to Constant_Array_Ref
38434 (Expr_Rep_Val): Remove call to Constant_Array_Ref
38436 (Constant_Array_Ref): Deal with string literals (patch
38437 suggested by Zack Weinberg on the gcc list)
38439 2001-03-28 Ed Schonberg <schonber@gnat.com>
38441 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38442 Duplicate_Subexpr_Move_Checks.
38444 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38445 Duplicate_Subexpr_Move_Checks.
38447 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38448 value of array exists before retrieving it (it may a private
38449 protected component in a function).
38451 2002-03-28 Geert Bosch <bosch@gnat.com>
38453 * prj-pp.adb : New file.
38455 * prj-pp.ads : New file.
38457 2002-03-28 Andreas Jaeger <aj@suse.de>
38459 * Makefile.in (stamp-sdefault): Fix path for Makefile.
38461 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
38463 * misc.c (gnat_expand_expr): Move prototype.
38465 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38467 * misc.c (insert_default_attributes): Remove.
38469 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38471 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38472 (gnat_init): Don't set hook.
38473 (gnat_expand_expr): Fix prototype.
38475 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38477 * misc.c (ggc_p): Remove.
38479 2002-03-27 Geert Bosch <bosch@gnat.com>
38481 * prj-makr.ads, prj-makr.adb : New files.
38483 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
38485 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38486 (lang_mark_tree): Make static, rename.
38488 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
38490 * misc.c (maybe_build_cleanup): Remove.
38492 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
38494 * gigi.h (yyparse): Remove.
38496 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
38498 From Ben Brosgol <brosgol@gnat.com>
38499 * gnat_rm.texi: Sync with ACT version.
38501 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
38503 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38504 (gnat_init): Remove old hook.
38506 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
38508 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38509 (yyparse): Rename gnat_parse_file.
38511 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
38513 Delete all lines containing "$Revision:".
38514 * xeinfo.adb: Don't look for revision numbers.
38515 * xnmake.adb: Likewise.
38516 * xsinfo.adb: Likewise.
38517 * xsnames.adb: Likewise.
38518 * xtreeprs.adb: Likewise.
38520 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38522 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38523 gnat_tree_code_name): Delete.
38524 (tree_code_type, tree_code_length, tree_code_name): Define.
38525 (gnat_init): Don't try to copy into the various tree_code
38528 2002-03-11 Richard Henderson <rth@redhat.com>
38530 * Makefile.in (.NOTPARALLEL): Add fake tag.
38532 2002-03-07 Geert Bosch <bosch@gnat.com>
38534 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38535 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38536 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38537 switch-m.adb, switch-m.ads : New files.
38539 2002-03-07 Geert Bosch <bosch@gnat.com>
38541 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38542 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38543 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38544 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38545 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38546 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38547 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38548 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38549 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38550 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38551 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38552 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38553 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38554 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38555 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38556 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38557 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38558 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38559 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38560 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38561 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38562 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38563 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38564 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38565 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38566 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38567 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38568 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38569 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38570 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38571 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38572 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38573 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38574 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38575 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38576 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38577 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38578 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38579 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38580 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38581 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38582 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38583 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38584 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38585 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38586 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38587 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38588 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38589 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38590 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38591 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38592 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38593 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38594 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38595 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38596 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38597 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38598 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38599 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38600 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38601 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38602 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38603 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38604 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38605 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38606 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38607 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38608 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38609 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38610 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38611 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38612 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38613 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38614 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38615 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38616 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38617 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38618 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38619 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38620 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38621 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38622 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38623 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38624 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38625 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38626 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38627 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38628 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38629 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38630 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38631 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38632 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38633 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38634 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38635 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38636 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38637 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38639 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38640 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38641 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38642 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38644 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38645 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38647 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38648 to mdll-fil.ad[bs] and mdll-util.ad[bs]
38650 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38651 from mdllfile.ad[bs] and mdlltool.ad[bs]
38653 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38655 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38656 lieu of explicit sizeof/sizeof.
38658 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
38660 * misc.c (copy_lang_decl): Remove.
38662 2002-02-27 Zack Weinberg <zack@codesourcery.com>
38664 * misc.c: Delete traditional-mode-related code copied from the
38665 C front end but not used, or used only to permit the compiler
38668 2002-02-07 Richard Henderson <rth@redhat.com>
38670 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38671 * adaint.h (__gnat_to_gm_time): Update prototype.
38673 2002-01-30 Richard Henderson <rth@redhat.com>
38675 * trans.c (tree_transform) [N_Loop_Statement]: Use
38676 expand_exit_loop_top_cond.
38678 2001-12-23 Richard Henderson <rth@redhat.com>
38680 * utils.c (end_subprog_body): Push GC context around
38681 rest_of_compilation for nested functions.
38683 2001-12-23 Richard Henderson <rth@redhat.com>
38685 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38687 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
38689 * gnat-style.texi (Declarations and Types): Remove ancient style
38690 rule which was mandated by code generation issues.
38692 * gnat-style.texi (header): Add @dircategory, @direntry.
38693 (title page): Remove date.
38694 (general) Add @./@: where approriate, and two spaces after the
38695 full stop at the end of a sentence. Use @samp markup when
38696 referring concrete lexical entities (keywords, attribute names
38697 etc.), and @syntax for ARM grammar elements. Use @r for English
38698 text in comments. Use @emph for emphasis. Change "if-statements"
38699 etc. to "if statements" (without @samp). Break long lines. Make
38700 casing of section names consistent.
38701 (Identifiers): Use @samp markup for variable names.
38702 (Comments): Use @samp markup for comment characters. Line-end
38703 comments may follow any Ada code, not just statements. Fix
38704 misspelling of "Integer" as "integer".
38705 (Loop statements): Do not use variable name "I", use "J".
38706 (Subprogram Declarations): Document alignment.
38707 (Subprogram Bodies, Block statements): Document empty line before
38710 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
38712 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38713 function approach did not work well because of a side effect (the
38714 function call could reallocate the table which was being indexed
38715 using its result). Fixes ada/4851.
38717 2001-12-19 Robert Dewar <dewar@gnat.com>
38719 * bindgen.adb: Minor reformatting
38721 * cstand.adb: Minor reformatting
38723 * fmap.adb: Minor reformatting
38724 Change name from Add for Add_To_File_Map (Add is much too generic)
38725 Change Path_Name_Of to Mapped_Path_Name
38726 Change File_Name_Of to Mapped_File_Name
38727 Fix copyright dates in header
38730 Change name from Add for Add_To_File_Map (Add is much too generic)
38731 Change Path_Name_Of to Mapped_Path_Name
38732 Change File_Name_Of to Mapped_File_Name
38733 Fix copyright dates in header
38735 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
38736 Add use clause for Fmap.
38738 * make.adb: Minor reformatting
38740 * osint.adb: Minor reformatting. Change of names in Fmap.
38741 Add use clause for Fmap.
38743 * prj-env.adb: Minor reformatting
38745 * prj-env.ads: Minor reformatting
38747 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
38748 error found (there were odd exceptions to this general rule in
38749 -gnatec/-gnatem processing)
38751 2001-12-19 Olivier Hainque <hainque@gnat.com>
38753 * raise.c (__gnat_eh_personality): Exception handling personality
38754 routine for Ada. Still in rough state, inspired from the C++ version
38755 and still containing a bunch of debugging artifacts.
38756 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38757 inspired from the C++ library.
38759 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38760 exception handling integration.
38762 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38764 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38765 (HIE_SOURCES): Add s-secsta.ad{s,b}.
38766 (HIE_OBJS): Add s-fat*.o
38767 (RAVEN_SOURCES): Remove files that are no longer required. Add
38768 interrupt handling files.
38769 (RAVEN_MOD): Removed, no longer needed.
38771 2001-12-19 Robert Dewar <dewar@gnat.com>
38773 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38774 Add 2001 to copyright date
38776 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38777 need to force universal inlining for these cases.
38779 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38781 * s-taprob.adb: Minor clean ups so that this unit can be used in
38784 * exp_ch7.adb: Allow use of secondary stack in HI mode.
38785 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38787 2001-12-19 Vincent Celier <celier@gnat.com>
38789 * prj-tree.ads (Project_Node_Record): Add comments for components
38790 Pkg_Id and Case_Insensitive.
38792 2001-12-19 Pascal Obry <obry@gnat.com>
38794 * g-socket.adb: Minor reformatting. Found while reading code.
38796 2001-12-19 Robert Dewar <dewar@gnat.com>
38798 * prj-tree.ads: Minor reformatting
38800 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
38802 * config-lang.in (diff_excludes): Remove.
38804 2001-12-17 Ed Schonberg <schonber@gnat.com>
38806 * sem_res.adb (Resolve_Selected_Component): do not generate a
38807 discriminant check if the selected component is a component of
38808 the argument of an initialization procedure.
38810 * trans.c (tree_transform, case of arithmetic operators): If result
38811 type is private, the gnu_type is the base type of the full view,
38812 given that the full view itself may be a subtype.
38814 2001-12-17 Robert Dewar <dewar@gnat.com>
38816 * sem_res.adb: Minor reformatting
38818 * trans.c (tree_transform, case N_Real_Literal): Add missing third
38819 parameter in call to Machine (unknown horrible effects from this
38822 * urealp.h: Add definition of Round_Even for call to Machine
38823 Add third parameter for Machine
38825 2001-12-17 Ed Schonberg <schonber@gnat.com>
38827 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38828 predefined units in No_Run_Time mode.
38830 2001-12-17 Richard Kenner <kenner@gnat.com>
38832 * misc.c (insn-codes.h): Now include.
38834 2001-12-17 Olivier Hainque <hainque@gnat.com>
38836 * a-except.adb: Preparation work for future integration of the GCC 3
38837 exception handling mechanism
38838 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38839 to factorize previous code sequences and make them externally callable,
38840 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38841 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38842 Use the new notification routines.
38844 2001-12-17 Emmanuel Briot <briot@gnat.com>
38846 * prj-tree.ads (First_Choice_Of): Document the when others case
38848 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38850 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38851 HI-E mode, in order to support Ravenscar profile properly.
38853 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38854 mode on 32 bits targets.
38856 2001-12-17 Vincent Celier <celier@gnat.com>
38858 * fmap.adb: Initial version.
38860 * fmap.ads: Initial version.
38862 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38863 If search is successfully done, add to mapping.
38865 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38868 (Gnatmake): Add new local variable Mapping_File_Name.
38869 Create mapping file when using project file(s).
38870 Delete mapping file before exiting.
38872 * opt.ads (Mapping_File_Name): New variable
38874 * osint.adb (Find_File): Use path name found in mapping, if any.
38876 * prj-env.adb (Create_Mapping_File): New procedure
38878 * prj-env.ads (Create_Mapping_File): New procedure.
38880 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38883 * usage.adb: Add entry for new switch -gnatem.
38885 * Makefile.in: Add dependencies for fmap.o.
38887 2001-12-17 Ed Schonberg <schonber@gnat.com>
38889 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
38890 is a package instantiation rewritten as a package body.
38891 (Install_Withed_Unit): Undo previous change, now redundant.
38893 2001-12-17 Gary Dismuke <dismukes@gnat.com>
38896 (Compute_Length): Move conversion to Unsigned to callers.
38897 (Get_Max_Size): Convert Len expression to Unsigned after calls to
38898 Compute_Length and Determine_Range.
38899 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
38900 Compute_Length and Determine_Range.
38901 Above changes fix problem with length computation for supernull arrays
38902 where Max (Len, 0) wasn't getting applied due to the Unsigned
38903 conversion used by Compute_Length.
38905 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38908 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
38909 System.Secondary_Stack.
38910 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
38912 Remove unused entity RE_Exception_Data.
38914 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
38916 * rident.ads (No_Secondary_Stack): New restriction.
38918 2001-12-17 Joel Brobecker <brobecke@gnat.com>
38920 * gnat_rm.texi: Fix minor typos. Found while reading the section
38921 regarding "Bit_Order Clauses" that was sent to a customer.
38922 Very interesting documentation!
38924 2001-12-17 Robert Dewar <dewar@gnat.com>
38926 * sem_case.adb (Choice_Image): Avoid creating improper character
38927 literal names by using the routine Set_Character_Literal_Name. This
38928 fixes bombs in certain error message cases.
38930 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38932 * a-reatim.adb: Minor reformatting.
38934 2001-12-17 Ed Schonberg <schonber@gnat.com>
38936 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
38937 case where the formal is an extension of another formal in the current
38938 unit or in a parent generic unit.
38940 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38942 * s-tposen.adb: Update comments. Minor reformatting.
38943 Minor code clean up.
38945 * s-tarest.adb: Update comments. Minor code reorganization.
38947 2001-12-17 Gary Dismukes <dismukes@gnat.com>
38949 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
38952 2001-12-17 Robert Dewa <dewar@gnat.com>
38954 * exp_attr.adb: Minor reformatting
38956 2001-12-17 Ed Schonberg <schonber@gnat.com>
38958 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
38959 derivations nested within a child unit: verify that the parent
38960 type is declared in an outer scope.
38962 2001-12-17 Robert Dewar <dewar@gnat.com>
38964 * sem_ch12.adb: Minor reformatting
38966 2001-12-17 Ed Schonberg <schonber@gnat.com>
38968 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
38969 warning if current unit is a predefined one, from which bodies may
38972 2001-12-17 Robert Dewar <dewar@gnat.com>
38974 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
38975 Fix header format. Add 2001 to copyright date.
38977 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
38978 which caused CE during compilation if checks were enabled.
38980 2001-12-17 Vincent Celier <celier@gnat.com>
38983 (Switches_Of): New function
38984 (Test_If_Relative_Path): New procedure
38985 (Add_Switches): Use new function Switches_Of
38986 (Collect_Arguments_And_Compile): Use new function Switches_Of.
38987 When using a project file, test if there are any relative
38988 search path. Fail if there are any.
38989 (Gnatmake): Only add switches for the primary directory when not using
38990 a project file. When using a project file, change directory to the
38991 object directory of the main project file. When using a project file,
38992 test if there are any relative search path. Fail if there are any.
38993 When using a project file, fail if specified executable is relative
38994 path with directory information, and prepend executable, if not
38995 specified as an absolute path, with the exec directory. Make sure
38996 that only one -o switch is transmitted to the linker.
38998 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39001 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39002 when using a non standard naming scheme.
39003 (Check_Ada_Naming_Scheme): Make sure that error messages
39004 do not raise exceptions.
39005 (Is_Illegal_Append): Return True if there is no dot in the suffix.
39006 (Language_Independent_Check): Check the exec directory.
39008 * prj.adb (Project_Empty): Add new component Exec_Directory
39011 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39012 (Project_Data): Add component Exec_Directory
39014 * snames.adb: Updated to match snames.ads revision 1.215
39016 * snames.ads: Added Exec_Dir
39018 2001-12-17 Robert Dewar <dewar@gnat.com>
39020 * make.adb: Minor reformatting
39022 * prj-nmsc.adb: Minor reformatting
39024 * snames.adb: Updated to match snames.ads
39026 * snames.ads: Alphebetize entries for project file
39028 2001-12-17 Ed Schonberg <schonber@gnat.com>
39030 * trans.c (process_freeze_entity): Do nothing if the entity is a
39031 subprogram that was already elaborated.
39033 2001-12-17 Richard Kenner <kenner@gnat.com>
39035 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39036 and Esize if object is referenced via pointer.
39038 2001-12-17 Ed Schonberg <schonber@gnat.com>
39040 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39041 is discrete before analyzing choices.
39043 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39045 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39046 containing the name of the Ada Main Program. This string is mainly
39047 intended for the debugger.
39048 (Gen_Output_File_C): Do the equivalent change when generating a C file.
39050 2001-12-17 Robert Dewar <dewar@gnat.com>
39052 * ali.adb: Set new Dummy_Entry field in dependency entry
39054 * ali.ads: Add Dummy_Entry field to source dependency table
39056 * bcheck.adb (Check_Consistency): Ignore dummy D lines
39058 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39060 * lib-writ.ads: Document dummy D lines for missing files.
39062 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39064 2001-12-17 Robert Dewar <dewar@gnat.com>
39066 * ali.adb: Type reference does not reset current file.
39068 * ali.adb: Recognize and scan renaming reference
39070 * ali.ads: Add spec for storing renaming references.
39072 * lib-xref.ads: Add documentation for handling of renaming references
39074 * lib-xref.adb: Implement output of renaming reference.
39077 (Determine_Range): Document local variables
39078 (Determine_Range): Make sure Hbound is initialized. It looks as though
39079 there could be a real problem here with an uninitialized reference
39080 to Hbound, but no actual example of failure has been found.
39082 2001-12-17 Laurent Pautet <pautet@gnat.com>
39085 Fix comment of Shutdown_Socket and Close_Socket. These functions
39086 should not fail silently because if they are called twice, this
39087 probably means that there is a race condition in the user program.
39088 Anyway, this behaviour is consistent with the rest of this unit.
39089 When an error occurs, an exception is raised with the error message
39090 as exception message.
39092 2001-12-17 Robert Dewar <dewar@gnat.com>
39094 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39095 that it happens before modification of Sloc values for -gnatD.
39097 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39098 so that it happens before modification of Sloc values for -gnatD.
39100 * switch.adb: Minor reformatting
39102 2001-12-15 Richard Henderson <rth@redhat.com>
39104 * sem_ch7.adb: Wrap comment.
39106 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39108 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39109 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39110 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39111 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39112 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39113 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39114 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39115 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39116 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39117 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39118 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39119 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39120 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39121 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39122 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39123 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39124 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39125 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39126 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39127 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39128 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39129 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39130 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39131 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39134 2001-12-14 Vincent Celier <celier@gnat.com>
39136 * osint.adb(Create_Debug_File): When an object file is specified,
39137 put the .dg file in the same directory as the object file.
39139 2001-12-14 Robert Dewar <dewar@gnat.com>
39141 * osint.adb: Minor reformatting
39143 * lib-xref.adb (Output_Instantiation): New procedure to generate
39144 instantiation references.
39146 * lib-xref.ads: Add documentation of handling of generic references.
39148 * ali.adb (Read_Instantiation_Ref): New procedure to read
39149 instantiation references
39151 * ali.ads: Add spec for storing instantiation references
39153 * bindusg.adb: Minor reformatting
39155 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39157 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39159 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39161 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39165 Add 2001 to copyright date
39166 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39168 2001-12-14 Matt Gingell <gingell@gnat.com>
39170 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39173 2001-12-14 Richard Kenner <kenner@gnat.com>
39175 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39176 if operand is CONSTRUCTOR.
39178 2001-12-14 Ed Schonberg <schonber@gnat.com>
39180 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39181 before emiting check on right-hand side, so that exception information
39184 2001-12-14 Richard Kenner <kenner@gnat.com>
39186 * utils.c (create_var_decl): Throw away initializing expression
39187 if just annotating types and non-constant.
39189 2001-12-14 Vincent Celier <celier@gnat.com>
39191 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39194 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39196 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39198 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39200 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39202 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39204 * ChangeLog: Remove piece of diff output.
39206 2001-12-14 Geert Bosch <bosch@gnat.com>
39208 * config-lang.in: Update copyright notice
39210 * layout.adb: Remove commented out code.
39212 * mdllfile.ads: Update copyright notice. Fix header format.
39214 * sem_case.ads: Likewise.
39216 * sem_ch3.adb: Minor reformatting.
39218 2001-12-12 Geert Bosch <bosch@gnat.com>
39220 * freeze.ads: Update copyright date.
39222 * g-comlin.ads: Minor reformatting.
39224 * gnat-style.texi: Fix typo.
39226 2001-12-12 Geert Bosch <bosch@gnat.com>
39228 * einfo.h: Regenerate.
39230 2001-12-12 Ed Schonberg <schonber@gnat.com>
39232 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39233 on known node types, rather than untyped fields. Further cleanups.
39235 2001-12-12 Robert Dewar <dewar@gnat.com>
39238 (Save_Entity_Descendant): Minor comment update.
39239 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39240 of an N_Attribute_Reference node. As per note below, this does not
39241 eliminate need for Associated_Node in attribute ref nodes.
39242 (Associated_Node): Documentation explicitly mentions attribute
39243 reference nodes, since this field is used in such nodes.
39245 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39247 2001-12-12 Robert Dewar <dewar@gnat.com>
39249 * s-stalib.adb: Add more comments on with statements being needed
39251 * par-ch12.adb: Minor reformatting
39253 * prj-dect.ads: Fix copyright header
39255 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39256 inputs fit in 32 bits, but the result still overflows.
39258 * s-fatgen.ads: Minor comment improvement
39260 2001-12-12 Ed Schonberg <schonber@gnat.com>
39262 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39263 formal derived type, look for an inherited component from the full
39264 view of the parent, if any.
39266 2001-12-12 Robert Dewar <dewar@gnat.com>
39268 * checks.ads (Apply_Alignment_Check): New procedure.
39270 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39271 ensure that the alignment of objects with address clauses is
39272 appropriate, and raise PE if not.
39274 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39275 Exp_Pakd.Known_Aligned_Enough
39277 * mdllfile.ads: Minor reformatting
39279 * mlib-fil.ads: Minor reformatting
39281 2001-12-12 Ed Schonberg <schonber@gnat.com>
39283 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39284 fix to any component reference if enclosing record has non-standard
39287 2001-12-12 Vincent Celier <celier@gnat.com>
39289 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39292 2001-12-12 Ed Schonberg <schonber@gnat.com>
39294 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39297 2001-12-12 Robert Dewar <dewar@gnat.com>
39299 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39301 2001-12-12 Emmanuel Briot <briot@gnat.com>
39303 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39304 and it adds dependencies to system.io.
39306 2001-12-12 Pascal Obry <obry@gnat.com>
39308 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39311 2001-12-11 Ed Schonberg <schonber@gnat.com>
39313 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39314 that is the parent of other generics, the instance body replaces the
39315 instance node. Retrieve the instance of the spec, which is the one
39316 that is visible in clients and within the body.
39318 2001-12-11 Vincent Celier <celier@gnat.com>
39320 * gnatmain.adb: Initial version.
39322 * gnatmain.ads: Initial version.
39324 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39326 * snames.adb: Updated to match snames.ads.
39328 * snames.ads: Added Gnatstub.
39330 2001-12-11 Vincent Celier <celier@gnat.com>
39332 * prj-attr.adb (Initialization_Data): Change name from
39333 Initialisation_Data.
39335 2001-12-11 Emmanuel Briot <briot@gnat.com>
39337 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39338 + and * applied to backslashed expressions like \r.
39340 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
39342 * g-os_lib.ads: String_List type added, Argument_List type is now
39343 subtype of String_List.
39345 2001-12-11 Robert Dewar <dewar@gnat.com>
39347 * g-os_lib.ads: Change copyright to FSF
39348 Add comments for String_List type
39350 2001-12-11 Vincent Celier <celier@gnat.com>
39352 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39353 string to the buffer).
39355 2001-12-11 Ed Schonberg <schonber@gnat.com>
39357 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39360 * sem_attr.adb: Simplify previous fix for Address.
39361 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39362 to avoid anomalies where the bound of the type appears to raise
39365 2001-12-11 Robert Dewar <dewar@gnat.com>
39367 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39370 2001-12-11 Ed Schonber <schonber@gnat.com>
39372 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39373 renamed unit before checking for recursive instantiations.
39375 2001-12-11 Emmanuel Briot <briot@gnat.com>
39377 * prj.ads: Add comments for some of the fields.
39379 2001-12-11 Robert Dewar <dewar@gnat.com>
39381 * lib-xref.adb (Output_Refs): Don't output type references outside
39382 the main unit if they are not otherwise referenced.
39384 2001-12-11 Ed Schonberg <schonber@gnat.com>
39386 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39387 code and diagnose additional illegal uses
39389 * sem_util.adb (Is_Object_Reference): An indexed component is an
39390 object only if the prefix is.
39392 2001-12-11 Vincent Celier <celier@gnat.com>
39394 * g-diopit.adb: Initial version.
39396 * g-diopit.ads: Initial version.
39399 (Expand_Path): Avoid use of Unbounded_String
39400 (Find, Wildcard_Iterator): Moved to child package Iteration
39402 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39404 2001-12-11 Robert Dewar <dewar@gnat.com>
39406 * sem_attr.adb: Minor reformatting
39408 2001-12-11 Ed Schonberg <schonber@gnat.com>
39410 * sem_ch3.adb: Clarify some ???.
39412 2001-12-11 Robert Dewar <dewar@gnat.com>
39414 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39415 Exp_Pakd.Known_Aligned_Enough
39417 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39418 version is moved to Exp_Ch13.
39420 2001-12-11 Robert Dewar <dewar@gnat.com>
39422 * einfo.ads: Minor reformatting
39424 * exp_ch5.adb: Add comment for previous.change
39426 * ali.adb: New interface for extended typeref stuff.
39428 * ali.ads: New interface for typeref stuff.
39430 * checks.adb (Apply_Alignment_Check): New procedure.
39432 * debug.adb: Add -gnatdM for modified ALI output
39434 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39436 * lib-xref.adb: Extend generation of <..> notation to cover
39437 subtype/object types. Note that this is a complete rewrite,
39438 getting rid of the very nasty quadratic algorithm previously
39439 used for derived type output.
39441 * lib-xref.ads: Extend description of <..> notation to cover
39442 subtype/object types. Uses {..} for these other cases.
39443 Also use (..) for pointer types.
39445 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39447 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
39448 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39450 2001-12-11 Vincent Celier <celier@gnat.com>
39453 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39454 Changed /BIND_ONLY to /ACTIONS=BIND
39455 Changed /LINK_ONLY to /ACTIONS=LINK
39457 2001-12-11 Ed Schonberg <schonber@gnat.com>
39459 * sem_ch8.adb (Find_Selected_Component): improved search for a
39460 candidate package in case of error.
39462 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39463 chain back on scope stack before reinstalling use clauses.
39465 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39466 is enabled, do not kill the code for the condition, to preserve
39469 2001-12-11 Robert Dewar <dewar@gnat.com>
39471 * checks.adb (Insert_Valid_Check): Apply validity check to expression
39472 of conversion, not to result of conversion.
39474 2001-12-11 Ed Schonberg <schonber@gnat.com>
39476 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39477 before freezing parent. If the declarations are mutually recursive,
39478 an access to the current record type may be frozen before the
39479 derivation is complete.
39481 2001-12-05 Vincent Celier <celier@gnat.com>
39483 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39484 -c /COMPILE_ONLY, -l /LINK_ONLY
39487 (Bind_Only): New Flag
39488 (Link_Only): New flag
39490 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39493 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39496 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39497 (Gnatmake): Set the step flags. Only perform a step if the
39498 corresponding step flag is True.
39499 (Scan_Make_Arg): Reset the bind and link step flags when -u
39500 or -gnatc has been specified.
39502 2001-12-05 Ed Schonberg <schonber@gnat.com>
39504 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39505 get bounds from right operand.
39507 * sem_eval.adb: Minor reformatting
39509 * exp_util.adb (Make_Literal_Range): use bound of literal rather
39510 than Index'First, its lower bound may be different from 1.
39512 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39515 2001-12-05 Vincent Celier <celier@gnat.com>
39517 * prj-nmsc.adb Minor reformatting
39519 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39520 set and libraries are not supported.
39522 2001-12-05 Ed Schonberg <schonber@gnat.com>
39524 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39525 private view explicitly, so the back-end can treat as a global
39528 2001-12-05 Ed Schonberg <schonber@gnat.com>
39530 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39531 unit, always replace instance node with new body, for ASIS use.
39533 2001-12-05 Vincent Celier <celier@gnat.com>
39535 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39536 libraries are not supported and both attributes Library_Name and
39537 Library_Dir are specified.
39539 * prj-proc.adb (Expression): Set location of Result to location of
39542 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39543 (prj-nmsc is now importing MLib.Tgt)
39545 * prj-proc.adb: Put the change indicated above that was forgotten.
39547 2001-12-05 Robert Dewar <dewar@gnat.com>
39549 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39551 2001-12-05 Ed Schonberg <schonber@gnat.com>
39553 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39554 constraint, introduce explicit subtype declaration and derive from it.
39556 * sem_ch3.adb: Minor reformatting
39558 2001-12-05 Robert Dewar <dewar@gnat.com>
39560 * checks.adb (Determine_Range): Increase cache size for checks.
39563 * exp_ch6.adb: Minor reformatting
39564 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39565 a parameter whose root type is System.Address, since treating such
39566 subprograms as pure in the code generator is almost surely a mistake
39567 that will lead to unexpected results.
39569 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39570 change handling of conversions.
39572 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39574 2001-12-05 Ed Schonberg <schonber@gnat.com>
39576 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39577 aggregate with static wrong size, attach generated Raise node to
39580 2001-12-05 Robert Dewar <dewar@gnat.com>
39582 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39583 Fixes compilation abandoned bomb in B24009B.
39585 2001-12-05 Ed Schonberg <schonber@gnat.com>
39588 Document use of Associated_Node on Selected_Components.
39589 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39590 to clarify use of untyped descendant fields.
39592 2001-12-05 Robert Dewar <dewar@gnat.com>
39594 * prj-dect.ads: Add ??? comment
39595 Add 2001 to copyright notice (was not done in after all)
39597 * prj-part.adb: Minor reformatting. Reword one awkward error message.
39599 * prj.ads: Minor reformatting throughout, and add some ??? comments
39601 * snames.ads: Minor reformatting
39603 2001-12-05 Geert Bosch <bosch@gnat.com>
39605 * snames.adb: Autoupdate
39607 2001-12-05 Vincent Celier <celier@gnat.com>
39609 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39611 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39613 * prj-env.adb: Minor comment changes (modifying -> extends).
39615 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39617 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39620 * prj.adb (Initialize): Change Modifying to Extends.
39622 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39624 * prj.ads: Minor comment change (Modifying -> extending).
39626 * snames.ads: Change modifying to extends.
39628 2001-12-05 Robert Dewar <dewar@gnat.com>
39630 * sem_warn.adb: Remove stuff for conditionals, we are not going to
39633 * sem_warn.ads: Remove stuff for conditionals, we are not going to
39634 do this after all. Add 2001 to copyright notice
39636 2001-12-04 Geert Bosch <bosch@gnat.com>
39638 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
39640 2001-12-04 Robert Dewar <dewar@gnat.com>
39642 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39643 location if we already have errors. Stops some cases of cascaded
39646 * errout.adb: Improve comment.
39648 2001-12-04 Robert Dewar <dewar@gnat.com>
39651 (Analyze_Formal_Type_Definition): Defend against Error.
39652 (Analyze_Formal_Subprogram): Defend against Error.
39654 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39655 remove following semicolon if present. Removes cascaded error.
39657 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39660 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39661 exceptions equals 0.
39662 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39663 Fixes PIWG E tests (which have to be run with -gnatL).
39665 2001-12-04 Robert Dewar <dewar@gnat.com>
39667 * einfo.ads: Minor reformatting
39669 2001-12-04 Ed Schonberg <schonber@gnat.com>
39671 * einfo.ads: Block_Node points to the identifier of the block, not to
39672 the block node itself, to preserve the link when the block is
39673 rewritten, e.g. within an if-statement with a static condition.
39675 * inline.adb (Cleanup_Scopes): recover block statement from block
39676 entity using new meaning of Block_Node.
39678 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39679 identifier of block node, rather than to node itself.
39681 2001-12-04 Gary Dismukes <dismukes@gnat.com>
39684 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39685 (Discrimify): Go back to setting the Etypes of the selected component
39686 because the Vname component does not exist at this point and will
39687 fail name resolution. Also set Analyzed.
39688 Remove with and use of Sem_Res.
39690 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39692 * Makefile.in: (HIE_SOURCES): add s-fat*.
39694 2001-12-04 Robert Dewar <dewar@gnat.com>
39697 (Compile_Time_Known_Attribute): New procedure.
39698 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39699 proper range check.
39701 2001-12-04 Ed Schonberg <schonber@gnat.com>
39703 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39704 processing discriminants to diagnose illegal default values.
39706 2001-12-04 Ed Schonberg <schonber@gnat.com>
39708 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39709 access discriminant within a type extension that constrains its
39710 parent discriminants.
39712 2001-12-04 Ed Schonberg <schonber@gnat.com>
39714 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39715 is malformed, use instance of Any_Id to allow analysis to proceed.
39717 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39718 type definition is illegal.
39719 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39722 2001-12-04 Ed Schonberg <schonber@gnat.com>
39724 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39727 2001-12-04 Robert Dewar <dewar@gnat.com>
39729 * errout.adb: Minor reformatting
39731 2001-12-04 Robert Dewar <dewar@gnat.com>
39733 * exp_util.adb: Minor reformatting from last change
39735 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39736 which is a rewriting of an expression, traverse the original
39737 expression to remove warnings that may have been posted on it.
39739 2001-12-04 Ed Schonberg <schonber@gnat.com>
39741 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39742 record that has other packed components.
39744 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39746 * adaint.c: Minor cleanups.
39748 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39750 * adaint.c: Do not use utime.h on vxworks.
39752 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39754 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39755 more confusion than it solves.
39757 2001-12-04 Geert bosch <bosch@gnat.com>
39759 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39761 2001-12-04 Geert Bosch <bosch@gnat.com>
39763 * Makefile.in (update-sources): New target.
39764 For use by gcc_release script.
39766 2001-12-04 Ed Schonberg <schonber@gnat.com>
39768 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39769 a configuration pragma, it is now legal wherever a pragma can appear.
39771 2001-12-04 Zack Weinberg <zack@codesourcery.com>
39773 * Makefile.in: Don't set ALL. Delete @cross_defines@,
39774 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
39775 is now @CROSS@ -DIN_GCC; update comment.
39777 2001-12-04 Robert Dewar <dewar@gnat.com>
39779 * einfo.adb (Has_Pragma_Pure_Function): New flag.
39780 Fix problem that stopped ceinfo from working
39782 * einfo.ads (Has_Pragma_Pure_Function): New flag.
39784 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39786 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39789 (File_Time_Stamp): New procedure.
39790 (Preserve_Mode): New boolean.
39791 (Write_Unit): Pass time stamp.
39792 Implement -p switch (preserve time stamps).
39794 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39796 * gnatchop.adb: Do usage info for -p switch
39798 * adaint.h (__gnat_set_file_time_name): New function
39800 * adaint.c (__gnat_set_file_time_name): Implement
39802 * adaint.h: Fix typo
39804 2001-12-03 Robert Dewar <dewar@gnat.com>
39806 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39807 have Associated_Node.
39809 2001-12-03 Robert Dewar <dewar@gnat.com>
39811 * prj-proc.adb: Minor reformatting
39813 * make.adb: Minor reformatting
39815 2001-12-03 Geert Bosch <bosch@gnat.com>
39817 * make.adb: Minor reformatting.
39819 2001-12-03 Robert Dewar <dewar@gnat.com>
39821 * sem_ch12.adb: Minor reformatting
39823 2001-12-03 Ed Schonberg <schonber@gnat.com>
39825 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39826 push Standard on the stack before analyzing the instance body,
39827 in order to have a clean visibility environment.
39829 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39831 2001-12-03 Ed Schonberg <schonber@gnat.com>
39833 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39834 instantiation of a body that contains an inlined body.
39836 2001-12-03 Ed Schonberg <schonber@gnat.com>
39839 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39840 to prevent freezing within formal packages.
39841 (Freeze_Subprogram_Body): If body comes from another instance that
39842 appeared before its own body, place freeze node at end of current
39843 declarative part, to prevent a back-end crash.
39844 (Inline_Instance_Body): Handle properly a package instance within
39845 a subprogram instance that is a child unit.
39847 2001-12-01 Graham Stott <grahams@redhat.com>
39849 * Makefile.in (misc.o): Add missing $(srcdir) prefix
39850 and add optabs.h dependency.
39852 * misc.c: Include optabs.h
39853 (gnat_tree_code_type): Make static and const.
39854 (gnat_tree_code_length): Likewise.
39855 (gnat_tree_code_name): Likewise.
39856 (update_setjmp_buf): Obtain operands mode from insn_data.
39858 2001-11-29 Richard Henderson <rth@redhat.com>
39860 * init.c: Remove obsolete dwarf2 frame.h section.
39862 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
39864 * Make-lang.in (ada.generated-manpages): New dummy target.
39866 2001-11-29 Ed Schonberg <schonber@gnat.com>
39868 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39869 into Command, an array conversion is illegal here. Uncovered by
39872 2001-11-28 Geert Bosch <bosch@gnat.com>
39874 * init.c: Minor whitespace changes.
39876 2001-11-28 Doug Rupp <rupp@gnat.com>
39878 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39881 2001-11-28 Zack Weinberg <zack@codesourcery.com>
39883 * misc.c (gnat_expand_constant): Move declaration above
39884 definition of lang_hooks.
39885 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
39886 (gnat_init): lang_expand_constant no longer exists.
39888 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
39889 always have vprintf.
39890 (gnat_init): Always call set_internal_error_function.
39892 2001-11-27 Andreas Jaeger <aj@suse.de>
39894 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
39896 2001-11-27 Laurent Guerby <guerby@acm.org>
39898 * Makefile.in: Regenerate Ada dependencies.
39900 2001-11-26 Richard Henderson <rth@redhat.com>
39902 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
39903 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
39904 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
39906 2001-11-25 Laurent Guerby <guerby@acm.org>
39908 * sysdep.c (rts_get_*): Fix style.
39910 2001-11-19 Laurent Guerby <guerby@acm.org>
39912 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
39913 since it is of no apparent use and cause warnings.
39915 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
39917 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
39919 (gnat_init): Don't return NULL.
39920 (finish_parse): Remove.
39922 2001-11-17 Laurent Guerby <guerby@acm.org>
39924 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
39925 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
39926 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
39927 * lang-spec.h: Add missing struct field to silence warnings.
39928 * sysdep.c (rts_get_*): Provide K&R prototype.
39929 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
39930 * traceback.c (Unlock_Task, Lock_Task): Likewise.
39931 * tracebak.c (__gnat_backtrace): Remove unused variable.
39932 * utils.c (end_subprog_body): Move to K&R style.
39934 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39936 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
39938 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
39940 * misc.c (gnat_init): Change prototype. Include the
39941 functionality of the old init_parse and init_decl_processing.
39942 (gnat_init_decl_processing): New prototype.
39943 (init_parse): Remove.
39944 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
39946 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39948 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
39949 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
39950 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
39951 set_yydebug): Remove.
39953 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39955 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
39956 (struct lang_hooks): Constify.
39957 (language_string, lang_identify): Remove.
39958 * utils.c (init_decl_processing): Update.
39960 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
39962 * misc.c: Include langhooks-def.h.
39963 * Makefile.in: Update.
39965 2001-10-30 Robert Dewar <dewar@gnat.com>
39968 (Check_Identifier): Rewrite circuit to be compatible with use of letters
39969 in the upper half of ASCII.
39970 (Check_Identifier): Minor reformatting
39972 2001-10-30 Geert Bosch <bosch@gnat.com>
39974 * (Associated_Node, Set_Associated_Node): Do not check for
39977 2001-10-30 Robert Dewar <dewar@gnat.com>
39979 * a-reatim.ads: Minor reformatting
39981 2001-10-30 Robert Dewar <dewar@gnat.com>
39983 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
39984 undocumented declarations.
39986 2001-10-30 Pascal Obry <obry@gnat.com>
39988 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
39989 to the binder and linker.
39992 * mdll.ads: Fix layout. Update copyright notice.
39994 * mdll.adb: Fix layout. Update copyright notice.
39996 2001-10-30 Robert Dewar <dewar@gnat.com>
39998 * usage.adb: Minor fix to output for -gnaty.
40000 2001-10-30 Ed Schonberg <schonber@gnat.com>
40002 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40003 to accommodate all its possible values.
40005 * a-reatim.adb (Split): Special-case handling of Time_Span_First
40006 and of small absolute values of T.
40008 2001-10-30 Richard Kenner <kenner@gnat.com>
40010 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40011 set_mem_attributes since not needed and wrong if RESULT if a REG;
40012 fixes ACATS failures.
40014 2001-10-30 Geert Bosch <bosch@gnat.com>
40016 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40017 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40019 2001-10-30 Robert Dewar <dewar@gnat.com>
40021 * bindusg.adb: Undocument -f switch.
40023 * gnatcmd.adb: Remove /FULL_ELABORATION.
40025 * opt.ads (Force_RM_Elaboration_Order): Document that this is
40028 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40030 * gnatbind.adb: Minor update of warning msg.
40032 2001-10-30 Vincent Celier <celier@gnat.com>
40034 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40035 for project file switches (-P (/PROJECT_FILE=),
40036 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40039 2001-10-30 Geert Bosch <bosch@gnat.com>
40041 * decl.c: Minor whitespace fixes.
40043 2001-10-30 Richard Kenner <kenner@gnat.com>
40045 * utils2.c (build_allocator): Test for SIZE overflow in array case too
40047 2001-10-30 Geert Bosch <bosch@gnat.com>
40049 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40050 Found due to GCC 3.0 warning of using uninitialized value.
40053 (Get_Max_Size): Use variant record for tracking value/expression.
40054 Makes logic clearer and prevents warnings for uninitialized variables.
40055 (Layout_Array_Type): Use variant record for tracking value/expression.
40056 Makes logic clearer and prevents warnings for uninitialized variables.
40058 2001-10-30 Robert Dewar <dewar@gnat.com>
40060 * lib.adb: Minor reformatting
40062 * s-taprop.ads: Minor reformatting
40064 2001-10-29 Laurent Guerby <guerby@acm.org>
40067 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40069 (_gnat_error_handler): Make MSG const.
40071 2001-10-29 Richard Kenner <kenner@gnat.com>
40073 * sysdep.c: Fix localtime_r problem on LynxOS.
40074 Also remove #elif to avoid warnings.
40076 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40079 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40081 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
40083 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40084 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40085 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40086 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40087 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40088 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40089 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40090 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40091 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40092 types.ads, urealp.adb: Fix spelling errors.
40094 2001-10-27 Laurent Guerby <guerby@acm.org>
40096 * trans.c (gigi): Fix non determinism leading to bootstrap
40097 comparison failures for debugging information.
40099 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40101 * gnat_rm.texi: Use @./@: where appropriate.
40103 2001-10-26 Robert Dewar <dewar@gnat.com>
40105 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40107 2001-10-26 Richard Kenner <kenner@gnat.com>
40109 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40111 2001-10-26 Richard Kenner <kenner@gnat.com>
40113 * decl.c (validate_size): Modify message for bad size to avoid
40114 implication that compiler is modifying the size.
40116 2001-10-26 Robert Dewar <dewar@gnat.com>
40118 * prj-util.adb: Minor reformatting. Fix bad header format.
40120 2001-10-26 Robert Dewar <dewar@gnat.com>
40122 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40124 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40126 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40127 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40128 much more narrowly in places where needed. These are cleanups.
40130 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40132 * 5zosinte.ads (null_pthread): new constant.
40135 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40136 later that this field has been set.
40137 (Finalize_TCB): ditto.
40138 (Suspend_Task): Verify that the thread ID is not null before using it.
40139 (Resume_Task): ditto.
40142 (Resume_All_Tasks): Lock the tasks list before using it.
40143 (Suspend_All_Tasks): ditto.
40145 2001-10-26 Richard Kenner <kenner@gnat.com>
40147 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40148 Make constant variant of designated type for Is_Access_Constant.
40149 Call update_pointer_to with main variant.
40151 * trans.c (process_freeze_entity, process_type):
40152 Call update_pointer_to on main variant.
40154 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40155 If main variant, update all other variants.
40157 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40160 2001-10-26 Robert Dewar <dewar@gnat.com>
40162 * prj-util.adb: Minor reformatting
40164 2001-10-26 Robert Dewar <dewar@gnat.com>
40166 * prj-util.adb: Minor reformatting
40168 2001-10-26 Robert Dewar <dewar@gnat.com>
40170 * prj-attr.adb: Minor reformatting throughout
40172 2001-10-26 Robert Dewar <dewar@gnat.com>
40174 * prj-attr.ads: Minor reformatting
40175 Add ??? comment (this whole spec has almost no comments)
40177 2001-10-26 Vincent Celier <celier@gnat.com>
40179 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40180 ("//") that precede the drive letter on Interix.
40182 2001-10-26 Geert Bosch <bosch@gnat.com>
40184 * gnat_rm.texi: Add GNAT Reference Manual.
40186 2001-10-25 Robert Dewar <dewar@gnat.com>
40188 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40189 is Error. Similar change for other renaming cases.
40191 2001-10-25 Robert Dewar <dewar@gnat.com>
40193 * s-atacco.ads: Add pragma Inline_Always for functions.
40194 Fix header format. Add copyright 2001
40196 2001-10-25 Ed Schonberg <schonber@gnat.com>
40198 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40199 return Error rather than Empty so that analysis can proceed.
40201 2001-10-25 Ed Schonberg <schonber@gnat.com>
40203 * sem_util.adb (Enter_Name): better handling of cascaded error
40204 messages when a unit appears in its own context.
40206 2001-10-25 Ed Schonberg <schonber@gnat.com>
40208 * sem_util.adb (Defining_Entity): in case of error, attach created
40209 entity to specification, so that semantic analysis can proceed.
40211 2001-10-25 Robert Dewar <dewar@gnat.com>
40214 (Defining_Entity): Deal with Error.
40215 (Process_End_Label): Deal with bad end label for.
40217 2001-10-25 Ed Schonberg <schonber@gnat.com>
40219 * sem_elab.adb (Check_A_Call): refine message when call is in an
40220 instance but callee is not declared in the generic unit.
40222 2001-10-25 Ed Schonberg <schonber@gnat.com>
40224 * sem_elab.adb (Check_A_Call): check for renaming before finding the
40225 enclosing unit, which may already be different from the calling unit.
40227 2001-10-25 Geert Bosch <bosch@gnat.com>
40229 * 4gintnam.ads: fix header format.
40231 2001-10-25 Ed Schonberg <schonber@gnat.com>
40233 * sem_res.adb (Resolve_Call): if the call is actually an indexing
40234 operation on the result of a parameterless call, perform elaboration
40235 check after the node has been properly rewritten.
40237 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40238 inlined within the generic tree, the defining identifier is not a
40241 2001-10-25 Ed Schonberg <schonber@gnat.com>
40243 * sem_res.adb (Resolve): special-case resolution of Null in an
40244 instance or an inlined body to avoid view conflicts.
40246 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40247 compatibility by retrieving the access type of the generic copy.
40249 2001-10-25 Robert Dewar <dewar@gnat.com>
40252 (Analyze_Number_Declaration): Handle error expression.
40253 (Signed_Integer_Type_Declaration): Handle error bound.
40254 (Analyze_Subtype_Indication): Handle error range.
40256 * sem_util.adb (Get_Index_Bounds): Check for Error.
40258 2001-10-25 Robert Dewar <dewar@gnat.com>
40260 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40261 in no run time mode.
40263 2001-10-25 Pascal Obry <obry@gnat.com>
40265 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40266 mode case for ALLOC case.
40268 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40269 all platforms. Improvement of last change.
40271 2001-10-25 Robert Dewar <dewar@gnat.com>
40273 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40275 2001-10-25 Geert Bosch <bosch@gnat.com>
40277 * osint.adb (Is_Relative): Remove duplicate.
40279 2001-10-25 Pascal Obry <obry@gnat.com>
40281 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40282 pathnames in UNIX and DOS style with drive letter.
40283 (Is_Relative): new routine.
40285 * osint.adb: Minor reformatting
40287 * osint.adb (Is_Relative): implementation using
40288 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40290 2001-10-25 Pascal Obry <obry@gnat.com>
40292 * g-dirope.adb (Basename): correctly compute offset between the
40293 original Path and the translated one.
40295 * g-dirope.adb: (Base_Name): add some comments.
40297 2001-10-25 Robert Dewar <dewar@gnat.com>
40299 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40300 in HIE mode, avoids compilation abandoned message
40302 * exp_imgv.adb: Correct typo in previous change
40304 * exp_imgv.adb: Correct typo in previous change (not my day!)
40306 2001-10-25 Robert Dewar <dewar@gnat.com>
40308 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40310 2001-10-25 Pascal Obry <obry@gnat.com>
40312 * g-awk.ads: Move all pragma inlines next to the routine
40313 declarations. This is more uniform with other GNAT spec.
40315 2001-10-22 Geert Bosch <bosch@gnat.com>
40317 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40319 2001-10-19 Geert Bosch <bosch@gnat.com>
40321 * Makefile.in (tools, gnattools): Remove gnatmem.
40323 2001-10-17 Richard Henderson <rth@redhat.com>
40325 * Makefile.in (misc.o): Depend on langhooks.h.
40326 * misc.c: Include it.
40327 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40328 (LANG_HOOKS_DECODE_OPTION): New.
40329 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40331 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
40333 * trans.c (tree_transform): Adjust to recent change in
40334 expand_asm_operands to implement named asm operands.
40336 2001-10-11 Ed Schonberg <schonber@gnat.com>
40338 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40339 renaming of discriminant for mutable record type.
40341 2001-10-11 Robert Dewar <dewar@gnat.com>
40343 * validsw.adb: Properly save -gnatVn status.
40345 2001-10-11 Robert Dewar <dewar@gnat.com>
40347 * usage.adb: Add lines for V switch.
40349 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40350 (/VALIDITY_CHECKING).
40352 2001-10-11 Ed Schonberg <schonber@gnat.com>
40354 * sem_type.adb (Add_One_Interp): an operator for a type declared in
40355 an extension of System is known to be visible.
40357 2001-10-11 Ed Schonberg <schonber@gnat.com>
40359 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40360 properly. Fixes regression on ACATS C34005G.
40362 2001-10-11 Robert Dewar <dewar@gnat.com>
40364 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40365 loop in generic instance, since this is likely not very useful.
40367 2001-10-11 Robert Dewar <dewar@gnat.com>
40369 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40370 the error message for high integrity mode.
40372 * rtsfind.adb (RTE): Give message if we try to find an entity that
40373 is not available in high integrity mode.
40376 (OK_To_Use_In_HIE_Mode): New array.
40377 (RTE): May return Empty in high integrity mode.
40379 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40380 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40382 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40383 unit if not inlined always and in no runtime mode. Fixes problem
40384 caused by new Rtsfind changes.
40386 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40389 * rtsfind.adb (RTE): Make sure we do not try to load unit after
40390 giving message for entity not available in high integrity mode.
40392 2001-10-11 Pascal Obry <obry@gnat.com>
40394 * impunit.adb: Add GNAT.CRC32.
40396 2001-10-11 Ed Schonberg <schonber@gnat.com>
40398 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40399 properly the case where one universal operand in a non-static
40400 exponentiation of a real literal.
40402 2001-10-11 Ed Schonberg <schonber@gnat.com>
40404 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40405 clause, return the gobal finalization list, for lack of anthing else.
40407 2001-10-11 Ed Schonberg <schonber@gnat.com>
40409 * exp_ch7.adb (Make_Transient_Block): if statement is within
40410 exception handler, always use new transient scope to place Clean
40413 2001-10-11 Pascal Obry <obry@gnat.com>
40416 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40417 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40418 (GNATLS_RTL_OBJS): add g-crc32.o
40419 (GNATMAKE_RTL_OBJS): add g-crc32.o
40422 (CRC_Match): new function.
40423 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40424 instead of the previous simple checksum algorithm.
40425 (Time_Stamp_Mismatch): use CRC_Match for comparison.
40426 (Set_Source_Table): idem.
40429 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40430 instead of simple checksum.
40431 (CRC_Match): new function.
40432 (CRC_Error): new constant.
40434 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40435 a CRC now and not a simple checksum. A CRC uses lower-case hex
40436 letters, fixes ambiguity in parsing.
40438 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40439 is what this variable will store.
40441 * bcheck.adb: Change reference to chechsum in comments by CRC.
40442 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40443 rename All_Checksum_Match to All_CRC_Match. Change due to API
40444 renaming since now GNAT does not use a simple checksum but a
40445 CRC using GNAT.CRC32.
40447 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40448 now and not anymore a simple checksum.
40450 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40453 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40456 (Restore_Scan_State): rename Checksum to CRC.
40457 (Save_Scan_State): idem.
40461 (Checksum): rename to CRC.
40462 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40464 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40465 GNAT.CRC32). Update copyright notice.
40467 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40468 GNAT.CRC32). Update copyright notice.
40471 (Accumulate_Checksum): removed.
40472 (Update): new procedure. Add a wide-character into the CRC.
40475 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40476 (Load_File): fix initialization of S (change Source_Checksum to
40479 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40480 Source_CRC in S initialization.
40482 * sinput.adb (Source_Checksum): renamed to Source_CRC.
40484 * sinput.ads (Source_Checksum): renamed to Source_CRC.
40485 Update comments for the CRC.
40487 * types.adb (Hex): Use lowercase for the letter part.
40489 * types.ads (Get_Hex_String): Returns the hexadecimal representation
40490 for a word. This is currently used only for CRC. In previous version,
40491 the checksum was using a representation with all letter being
40492 upper-case. With the new implementation (using CRC) we do not remove
40493 the 32th bit of the CRC, so we can have an upper-case starting letter
40494 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40495 It is ambigous since the CRC was optional and could be followed by
40496 options like EB, EE. So now this routines uses lower-case letter for
40497 the hexadecimal representation. Strange enough only lower case letters
40498 where checked in Scan_ALI (even if this was not a possible case).
40500 * gnatvsn.ads (Library_Version): changed to 3.15a.
40502 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40505 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40508 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40509 Add 2001 to copyright notice
40510 (Accumulate_Checksum): Modify to use System.CRC32.
40512 * ali-util.ads: Redo changes of previous revision to continue to use
40513 the word Checksum. Add 2001 to copyright notice.
40515 * ali.adb: Undo some of previous changes, not needed.
40516 Keep the change for lower case letters in the checksum.
40518 * ali.ads: Undo previous change not needed.
40520 * bcheck.adb: Undo most of previous change, not needed.
40521 But do use Checksums_Match for checksum comparison.
40523 * gnatls.adb: Undo most of previous change, not needed.
40524 But do use Checksums_Match for comparing checksums.
40526 * lib-load.adb: Undo previous change, not needed.
40528 * lib-writ.adb: Undo previous change, not needed.
40530 * lib-writ.ads: Document that checksums use lower case,
40531 not upper case letters.
40533 * scans.adb: Undo previous change, not needed
40535 * scans.ads: Undo previous change, not needed.
40537 * scn-nlit.adb: Undo previous changes, not needed.
40539 * scn-slit.adb: Undo previous change, not needed. Fix header format.
40542 (Accumulate_Checksum): Use System.CRC32.
40543 (Initialize_Checksum): New procedure.
40544 Remove other changes of previous revision.
40546 * sinput-p.adb: Undo previous change, not needed.
40548 * sinput.adb: Undo previous change, not needed.
40550 * sinput-l.adb: Undo previous change, not needed.
40552 * sinput.ads: Undo previous change, not needed. Keep only comment
40553 on new checksum algorithm
40555 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40556 Also remove a-tags and a-stream from GNAT sources.
40558 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40560 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40562 2001-10-11 Geert Bosch <bosch@gnat.com>
40564 * einfo.h: Regenerate.
40566 * nmake.ads: Regenerate.
40568 * nmake.adb: Regenerate.
40570 * sinfo.h: Regenerate.
40572 * treeprs.adb: Regenerate.
40574 2001-10-10 Geert Bosch <bosch@gnat.com>
40576 * gnat-style.texi: New file describing coding guidelines for Ada.
40578 2001-10-10 Ed Schonberg <schonber@gnat.com>
40580 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40583 2001-10-10 Geert Bosch <bosch@gnat.com>
40585 * snames.ads: Add new names for project facility.
40587 * snames.adb: Update to reflect snames.ads changes.
40589 * snames.h: Update to reflect snames.ads changes.
40591 2001-10-10 Vincent Celier <celier@gnat.com>
40594 (Add_Switches): reflect the changes for the switches attributes
40595 Default_Switches indexed by the programming language,
40596 Switches indexed by the file name.
40597 (Collect_Arguments_And_Compile): Idem.
40598 Reflect the attribute name changes.
40601 (Initialisation_Data): Change the names of some packages and
40603 (Initialize): process case insensitive associative arrays.
40606 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40609 (Parse_Attribute_Declaration): For case insensitive associative
40610 arrays, set the index string to lower case.
40613 Reflect the changes of the project attributes.
40616 Replace Check_Naming_Scheme by Ada_Check and
40617 Language_Independent_Check.
40620 Replaced Check_Naming_Scheme by 2 procedures:
40621 Ada_Check and Language_Independent_Check.
40624 (Process_Declarative_Items): For case-insensitive associative
40625 arrays, set the index string to lower case.
40626 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40627 Prj.Nmsc.Check_Naming_Scheme.
40630 (Case_Insensitive): New function
40631 (Set_Case_Insensitive): New procedure
40634 (Case_Insensitive): New function
40635 (Set_Case_Insensitive): New procedure
40636 (Project_Node_Record): New flag Case_Insensitive.
40639 (Value_Of): new function to get the string value of a single
40640 string variable or attribute.
40643 (Value_Of): new function to get the string value of a single
40644 string variable or attribute.
40647 (Ada_Default_Spec_Suffix): New function
40648 (Ada_Default_Impl_Suffix): New function
40649 Change definitions of several constants to reflect
40650 new components of record types.
40653 (Naming_Data): Change several components to reflect new
40654 elements of naming schemes.
40655 (Project_Data): New flags Sources_Present and
40656 Language_Independent_Checked.
40657 (Ada_Default_Spec_Suffix): New function.
40658 (Ada_Default_Impl_Suffix): New function.
40661 Modification of predefined names for project manager: added
40662 Implementation, Specification_Exceptions, Implementation_Exceptions,
40663 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40664 Default_Switches, _Languages, Builder, Cross_Reference,
40665 Finder. Removed Body_Part, Specification_Append, Body_Append,
40666 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40669 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40672 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40673 not that it is Nil_Variable_Value.
40675 * prj.ads: Add ??? for uncommented declarations
40677 2001-10-10 Ed Schonberg <schonber@gnat.com>
40679 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40680 constant, do not indicate possible modification, so that gigi can
40681 treat it as a bona fide constant.
40683 2001-10-10 Robert Dewar <dewar@gnat.com>
40685 * sem_prag.adb: Add processing for pragma External.
40687 * snames.ads: Add entry for pragma External.
40689 * par-prag.adb: Add pragma External.
40691 * snames.adb: Updated to match snames.ads.
40693 2001-10-10 Ed Schonberg <schonber@gnat.com>
40695 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40696 a dynamic task if the allocator appears in an indexed assignment
40697 or selected component assignment.
40699 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40700 For a dynamic task in an assignment statement, use target of
40701 assignment to generate meaningful name.
40703 2001-10-10 Ed Schonberg <schonber@gnat.com>
40705 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40708 * einfo.ads: Body_Entity is also defined for generic package.
40709 Documentation change only
40711 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40712 others_choice for a discriminated component initialization,
40713 convert discriminant references into the corresponding discriminals.
40715 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40716 only if original type is private and expression has to be wrapped
40720 (Apply_Constraint_Check): Do not perform length check
40721 if expression is an aggregate with only an others_choice.
40722 (Length_N_Cond): two references to the same in_parameter
40723 (typically the discriminal in an init_proc) denote the same value.
40724 Two useful optimization uncovered by bugfixes above.
40726 2001-10-10 Robert Dewar <dewar@gnat.com>
40728 * xeinfo.adb: Change int to char in translation of enumeration types.
40729 This fixes a problem in the C representation of component alignment.
40730 Add 2001 to copyright notice
40732 2001-10-10 Richard Kenner <kenner@gnat.com>
40734 * decl.c: (validate_size): Do check size of object of integral type
40735 if it is a packed array type.
40737 2001-10-10 Richard Kenner <kenner@gnat.com>
40739 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40740 VAR_DECL for constant if not Is_Public but -O0.
40742 2001-10-10 Richard Kenner <kenner@gnat.com>
40744 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40746 2001-10-10 Geert Bosch <bosch@gnat.com>
40748 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
40749 use '/' as switch character, allowing for absolute file names.
40751 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
40753 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40756 2001-10-08 Geert Bosch <bosch@gnat.com>
40758 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40759 Automatically build utilities when files need to be regenerated.
40761 2001-10-08 Geert Bosch <bosch@gnat.com>
40763 * xsnames.adb: New utility for updating snames.ads and snames.adb
40765 2001-10-08 Zack Weinberg <zack@codesourcery.com>
40767 * Make-lang.in (ADAFLAGS): Add -W -Wall.
40768 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40769 (gnat1): Also depend on attribs.o.
40770 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40771 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40772 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40773 (ADAFLAGS): Add -W -Wall.
40774 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40777 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40778 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40779 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40780 Use $(ADAC), not $(CC), as compilation command.
40782 (gnattools): Depend directly on tools to build, don't use
40784 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40786 * einfo.h, sinfo.h: New files (autogenerated).
40788 2001-10-08 Richard Henderson <rth@redhat.com>
40790 * comperr.adb (Abort_In_Progress): New.
40791 (Compiler_Abort): Use it to prevent recursion.
40793 2001-10-08 Robert Dewar <dewar@gnat.com>
40795 * atree.adb: Set Error_Posted in Error node, helps error recovery.
40797 * par-endh.adb (Output_End_Expected): We should also not test
40798 Error_Posted on the Error node, since now it is always set.
40800 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40801 to help error recovery. Part of general work on 9407-004.
40803 * par.adb: Add ??? for misuse of error
40806 (Resolve): Defend against Error, fixes 9407-003.
40807 (Resolve_Discrete_Subtype_Indication): Defend against Error.
40809 * sinfo.ads (N_Error): Now has Etype field (which will be set
40810 to Any_Type to help error recovery).
40812 2001-10-08 Richard Kenner <kenner@gnat.com>
40814 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40815 Consistently set MEM attributes from expression; fixes
40816 bootstrap failure on x86.
40818 2001-10-08 Geert Bosch <bosch@gnat.com>
40820 * 5oosinte.adb: Add 2001 to copyright notice.
40822 2001-10-08 Geert Bosch <bosch@gnat.com>
40824 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40826 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40828 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
40830 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40832 2001-10-05 Geert Bosch <bosch@gnat.com>
40834 * adaint.h: Small formatting fix.
40836 2001-10-04 Geert Bosch <bosch@gnat.com>
40838 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40839 Arg is int, not FILE *, in dummy version of functions.
40841 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40842 Arg is int, not FILE *.
40844 2001-10-04 Geert Bosch <bosch@gnat.com>
40846 * 3lsoccon.ads: Added file, missed with initial check ins.
40848 * 4lintnam.ads: Fix header format.
40849 Change Linux to GNU/Linux.
40851 * 5iosinte.adb: Change Linux to GNU/Linux.
40853 * 5iosinte.ads: Change Linux to GNU/Linux.
40855 * 5itaprop.adb: Change Linux to GNU/Linux.
40857 * 5itaspri.ads: Change Linux to GNU/Linux.
40858 Update copyright notice.
40860 * 5lintman.adb: Change Linux to GNU/Linux.
40862 * 5lml-tgt.adb: Change Linux to GNU/Linux.
40864 * 5losinte.ads: Change Linux to GNU/Linux.
40866 * 5lsystem.ads: Change Linux to GNU/Linux.
40868 * 5qosinte.adb: Change Linux to GNU/Linux.
40870 * 5qosinte.ads: Change Linux to GNU/Linux.
40872 * 5qparame.ads: Change Linux to GNU/Linux.
40874 * 5qtaprop.adb: Change Linux to GNU/Linux.
40876 * 5qtaspri.ads: Change Linux to GNU/Linux.
40877 Add 2001 to copyright notice.
40879 * 5vintman.ads: Change Linux to GNU/Linux.
40880 Fix header format. Add 2001 to copyright notice.
40882 * g-soccon.ads: Change Linux to GNU/Linux.
40884 * g-trasym.ads: Change Linux to GNU/Linux.
40885 Add 2001 to copyright notice.
40887 * memtrack.adb: Change Linux to GNU/Linux.
40889 * s-intman.ads: Change Linux to GNU/Linux.
40890 Add 2001 to copyright notice. Fix header format.
40892 * s-stache.adb: Change Linux to GNU/Linux.
40894 * adaint.c: Change Linux to GNU/Linux.
40896 * cio.c: Change Linux to GNU/Linux.
40898 * cstreams.c: Change Linux to GNU/Linux.
40900 * init.c: Change Linux to GNU/Linux.
40902 * gmem.c: Change Linux to GNU/Linux.
40904 * tracebak.c: Change Linux to GNU/Linux.
40907 2001-10-02 Geert Bosch <bosch@gnat.com>
40909 * misc.c (insert_default_attributes): Add dummy version.