1 2008-07-28 Jan Hubicka <jh@suse.cz>
3 * misc.c (gnat_post_options): Do not set flag_no_inline.
5 2008-07-28 Richard Guenther <rguenther@suse.de>
7 Merge from gimple-tuples-branch.
9 2008-07-22 Olivier Hainque <hainque@adacore.com>
11 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
12 this is called for an elab proc to be discarded if empty.
13 * utils.c (end_subprog_body): Honor ELAB_P.
14 (build_function_stub): Adjust call to end_subprog_body.
15 * trans.c (Subprogram_Body_to_gnu): Likewise.
16 (gigi): Reorganize processing of elab procs to prevent
17 gimplifying twice, using the new end_subprog_body argument.
19 2008-07-19 Richard Guenther <rguenther@suse.de>
21 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
23 * trans.c: Include tree-iterator.h.
24 (gnat_gimplify_expr): Adjust prototype. Fix typo.
25 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
26 (set_expr_location_from_node): Likewise.
28 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
30 * utils.c: Include tree-iterator.h.
31 * gigi.h (gnat_gimplify_expr): Adjust prototype.
33 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
35 * trans.c: Include gimple.h instead of tree-gimple.h.
38 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
40 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
42 2008-07-25 Jan Hubicka <jh@suse.cz>
44 * utils.c (end_subprog_body): Remove inline trees check.
45 * misc.c (gnat_post_options): Do not set flag_inline_trees.
47 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
49 * raise-gcc.c: Move tsystem.h before tm.h.
51 2008-07-20 Arnaud Charlet <charlet@adacore.com>
53 * gnathtml.pl: New file.
55 2008-07-19 Olivier Hainque <hainque@adacore.com>
57 * targtyps.c (get_target_default_allocator_alignment): Use
60 2008-07-17 Olivier Hainque <hainque@adacore.com>
62 * adaint.c (__MINGW32__ section): Include ctype.h and define
63 a fallback ISALPHA if IN_RTS.
64 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
66 2008-07-17 Olivier Hainque <hainque@adacore.com>
68 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
69 argument, to apply to references in addition to definitions. Prevent
70 setting TREE_STATIC on externals.
71 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
73 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75 PR documentation/15479
76 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
77 Replace backets around optional parameters with @ovar
78 where possible, use @r{[}, @r{]} otherwise.
79 Replace some @r, @i, and @emph with @var where appropriate.
81 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
83 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
85 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
87 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
88 -Wc++-compat warnings.
89 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
90 __gnat_locate_exec_on_path): Likewise.
91 * decl.c (annotate_value): Likewise.
92 * misc.c (gnat_handle_option): Likewise.
93 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
94 post_error_ne_tree): Likewise.
96 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
98 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
99 version of its type, attempt to first convert its elements.
101 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
103 * Makefile.in: Fix *86 kfreebsd target specific pairs.
105 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
107 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
109 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
111 * utils2.c (known_alignment): Derive the alignment from pointed-to
112 types only if it is otherwise unknown.
114 <MULT_EXPR>: Likewise.
115 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
118 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
121 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
123 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
125 * gnat_rm.texi (Implementation Defined Characteristics)
126 (Standard Library Routines): Use @smallexample for indented
127 text. Drop Indentation outside examples.
128 * gnat_ugn.texi: Likewise.
130 2008-06-13 Olivier Hainque <hainque@adacore.com>
132 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
134 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
135 realignment with force_align_arg_pointer attribute on foreign
136 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
138 2008-06-13 Olivier Hainque <hainque@adacore.com>
140 * utils.c (rest_of_record_type_compilation): When computing
141 encodings for the components of a variable size type, early
142 strip conversions on the current position expression to make
143 sure it's shape is visible. Use remove_conversions for this
146 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
148 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
149 constrained subtype of a discriminated type, discard the fields that
150 are beyond its limits according to its size.
152 2008-06-10 Olivier Hainque <hainque@adacore.com>
154 * utils.c (create_subprog_decl): If this is for the 'main' entry
155 point according to the asm name, redirect main_identifier_node.
157 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
159 * decl.c (components_to_record): Adjust the packedness for the
160 qualified union as well.
162 2008-06-09 Arnaud Charlet <charlet@adacore.com>
164 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
167 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
169 * sem_res.adb (Large_Storage_Type): A type is large if it
170 requires as many bits as Positive to store its values and its
171 bounds are known at compile time.
172 * sem_ch13.adb (Minimum_Size): Note that this function returns
173 0 if the size is not known at compile time.
175 2008-06-06 Nicolas Setton <setton@adacore.com>
176 Olivier Hainque <hainque@adacore.com>
178 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
179 attribute, parallel descriptive type attached to another
180 type for debug info generation purposes.
181 * utils.c (add_parallel_type): New function, register
182 parallel type to be attached to a type.
183 (get_parallel_type): New function, fetch a registered
184 parallel type, if any.
185 (rest_of_record_type_compilation): Register the parallel
186 type we make for variable size records.
187 * gigi.h (add_parallel_type, get_parallel_type): Declare.
188 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
189 parallel debug types we make.
190 * trans.c (extract_encoding, decode_name): New functions.
191 (gigi): If the DWARF attribute extensions are available, setup
193 * lang.opt: Register language specific processing request
195 * misc.c (gnat_dwarf_extensions): New global variable. How much
196 do we want of our DWARF extensions. 0 by default.
197 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
198 (gnat_post_options): Map gnat_dwarf_extensions to the
199 commonuse_gnu_debug_info_extensions for later processing.
201 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
203 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
205 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
207 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
208 * gnat_ugn.texi (Style Checking)
209 (Adding the Results of Compiler Checks to gnatcheck Output)
210 (Example of Binder Output File): Fix typos.
211 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
212 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
213 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
214 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
215 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
216 sinfo.ads, utils.c: Fix typos in comments.
217 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
219 2008-05-29 Thomas Quinot <quinot@adacore.com>
221 * sem_eval.adb: Minor reformatting
223 2008-05-29 Ed Schonberg <schonberg@adacore.com>
225 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
226 is abstract, do not apply abstractness check on subprogram if this is
227 a renaming declaration.
229 2008-05-29 Arnaud Charlet <charlet@adacore.com>
232 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
233 allow recognition of program suffix in addition to prefix.
235 * gnatchop.adb (Locate_Executable): Add support for prefix.
237 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
238 mlib-utl.adb: Adjust calls to Program_Name.
240 2008-05-29 Robert Dewar <dewar@adacore.com>
242 * sem_ch3.adb: Minor reformatting
243 * sem_prag.adb: Minor reformatting
244 * sem_res.adb: Minor reformatting
245 * sinput-p.ads: Minor reformatting
247 2008-05-29 Javier Miranda <miranda@adacore.com>
250 (Abstract_Interface_List): Add missing support for full type-declaration
251 associated with synchronized types.
253 2008-05-29 Robert Dewar <dewar@adacore.com>
255 * sem_eval.adb (Is_Same_Value): Take care of several more cases
257 2008-05-28 Ed Schonberg <schonberg@adacore.com>
259 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
260 access type, wrap the expression in a conversion to force an
263 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
264 accessibility checks even when expansion is disabled in order to
265 generate messages in the presence of previous errors or in
268 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
270 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
271 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
273 2008-05-28 Vincent Celier <celier@adacore.com>
276 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
277 preprocessing expressions
279 2008-05-28 Vincent Celier <celier@adacore.com>
281 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
284 * sinput-p.ads: Minor comment update and reformatting
286 2008-05-28 Ed Schonberg <schonberg@adacore.com>
288 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
289 type has a deeper level than any master only when it is the type of an
292 2008-05-28 Javier Miranda <miranda@adacore.com>
294 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
296 2008-05-28 Javier Miranda <miranda@adacore.com>
298 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
299 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
300 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
301 Add code that was previously located in
302 Find_Overridden_Synchronized_Primitive because it is only used here.
304 2008-05-28 Sergey Rybin <rybin@adacore.com>
306 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
307 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
309 2008-05-28 Robert Dewar <dewar@adacore.com>
312 Add missing restrictions, and properly label all GNAT defined ones
315 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
316 Add entry for Ada.Task_Termination.Set_Specific_Handler
317 Add entry for Ada.Task_Termination.Specific_Handler
320 Add missing restrictions and properly mark all gnat defined ones
323 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
326 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
328 * gnat_rm.texi: Add missing restrictions, and properly label all
331 2008-05-28 Robert Dewar <dewar@adacore.com>
334 (Check_Restriction): violation of restriction No_Finalization is
335 treated as a serious error to stop expansion
337 2008-05-28 Robert Dewar <dewar@adacore.com>
339 * exp_util.adb: Minor reformatting
340 * exp_util.ads: Minor reformatting.
342 2008-05-28 Arnaud Charlet <charlet@adacore.com>
344 * Make-lang.in: Remove gprmake.
346 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
348 2008-05-28 Ed Schonberg <schonberg@adacore.com>
350 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
351 improper progenitor names, and avoid cascaded errors.
353 2008-05-28 Robert Dewar <dewar@adacore.com>
355 * gnat_rm.texi: Add note on Old giving warning when applied to constant
357 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
360 2008-05-28 Robert Dewar <dewar@adacore.com>
362 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
365 2008-05-28 Robert Dewar <dewar@adacore.com>
368 (Expand_Simple_Function_Return): Copy unaligned result into temporary
370 2008-05-28 Javier Miranda <miranda@adacore.com>
372 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
373 for user-defined predefined primitives.
375 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
376 (Find_Overridden_Synchronized_Primitive): Ditto.
378 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
380 2008-05-27 Arnaud Charlet <charlet@adacore.com>
382 * a-ststio.adb, s-direio.adb:
383 Further code clean up of previous change.
386 2008-05-27 Vincent Celier <celier@adacore.com>
388 * prj-nmsc.adb: Minor reformatting
390 2008-05-27 Bob Duff <duff@adacore.com>
392 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
393 untagged private type with a tagged full type, where the full type has
394 a self reference, create the corresponding class-wide type early, in
395 case the self reference is "access T'Class".
397 2008-05-27 Ed Schonberg <schonberg@adacore.com>
399 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
400 tasks and context is an object declaration. create master entity before
403 2008-05-27 Robert Dewar <dewar@adacore.com>
405 * mlib-prj.adb: Minor reformatting
407 * prj-part.adb: Minor reformatting
409 * prj.ads: Minor reformatting
411 * exp_ch3.adb: Minor reformatting.
413 * sem_ch3.ads: Minor reformatting
415 * sem_eval.adb: Minor reformatting
417 2008-05-27 Vincent Celier <celier@adacore.com>
420 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
422 2008-05-27 Ed Schonberg <schonberg@adacore.com>
424 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
425 tasks, create an activation chain now, before the expansion into
426 assignments and build-in-place calls that require the presence of an
428 (Backend_Processing_Possible): If the component type is inherently
429 limited, the aggregate must be expanded into individual built-in-place
432 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
433 determine whether an allocation extra parameter must be built, to
434 handle case of a private type whose full type is a discriminated type
437 2008-05-27 Bob Duff <duff@adacore.com>
440 Document the new behavior regarding trampolines.
442 2008-05-27 Arnaud Charlet <charlet@adacore.com>
444 * a-direio.adb, a-sequio.adb: Replace address clause by
445 unrestricted_access, simpler and compatible with .NET.
447 2008-05-27 Vincent Celier <celier@adacore.com>
450 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
451 a project file, so that symbolic links are not resolved.
453 2008-05-27 Arnaud Charlet <charlet@adacore.com>
455 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
456 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
457 portable across GNAT targets, since this kind of address clause is not
458 supported by VM back-ends (.NET/JGNAT).
460 2008-05-27 Arnaud Charlet <charlet@adacore.com>
462 * bindgen.adb: Update comments.
464 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
466 2008-05-27 Vincent Celier <celier@adacore.com>
468 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
469 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
470 mlib-tgt.adb, prj-env.adb, prj-env.ads:
471 (Path_Information): New record type
472 Use component of type Path_Information when there are two paths, one in
473 canonical format and one in display format.
474 Update the project manager to these new components.
476 2008-05-27 Robert Dewar <dewar@adacore.com>
478 * makeutl.adb: Minor reformatting
479 * prj-nmsc.adb: Minor reformatting
480 * s-stausa.adb: Minor reformatting
481 * s-stausa.ads: Minor reformatting
482 * sem_ch6.adb: Minor reformatting
484 2008-05-27 Thomas Quinot <quinot@adacore.com>
486 * sem_res.adb: Minor comment fixes
488 2008-05-27 Thomas Quinot <quinot@adacore.com>
490 * makeutl.adb: Minor code reorganization
492 * exp_aggr.adb: Add ??? comment
495 * exp_ch6.adb: Minor reformatting
497 2008-05-27 Quentin Ochem <ochem@adacore.com>
499 * s-stausa.adb (Initialize): Updated result initialization, and
500 initialization of environment stack.
501 (Fill_Stack): Improved computation of the pattern zone, taking into
502 account already filled at the calling point.
503 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
504 Measure and Overflow_Guard.
505 (Report_Result): Fixed computation of the result using new fields of
508 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
509 params by more explicit Stack_Size / Max_Pattern_Size params.
510 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
511 Added Stack_Used_When_Filling field.
512 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
513 Min_Measure and Max_Measure fields.
515 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
517 2008-05-27 Vincent Celier <celier@adacore.com>
520 (Check_File): Make sure that a unit that replaces the same unit in a
521 project being extended is properly processed.
523 2008-05-27 Ed Schonberg <schonberg@adacore.com>
526 (Get_Discr_Value): Remove obsolete code that failed to find the value
527 of a discriminant for an inherited task component appearing in a type
530 2008-05-27 Thomas Quinot <quinot@adacore.com>
532 (System.File_IO.{Close, Delete, Reset}):
533 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
535 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
536 Pass File parameter by reference.
538 2008-05-27 Vincent Celier <celier@adacore.com>
541 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
542 sources of the same project that have the same object file name.
543 (Find_Explicit_Sources): Always remove a source exception that was not
546 2008-05-27 Thomas Quinot <quinot@adacore.com>
548 * sem_ch3.adb: Minor reformatting
550 2008-05-27 Ed Schonberg <schonberg@adacore.com>
553 (Is_Interface_Conformant): Handle properly a primitive operation that
554 overrides an interface function with a controlling access result.
555 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
556 inherited and overriding operations, omit as well the conformance check
557 on result types, to prevent spurious errors.
559 2008-05-27 Vincent Celier <celier@adacore.com>
561 * makeutl.ads, makeutl.adb:
562 (Set_Location): New procedure
563 (Get_Location): New function
564 (Update_Main): New procedure
566 2008-05-27 Vincent Celier <celier@adacore.com>
569 (Check_Library): Allow standard project to be extended as a static
571 (Get_Mains): Do not inherit attribute Main in an extending library
574 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
576 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
577 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
578 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
579 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
580 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
581 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
582 * system-mingw.ads (Always_Compatible_Rep): Likewise.
583 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
584 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
585 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
587 2008-05-27 Ed Schonberg <schonberg@adacore.com>
589 * sem_attr.adb: add guard to previous patch.
591 2008-05-27 Ed Schonberg <schonberg@adacore.com>
593 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
594 a synchronized tagged type, do not attempt to build dispatch table for
595 full view. The table is built for the corresponding record type, which
596 has its own declaration.
598 2008-05-27 Gary Dismukes <dismukes@adacore.com>
600 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
601 to the known type entity E, rather than setting it to Any_Type. Fixes
602 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
603 for objects whose type had an illegal constraint.
605 2008-05-27 Vincent Celier <celier@adacore.com>
608 Add succinct documentation for attribute Excluded_Source_List_File
610 2008-05-27 Vincent Celier <celier@adacore.com>
612 * prj-attr.adb: Add new project level attribute Map_File_Option
614 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
616 * prj.ads: Minor reformatting and comment update
617 (Project_Configuration): New component Map_File_Option
619 * snames.adb: New standard name Map_File_Option
621 * snames.ads: New standard name Map_File_Option
623 2008-05-27 Vincent Celier <celier@adacore.com>
625 * xsnames.adb: Remove unused variable Oname
627 2008-05-27 Doug Rupp <rupp@adacore.com>
630 (Expand_N_Function_Call): Fix comments. Minor reformatting.
633 (Expand_Vax_Foreign_Return): Fix comments.
635 2008-05-27 Thomas Quinot <quinot@adacore.com>
637 * exp_dist.adb: Minor reformating
639 2008-05-26 Gary Dismukes <dismukes@adacore.com>
641 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
642 No_Default_Initialization, which is now delayed until the freeze point
643 of the object. Add a comment about deferral of the check.
645 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
646 on objects is moved here.
648 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
650 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
651 (Compare_Array_S16): Adjust for above change.
652 * s-casi32.adb (Uword): Likewise.
653 (Compare_Array_S32): Likewise.
654 * s-casi64.adb (Uword): Likewise.
655 (Compare_Array_S64): Likewise.
656 * s-caun16.adb (Uhalf): Likewise.
657 (Compare_Array_U16): Likewise.
658 * s-caun32.adb (Uword): Likewise.
659 (Compare_Array_U32): Likewise.
660 * s-caun64.adb (Uword): Likewise.
661 (Compare_Array_U64): Likewise.
663 2008-05-26 Robert Dewar <dewar@adacore.com>
665 * exp_ch6.adb: Add ??? comment for previous change
667 * exp_vfpt.adb: Minor reformatting
669 * exp_vfpt.ads: Add ??? comment for last change
671 * sem_attr.adb: Add some ??? comments for previous change
673 * s-vaflop.ads: Add comments for previous change
675 2008-05-26 Doug Rupp <rupp@adacore.com>
677 * s-vaflop-vms-alpha.adb:
678 Remove System.IO use clause, to prevent spurious ambiguities when
679 package is access through rtsfind.
681 2008-05-26 Sergey Rybin <rybin@adacore.com>
683 * tree_io.ads (ASIS_Version_Number): Update because of the changes
686 2008-05-26 Ed Schonberg <schonberg@adacore.com>
689 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
690 converted to S (A)'address only if A .. B is known to be a non-null
693 2008-05-26 Doug Rupp <rupp@adacore.com>
696 (Return_D, Return_F, Return_G): New functions.
699 (Return_D, Return_F, Return_G): New functions.
702 (Expand_Vax_Foreign_Return): New procedure
705 (Expand_Vax_Foreign_Return): New procedure
708 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
709 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
713 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
715 * s-vaflop-vms-alpha.adb:
716 (Return_D, Return_F, Return_G): New functions.
718 2008-05-26 Gary Dismukes <dismukes@adacore.com>
720 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
721 init proc entity when there is actual default initialization associated
722 with the component type, to avoid spurious errors on objects of scalar
723 array types that are marked Is_Public when No_Default_Initialization
726 2008-05-26 Thomas Quinot <quinot@adacore.com>
728 * rtsfind.ads, rtsfind.adb:
729 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
730 (Check_RPC): Support per-PCS-kind API versioning.
732 exp_dist.ads, exp_dist.adb:
733 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
734 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
735 library function Get_RACW.
736 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
737 library function Get_Reference.
738 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
739 through an intermediate Any.
740 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
741 going through an intermediate Any.
743 * sem_dist.adb: Minor reformatting.
745 2008-05-26 Javier Miranda <miranda@adacore.com>
747 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
748 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
749 (Is_Internal): Adding documentation on internal entities that have
750 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
752 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
753 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
754 Added assertion to force entities with this attribute to have
755 attribute Is_Internal set to True.
756 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
758 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
759 renamed as Derive_Progenitor_Subprograms. In addition, its code is
760 a new implementation.
761 (Add_Interface_Tag_Components): Remove special management of
762 synchronized interfaces.
763 (Analyze_Interface_Declaration): Minor reformating
764 (Build_Derived_Record_Type): Minor reformating
765 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
766 predefined primitive inherited from interface type because the body of
767 internally generated predefined primitives of tagged types are generated
769 (Derive_Subprogram): Avoid generating an internal name if the parent
770 subprogram overrides an interface primitive.
771 (Derive_Subprograms): New implementation that keeps separate the
772 management of tagged types not implementing interfaces, from tagged
773 types that implement interfaces.
774 (Is_Progenitor): New implementation.
775 (Process_Full_View): Add documentation
776 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
777 by call to Derive_Progenitor_Subprograms.
779 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
780 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
781 Skip_Controlling_Formals.
783 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
784 (Check_Conventions): New implementation. Remove local subprogram
785 Skip_Check. Remove formal Search_From of routine Check_Convention.
786 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
787 Skip_Controlling_Formals.
788 (New_Overloaded_Entity): Enable addition of predefined dispatching
792 (Find_Primitive_Covering_Interface): New subprogram.
794 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
795 the task body procedure as a primitive of the corresponding tagged
797 (Check_Operation_From_Private_Type): Avoid adding twice an entity
798 to the list of primitives.
799 (Find_Primitive_Covering_Interface): New subprogram.
800 (Override_Dispatching_Operation): Add documentation.
802 * sem_type.adb (Covers): Minor reformatings
804 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
807 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
808 (Implements_Interface): New subprogram.
809 (Is_Parent): Removed.
810 (Primitive_Names_Match): New subprogram.
811 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
812 (Ultimate_Alias): New subprogram.
814 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
816 Remove special management for synchronized types. Rename formal. Remove
817 internal subprograms Interface_Present_In_Parent and Add_Interface.
818 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
819 on non-record types by code to return false in such case.
820 (Implements_Interface): New subprogram.
821 (Is_Parent): Removed. No special management is now required for
822 synchronized types covering interfaces.
823 (Primitive_Names_Match): New subprogram.
824 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
825 (Ultimate_Alias): New subprogram.
827 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
828 Add internal entities associated with secondary dispatch tables to
829 the list of tagged type primitives that are not interfaces.
830 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
831 (Make_Predefined_Primitive_Specs): Code reorganization to improve
832 the management of predefined equality operator. In addition, if
833 the type has an equality function corresponding with a primitive
834 defined in an interface type, the inherited equality is abstract
835 as well, and no body can be created for it.
837 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
838 exp_util to exp_disp.
839 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
840 an entity corresponds with one of the predefined primitives required
841 to implement interfaces.
842 Update copyright notice.
844 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
845 final check on abstract subprograms all the primitives associated with
846 interface primitives because they must be visible in the public and
848 (Write_DT): Use Find_Dispatching_Type to locate the name of the
849 interface type. This allows the use of this routine, for debugging
850 purposes, when the tagged type is not fully decorated.
851 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
852 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
853 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
854 entity corresponds with one of the predefined primitives required to
855 implement interfaces.
857 * exp_util.adb (Find_Interface_ADT): New implementation
858 (Find_Interface): Removed.
860 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
861 list of interfaces associated with nodes
862 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
864 2008-05-26 Thomas Quinot <quinot@adacore.com>
866 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
867 condition for assignment to temporary.
869 2008-05-26 Ed Schonberg <schonberg@adacore.com>
871 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
872 checks on the upper bound if the index type is a modular type, to
873 prevent wrap-around computations when size is close to upper bound of
876 2008-05-26 Robert Dewar <dewar@adacore.com>
878 * sem_ch3.adb: Minor reformatting
880 2008-05-26 Ed Schonberg <schonberg@adacore.com>
882 * sem_ch12.adb (Remove_Parent): Use specification of instance
883 to retrieve generic parent,
884 to handle properly the case where the instance is a child unit.
885 Add guard to handle properly wrapper packages.
888 2008-05-26 Thomas Quinot <quinot@adacore.com>
890 * sinfo.ads: Minor reformatting
892 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
894 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
895 Generate a tag check when the result subtype of a function, defined by
896 an access definition, designates a specific tagged type.
897 (Make_Tag_Check): New routine.
899 2008-05-26 Arnaud Charlet <charlet@adacore.com>
901 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
903 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
905 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
906 (builtin_decl_for): Likewise.
907 * trans.c (gigi): Likewise.
908 * utils.c (def_builtin_1): Fix formatting.
910 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
912 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
913 Create the statements which map a string name to protected or task
916 * exp_ch9.adb: Add with and use clause for Stringt.
917 Minor code reformatting.
918 (Build_Entry_Names): New routine.
919 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
920 for flag Build_Entry_Names which controls the allocation of the data
921 structure for the string names of entries.
923 * exp_ch9.ads (Build_Entry_Names): New subprogram.
925 * exp_util.adb (Entry_Names_OK): New function.
927 * exp_util.ads (Entry_Names_OK): New function.
929 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
930 enumerations RE_Id and RE_Unit_Table.
932 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
933 (Free_Entry_Names_Array): New routine.
935 * s-taskin.ads: Comment reformatting.
936 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
937 Add component Entry_Names to record Ada_Task_Control_Block.
938 (Free_Entry_Names_Array): New routine.
940 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
941 dynamically allocate an array
942 of string pointers. This structure holds string entry names.
943 (Free_Entry_Names): New routine.
944 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
945 (Set_Entry_Names): New routine.
948 (Create_Task): Add formal Build_Entry_Names. The flag is used to
949 control the allocation of the data structure which stores entry names.
950 (Set_Entry_Name): New routine.
953 Add with and use clause for Ada.Unchecked_Conversion.
954 (Finalize): Deallocate the entry names array.
955 (Free_Entry_Names): New routine.
956 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
957 create an array of string pointers to hold the entry names.
958 (Set_Entry_Name): New routine.
961 Add field Entry_Names to record Protection_Entries.
962 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
963 (Set_Entry_Name): New routine.
965 2008-05-26 Vincent Celier <celier@adacore.com>
968 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
971 (Project_Configuration): New component Shared_Lib_Driver
973 2008-05-26 Ed Schonberg <schonberg@adacore.com>
976 (Cleanup_Scopes): For a protected operation, transfer finalization list
977 to protected body subprogram, to force cleanup actions when needed.
979 2008-05-26 Robert Dewar <dewar@adacore.com>
981 * sem_cat.adb: Minor reformatting
983 * gnatname.adb: Minor reformatting
985 * osint.ads: Minor reformatting
987 * s-carun8.ads: Minor reformatting
989 * g-heasor.ads: Minor comment fix (unit is now pure)
991 2008-05-26 Robert Dewar <dewar@adacore.com>
994 (Expand_Current_Value): Properly type generated integer literal
996 2008-05-26 Sergey Rybin <rybin@adacore.com>
998 * gnat_ugn.texi: Add description for the new gnatcheck rule -
999 Separate_Numeric_Error_Handlers.
1001 2008-05-26 Pascal Obry <obry@adacore.com>
1003 * sem_aggr.adb: Minor reformatting.
1005 2008-05-26 Jose Ruiz <ruiz@adacore.com>
1008 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1009 the scheduling policy to FIFO within priorities or round-robin
1011 Hence, the priority must be set in this case to the one selected by the
1014 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1017 (Remove_Parent): If the enclosing scope is an instance whose generic
1018 parent is declared within some parent scope of the just completed
1019 instance, make full views of the entities in that parent visible, when
1022 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1024 * mingw32.h (STD_MINGW): Set to true for target w64.
1026 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1028 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1029 instead of TREE_STATIC on the ADDR_EXPR.
1031 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1033 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1034 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1035 GNAT standard locations.
1037 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1039 * gigi.h (mark_visited): Declare.
1040 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1041 only the topmost node of expressions.
1042 (elaborate_expression_1): Look deeper for read-only variables.
1043 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1044 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1045 (mark_visited_r): New function.
1047 2008-05-23 Vincent Celier <celier@adacore.com>
1049 * snames.adb: New standard name Excluded_Source_List_File.
1051 * snames.ads: New standard name Excluded_Source_List_File.
1053 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1055 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1056 Get excluded sources from
1057 file indicated by attribute Excluded_Source_List_File, when present and
1058 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1060 2008-05-23 Robert Dewar <dewar@adacore.com>
1062 * exp_dist.adb: Minor reformatting
1064 2008-05-23 Ed Schonberg <schonberg@adacore.com>
1066 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1067 slice, convert it to an indexed component, which is equivalent, more
1068 efficient, and usable even if the slice itself is not addressable.
1070 2008-05-23 Olivier Hainque <hainque@adacore.com>
1072 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1073 convention also allows access to named compiler built-in subprograms
1074 such as the GCC __builtin family.
1076 2008-05-23 Vincent Celier <celier@adacore.com>
1078 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1079 sep. If there are several possibilities, choose the one with the
1082 2008-05-23 Vincent Celier <celier@adacore.com>
1084 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1085 back end switches when executable specified with --GCC= is same as
1086 default, even if there are additional options.
1089 Document when the back end switches from the ALI file are taken into
1090 account when gnatlink is invoked with --GCC=
1092 2008-05-23 Thomas Quinot <quinot@adacore.com>
1095 (copy_File): Do not open destination file if source file is unreadable.
1097 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1099 * utils.c (handle_type_generic_attribute): Adjust to accept
1100 fixed arguments before an elipsis.
1102 2008-05-21 Thomas Quinot <quinot@adacore.com>
1104 * g-sothco.ads, g-sothco.adb: New files.
1106 2008-05-20 Thomas Quinot <quinot@adacore.com>
1108 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1110 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1111 Add missing "with" of Ada.Unchecked_Conversion
1113 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
1114 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
1115 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1116 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1117 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1118 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
1119 Move common code out of GNAT.Sockets.Thin implementations and into
1121 New constant SIZEOF_fd_set
1122 New flag Has_Sockaddr_Len
1123 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1125 * g-stsifd-sockets.adb
1126 (Create): Remove call to Set_Length; use Set_Family to set the family
1127 and (on appropriate platforms) length fields in struct sockaddr.
1129 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
1130 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
1131 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1132 Move common code out of GNAT.Sockets.Thin implementations and into
1135 * g-socket.ads, g-socket.adb:
1136 Move common code out of GNAT.Sockets.Thin implementations and into
1138 (Connect_Socket, Accept_Socket): Provide new versions of these two
1139 routines that operate with a user specified timeout.
1140 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1141 this is now handled automatically by Set_Family on platforms that
1145 Move common code out of GNAT.Sockets.Thin implementations and into
1147 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1148 this constant to 0 (not -1) because we use it to initialize an
1149 unsigned_char value.
1150 Align values for numeric constants only.
1151 Handle the case of systems that do not support AF_INET6.
1152 New constant SIZEOF_fd_set
1153 New flag Has_Sockaddr_Len
1154 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1156 * gsocket.h: New flag Has_Sockaddr_Len
1157 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1159 2008-05-20 Santiago Uruena <uruena@adacore.com>
1161 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1163 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1165 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1166 the underlying issue with malloc/free has been fixed. Remove associated
1169 Related to PR ada/24533
1171 2008-05-20 Robert Dewar <dewar@adacore.com>
1173 * ali.adb: Correct casing of ASCII.NUL
1175 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1178 2008-05-20 Robert Dewar <dewar@adacore.com>
1179 Gary Dismukes <dismukes@adacore.com>
1181 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1182 overflow if result converted to wider integer type.
1183 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1184 discriminated types when discriminant checks are suppressed.
1186 2008-05-20 Vincent Celier <celier@adacore.com>
1188 * cstand.adb (Print_Standard): Issue the correct Size clause for type
1189 Wide_Wide_Character.
1191 2008-05-20 Tristan Gingold <gingold@adacore.com>
1193 * decl.c: Do not emit a variable for a object that has an address
1194 representation clause whose value is known at compile time.
1195 When a variable has an address clause whose value is known at compile
1196 time, refer to this variable by using directly the address instead of
1197 dereferencing a pointer.
1199 2008-05-20 Robert Dewar <dewar@adacore.com>
1202 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1203 subtypes, always False for non-modular types.
1204 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1205 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1206 for Shared_Storage package.
1207 (Is_RACW_Stub_Type): New entity flag.
1210 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1211 case where we have a modular type with a non-binary modules.
1212 Comments reformattings.
1214 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1217 2008-05-20 Javier Miranda <miranda@adacore.com>
1220 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1221 tests did not covered the case in which the type of the aggregate has
1222 no progenitors but some its parents has progenitors.
1224 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1225 Hristian Kirtchev <kirtchev@adacore.com>
1228 (Expand_N_Object_Declaration): Correct the condition which triggers the
1229 generation of a call to Displace when initializing a class-wide object.
1230 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1231 when Frontend_Layout_On_Target is true to ensure that they're available
1232 for calling when a record variant size function is built in Layout.
1234 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1236 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1237 procedure for a derived type retrieve the discriminant values from the
1238 parent using the corresponding discriminant.
1239 (Expand_N_Assignment_Statement): Skip generation of implicit
1240 if-statement associated with controlled types if we are
1241 compiling with restriction No_Finalization.
1243 2008-05-20 Vincent Celier <celier@adacore.com>
1245 * prj.adb (Hash (Project_Id)): New function
1246 (Project_Empty): Add new component Interfaces_Defined
1248 * prj.ads (Source_Data): New component Object_Linked
1249 (Language_Config): New components Object_Generated and Objects_Linked
1250 (Hash (Project_Id)): New function
1251 (Source_Data): New Boolean components In_Interfaces and
1252 Declared_In_Interfaces.
1253 (Project_Data): New Boolean component Interfaces_Defined
1256 New project level attribute Object_Generated and Objects_Linked
1257 Add new project level attribute Interfaces
1259 * prj-dect.adb: Use functions Present and No throughout
1260 (Parse_Variable_Declaration): If a string type is specified as a simple
1261 name and is not found in the current project, look for it also in the
1262 ancestors of the project.
1265 Replace procedure Make with procedures Initialize, Process and Finalize
1266 to implement H414-023: process different directories with different
1268 Use functions Present and No throughout
1271 Replace procedure Make with procedures Initialize, Process and Finalize
1274 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1275 the language configuration.
1276 (Process_Project_Level_Array_Attributes): Process new attributes
1277 Object_Generated and Object_Linked.
1278 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1279 False, to indicate that the erreor/warning is a continuation.
1280 (Check): Call Report_No_Sources with Contnuation = True after the first
1282 (Error_Msg): Process successively contnuation character and warning
1284 (Find_Explicit_Sources): Check that all declared sources have been found
1285 (Check_File): Indicate in hash table Source_Names when a declared source
1287 (Check_File): Set Other_Part when found
1288 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1289 to the naming scheme have been found. For Ada, report an error if an
1290 exception has not been found. Otherwise, disregard the exception.
1291 (Check_Interfaces): New procedure
1292 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1294 (Check): In multi-language mode, call Check_Interfaces
1295 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1296 for an excluded source.
1297 (Remove_Source): A source replacing a source in the interfaces is also
1300 * prj-pars.adb: Use function Present
1302 * prj-part.adb: Use functions Present and No throughout
1303 (Parse_Single_Project): Set the parent project for child projects
1304 (Create_Virtual_Extending_Project): Register project with no qualifier
1305 (Parse_Single_Project): Allow an abstract project to be extend several
1306 times. Do not allow an abstract project to extend a non abstract
1309 * prj-pp.adb: Use functions Present and No throughout
1310 (Print): Take into account the full associative array attribute
1313 * prj-proc.adb: Use functions Present and No throughout
1314 (Expression): Call itself with the same From_Project_Node for the
1315 default value of an external reference.
1317 * prj-strt.adb: Use functions Present and No throughout
1318 (Parse_Variable_Reference): If a variable is specified as a simple name
1319 and is not found in the current project, look for it also in the
1320 ancestors of the project.
1322 * prj-tree.ads, prj-tree.adb (Present): New function
1324 Use functions Present and No throughout
1325 (Parent_Project_Of): New function
1326 (Set_Parent_Project_Of): New procedure
1328 * snames.ads, snames.adb:
1329 Add new standard names Object_Generated and Objects_Linked
1331 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1333 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1334 and the derived type are of the same kind.
1335 (Expand_Call): Generate type conversions for actuals of
1336 record or array types when the parent and the derived types differ in
1337 size and/or packed status.
1339 2008-05-20 Javier Miranda <miranda@adacore.com>
1340 Ed Schonberg <schonberg@adacore.com>
1342 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1343 generating dispatch tables of locally defined tagged types statically.
1344 Remove implicit if-statement that is no longer required.
1345 (Expand_Dispatching_Call): If this is a call to an instance of the
1346 generic dispatching constructor, the type of the first argument may be
1347 a subtype of Tag, so always use the base type to recognize this case.
1349 2008-05-20 Thomas Quinot <quinot@adacore.com>
1352 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1353 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1354 assigning NULL into the result, to avoid a spurious warning.
1355 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1357 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1359 (Build_From_Any_Function, Build_To_Any_Function,
1360 Build_TypeCode_Function): For a type that has user-specified stream
1361 attributes, use an opaque sequence of octets as the representation.
1363 2008-05-20 Kevin Pouget <pouget@adacore.com>
1365 * exp_smem.ads, exp_smem.adb: Construction of access and assign
1366 routines has been replaced by an instantiation of
1367 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1368 shared variable declaration.
1369 Calls to access and assign routines have been replaced by calls to
1370 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1371 instantiated package.
1373 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1374 It identifies the new generic package added in s-shasto.
1376 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1377 is instantiated for each shared passive variable. It provides
1378 supporting procedures called upon each read or write access by the
1382 For this runtime unit (always compiled in GNAT mode), we allow
1383 stream attributes references for limited types for the case where
1384 shared passive objects are implemented using stream attributes,
1385 which is the default in GNAT's persistent storage implementation.
1387 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1390 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1391 convention from its base type, do not set the type to that of integer,
1392 because it may inherit a size clause.
1393 Warn on a size clause with a size different
1394 from that of Integer, if the type has convention C.
1396 2008-05-20 Vincent Celier <celier@adacore.com>
1399 (Scan_Args): Rewrite to take into account new switch --and to separate
1400 arguments into sections.
1401 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1402 section, then Finalize.
1404 2008-05-20 Tristan Gingold <gingold@adacore.com>
1406 * init.c: Enable stack probing on ppc-linux.
1408 * tracebak.c: Add symbolic traceback for ppc-linux.
1410 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1412 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1415 (common-tools): New rule, to avoid parallel build failure on gnat tools.
1416 Reenable parallel builds on this Makefile.
1418 * Make-lang.in: Update dependencies.
1420 2008-05-20 Robert Dewar <dewar@adacore.com>
1422 * opt.ads (Treat_Restrictions_As_Warnings): New switch
1424 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1425 Treat_Restrictions_As_Warnings.
1427 * switch-c.adb: Recognize new switch -gnatr
1429 * usage.adb: Add line for -gnatr
1431 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1434 (P_Access_Definition): Change the error message when parsing "access
1435 all" in Ada 95 mode. The message no longer forces the user to recompile
1436 in 05 mode only to discover that anonymous access types are not allowed
1439 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1442 (P_Protected): Update the error message on missing "-gnat05" switch when
1443 using interfaces in conjunction with protected types. Remove the
1444 incorrect error message associated with the presence of "private" after
1447 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1449 * sem_aggr.adb: Update comments.
1450 Improve previous change for PR ada/17985
1452 2008-05-20 Thomas Quinot <quinot@adacore.com>
1455 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1456 the visible part of the spec of a remote types unit.
1457 (Validate_Remote_Access_Object_Type_Declaration):
1458 New local subprogram Is_Valid_Remote_Object_Type, replaces
1459 Is_Recursively_Limited_Private.
1460 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1461 non-controlling formals (and the return type, even though this is not
1462 explicit in the standard) must support external streaming.
1463 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1464 as above for of RAS types and RCI subprograms. (The return type is not
1466 Update comments related to RACWs designating limited interfaces per
1467 ARG ruling on AI05-060.
1469 * sem_util.ads, sem_util.adb
1470 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1471 Is_Remote_Call_Interface to identify RACW types in a stable and
1472 consistent way. We used to rely in this predicate on the privateness of
1473 the designated type and its ancestors, but depending on the currently
1474 visible private parts, this caused false negatives. We now uniformly
1475 rely on checks made at the point where the RACW type is declared.
1476 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1478 2008-05-20 Javier Miranda <miranda@adacore.com>
1479 Ed Schonberg <schonberg@adacore.com>
1480 Hristian Kirtchev <kirtchev@adacore.com>
1483 (Analyze_Object_Declaration): Fix over-conservative condition
1484 restricting use of predefined assignment with tagged types that have
1486 (Analyze_Object_Declaration): Relax the check regarding deferred
1487 constants declared in scopes other than packages since they can be
1488 completed with pragma Import.
1489 Add missing escaping of all-caps word 'CPP' in error messages.
1490 (Build_Discriminated_Subtype): Do not inherit representation clauses
1491 from parent type if subtype already carries them, because they are
1492 inherited earlier during derivation and already include those that may
1493 come from a partial view.
1495 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1496 Check the declarations of a subprogram body for proper deferred
1497 constant completion.
1499 * sem_ch7.ads, sem_ch7.adb
1500 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1502 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1503 Thomas Quinot <quinot@adacore.com>
1506 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1507 F is a parameterless function that returns an array, and S is a subtype
1509 (Analyze_Call): Insert dereference when the prefix is a parameterless
1510 function that returns an access to subprogram and the call has
1512 Reject a non-overloaded call whose name resolves to denote
1513 a primitive operation of the stub type generated to support a remote
1514 access-to-class-wide type.
1516 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1519 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1520 when there is a use clause for the same entity in the context.
1521 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1522 created for a stream attribute of an abstract type or interface type.
1524 2008-05-20 Thomas Quinot <quinot@adacore.com>
1526 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1530 (Add_One_Interp): Ignore any interpretation that is a primitive
1531 operation of an RACW stub type (these primitives are only executed
1532 through dispatching, never through static calls).
1533 (Collect_Interps): When only one interpretation has been found, set N's
1534 Entity and Etype to that interpretation, otherwise Entity and Etype may
1535 still refer to an interpretation that was ignored by Add_One_Interp,
1536 in which case would end up with being marked as not overloaded but with
1537 an Entity attribute not pointing to its (unique) correct interpretation.
1539 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1542 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1543 denotes the whole array of its prefix.
1545 2008-05-20 Robert Dewar <dewar@adacore.com>
1547 * sem_res.adb (Resolve_Op_Not): Warn on double negation
1549 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1552 (Print_Itype): Do not modify the sloc of the component type of a
1553 (packed) array itype, because it is an unrelated type whose source
1554 location is independent of the point of creation of the itype itself.
1556 2008-05-20 Thomas Quinot <quinot@adacore.com>
1558 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1561 2008-05-20 Robert Dewar <dewar@adacore.com>
1562 Vincent Celier <celier@adacore.com>
1564 * vms_data.ads: Add entry for -gnatr
1565 Put GNAT SYNC section in proper alpha order
1566 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1568 * gnat_ugn.texi: Add documentation for new gnatname switch --and
1569 Update the style checks section
1570 Add documentation of -gnatr
1571 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1572 subsection the explanation how compiler checks should be disabled for
1574 Update the list of Ada 95 reserved words used by in the project language
1575 Add documentation for project qualifiers.
1576 Document that abstract projects may be extended by different projects in
1577 the same project tree.
1578 Add documentation for gnatmake switch -d
1580 * ug_words: Add -gnatyy VMS equivalence string.
1581 Add entry for -gnatr
1583 2008-05-20 Bob Duff <duff@adacore.com>
1586 (Set_Handler): Remove code from both of these that implements
1587 RM-D.15(15/2), because it causes a race condition and potential
1589 (Process_Queued_Events): Add comment explaining "exception when others
1590 => null". Add clarifying ".all", even though implicit .all is legal
1593 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1595 * s-winext.ads: Replace representation clause by pragma Pack. Gives
1596 equivalent representation, but has the advantage of allowing
1597 compilation of this file under 64 bits platforms.
1599 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1601 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1604 Don't define dummy implementation of convert_addresses on ppc-linux.
1606 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1609 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1610 if expression is aggregate component.
1612 2008-05-20 Robert Dewar <dewar@adacore.com>
1614 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1615 sem_ch12.adb: Update comments. Minor reformatting.
1619 * s-unstyp.ads: Fixed some typos in comments.
1621 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1623 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1626 * g-socthi-vxworks.ads: Update to latest socket changes.
1628 * a-caldel-vms.adb: Resync with a-caldel spec.
1630 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1633 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1635 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1636 for dummy types pointed to by the converted pointer types.
1638 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
1640 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1641 of records and unions.
1642 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1644 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
1645 Robert Dewar <dewar@adacore.com>
1647 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1648 restrictions to the prefix of 'Old.
1649 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1650 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1653 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
1657 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1658 expression to an integral type with lower precision, use NOP_EXPR
1659 directly in a couple of special cases.
1661 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1662 Ed Schonberg <schonberg@adacore.com>
1664 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1665 constraint expressions.
1667 2008-05-12 Tomas Bily <tbily@suse.cz>
1669 * utils2.c (known_alignment, contains_save_expr_p)
1670 (gnat_mark_addressable): Use CASE_CONVERT.
1671 * decl.c (annotate_value): Likewise.
1672 * trans.c (maybe_stabilize_reference): Likewise.
1673 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1674 * utils.c (rest_of_record_type_compilation): Likewise.
1675 * trans.c (protect_multiple_eval, Attribute_to_gnu)
1676 (protect_multiple_eval): Likewise.
1678 2008-05-08 Andreas Schwab <schwab@suse.de>
1680 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1681 DECL_IS_PURE to DECL_PURE_P.
1683 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
1685 * decl.c (maybe_pad_type): Add ??? comment.
1687 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1689 * decl.c (components_to_record): Zero the alignment of the qualified
1690 union built for the variant part upon creating it.
1692 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1694 * decl.c (maybe_pad_type): Try to get a form of the type with integral
1695 mode even if the alignment is not a factor of the original size. But
1696 make sure to create the inner field with the original size. Reorder.
1697 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1698 record as always addressable.
1699 * utils.c (convert): Deal specially with conversions between original
1700 and packable versions of a record type.
1701 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1702 recognizing an assignment between padded objects.
1704 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1706 * decl.c (make_packable_type): Resize the last component to its RM size
1707 only if it is of an aggregate type.
1708 * trans.c (call_to_gnu): Fix nit in comment.
1709 (gnat_to_gnu): Likewise.
1711 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
1713 * Makefile.in: Adapt sh4-linux target.
1715 2008-04-29 Ed Schonberg <schonberg@adacore.com>
1718 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1719 tagged type by an untagged protected or task type.
1721 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
1722 Tristan Gingold <gingold@adacore.com>
1725 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1726 of aliased objects with an unconstrained nominal subtype.
1727 Cap the promotion to the effective alignment of the word mode.
1729 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1731 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1732 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1733 Use '&&' instead of ';'.
1735 2008-04-24 Olivier Hainque <hainque@adacore.com>
1737 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1738 doesn't require signed arithmetic anymore.
1740 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1742 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1743 (call_to_gnu): Don't set TREE_INVARIANT.
1744 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1746 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
1748 * s-osinte-rtems.adb: Add sigalstack function.
1749 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1750 function. Add Alternate_Stack and Alternate_Stack_Size.
1751 Add missing process_shared field to pthread_condattr_t
1752 and change ss_low_priority to int from timespec.
1754 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
1756 * i-forbla.adb: Link against -llapack and -lblas by default
1757 instead of the private -lgnalasup.
1759 2008-04-21 Olivier Hainque <hainque@adacore.com>
1761 Access to most C builtins from Ada
1762 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1763 (handle_pure_attribute, handle_novops_attribute,
1764 handle_nonnull_attribute, handle_sentinel_attribute,
1765 handle_noreturn_attribute, handle_malloc_attribute,
1766 handle_type_generic_attribute): New attribute handlers, from C fe.
1767 (gnat_internal_attribute_table): Map the new handlers.
1768 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1769 (init_gigi_decls): ... here.
1770 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1771 Move to a section dedicated to builtins processing.
1772 (build_void_list_node, builtin_type_for_size): New functions.
1773 (def_fn_type, get_nonnull_operand): Likewise.
1774 (install_builtin_elementary_type, install_builtin_function_types,
1775 install_builtin_attributes): Likewise.
1776 (fake_attribute_handler): Fake handler for attributes we don't
1778 (def_builtin_1): New function, worker for DEF_BUILTIN.
1779 (install_builtin_functions): New function.
1780 (gnat_install_builtins): Move to the builtins processing section.
1781 Now calling the newly introduced installers.
1783 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1785 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1786 constant objects, but not exceptions.
1787 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1789 * utils.c (create_var_decl_1): Likewise.
1790 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1791 the type when copying to padded object and the source is a constructor.
1793 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1795 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1796 alignment, reset it to zero if it would end up not being greater
1797 than that of the type.
1799 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1801 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1802 the padded type has a variable size.
1804 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1806 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1807 target pointer mechanism as soon as the size is not constant.
1809 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1811 * gigi.h (create_var_decl_1): Declare.
1812 (create_var_decl): Turn into a macro invoking create_var_decl_1.
1813 (create_true_var_decl): Likewise.
1814 * utils.c (create_var_decl_1): Make global and reorder parameters.
1815 (create_var_decl): Delete.
1816 (create_true_var_decl): Likewise.
1818 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
1820 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1822 * fe.h (Debug_Flag_Dot_A): Delete.
1823 * debug.adb (-gnatd.a): Update documentation.
1825 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1827 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1828 "not null" parameter.
1830 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1832 * g-socket.adb: Add a message "IPv6 not supported" to the
1833 Socket_Error exception.
1835 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
1838 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1839 the type is known instead of the underlying type.
1841 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1844 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1845 procedure for a derived type retrieve the discriminant values from
1846 the parent using the corresponding discriminant.
1848 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
1849 Gary Dismukes <dismukes@adacore.com>
1852 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1853 which is not an entity (and hence not a package).
1854 (End_Use_Package): Ditto.
1856 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1859 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1860 protected operation that matches the signature, not only an entry, a
1861 regular subprogram or a literal.
1863 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1865 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1866 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1867 if a size or alignment is specified. Do not take into account
1868 alignment promotions for the computation of the object's size.
1869 <type>: Call maybe_pad_type only if a size or alignment is specified.
1870 (maybe_pad_type): Really reuse the RM_Size of the original type if
1872 * trans.c (Attribute_to_gnu): Fix a couple of nits.
1873 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1874 statements. Use the padded view of the type when copying between
1875 padded objects of the same underlying type.
1877 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1879 * vms_data.ads: Fix typo in constant.
1880 * gen-soccon.c: Fix typo in error string.
1881 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1883 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1884 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1885 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1886 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1887 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1888 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1889 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1890 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1891 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1892 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1893 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1894 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1895 sinfo.ads: Fix typos in comments.
1897 2008-04-14 Robert Dewar <dewar@adacore.com>
1899 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1900 to every non-object and change error message.
1902 2008-04-14 Robert Dewar <dewar@adacore.com>
1904 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1905 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1908 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1911 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1912 apply pragma Linker_Section on type.
1914 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1917 * sem_prag.adb (Error_Pragma_Ref): New.
1918 (Process_Convention): Specialized message for non-local
1919 subprogram renaming. Detect the problem in homonyms as well.
1921 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1924 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1925 * sem_ch12.adb (Instantiate_Object): Use it.
1926 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1927 storage pool denotes a variable as per RM 13.11(15).
1929 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1931 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1932 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1934 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
1937 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1938 line endings even on non-Unix platforms.
1940 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1943 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1944 renaming information.
1946 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
1949 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1952 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1954 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1955 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1956 snames.ads, sprint.adb, stand.ads, stringt.ads,
1957 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1958 switch.ads, sysdep.c, table.adb, table.ads,
1959 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1960 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1961 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1962 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1963 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1964 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1967 * sem_ch10.adb, sem_ch10.ads,
1968 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1969 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1970 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1971 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1972 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1973 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1974 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1975 sem_warn.ads: Fix comment typos.
1977 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1978 s-soflin.ads, s-stalib.ads, s-stausa.adb,
1979 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1980 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1981 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1982 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1983 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1984 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1985 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1986 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1987 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1988 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1989 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1990 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1991 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1992 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1993 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1994 sem_cat.adb, sem_cat.ads: Fix comment typos.
1996 2008-04-12 Joel Sherrill <joel@oarcorp.com>
1999 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2001 2008-04-12 Arnaud Charlet <charlet@adacore.com>
2003 * s-linux-hppa.ads: Fix syntax errors.
2005 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2007 * gnat_ugn.texi: Fix typos.
2008 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2009 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2010 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2011 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2012 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2013 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2014 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2015 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2016 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2017 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2018 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2019 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2020 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2021 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2022 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2023 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2024 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2025 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2026 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2027 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2028 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2029 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2030 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2031 s-rident.ads: Fix comment typos.
2033 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
2036 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2037 environment if generic instance is a top-level one.
2039 2008-04-09 Doug Rupp <rupp@adacore.com>
2041 * decl.c (validate_size): Set minimum size for fat pointers same as
2042 access types. Code clean ups.
2044 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2045 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2047 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2049 * s-crtl.ads (malloc32) New function, alias for malloc
2050 (realloc32) New function, alias for realloc
2052 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2054 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2055 allocator size is 32 and default pointer size is 64.
2056 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2057 lhs type if smaller, whatever the modes.
2059 * gigi.h (malloc32_decl): New macro definition
2061 * utils.c (init_gigi_decls): New malloc32_decl
2062 Various code clean ups.
2064 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2065 Task_Address vice System.Address.
2067 * s-taspri-vms.ads: Import System.Aux_DEC
2068 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2069 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2071 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2072 Task_Address vice System.Address.
2074 * s-inmaop-vms.adb: Import System.Task_Primitives
2075 (To_Address): Unchecked convert to Task_Address vice System.Address
2077 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2079 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2080 (To_Address) Unchecked convert to Task_Address vice System.Address
2082 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2084 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2086 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2088 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2089 (fdesc_type_node): Define.
2090 (null_fdesc_node): Likewise.
2091 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2092 uses descriptors for vtables and the type comes from a dispatch table,
2093 return the descriptor type.
2094 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2095 uses descriptors for vtables and the type comes from a dispatch table,
2096 build a descriptor in the static case and copy the existing one in the
2098 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2099 the type is a pointer-to-subprogram coming from a dispatch table,
2100 return the null descriptor.
2101 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2102 vtables, the source type is the descriptor type and the target type
2103 is a pointer type, first build the pointer.
2104 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2105 build the descriptor type and the null descriptor.
2107 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2109 * decl.c (prepend_attributes): Fix typo.
2110 * trans.c (Pragma_to_gnu): Likewise.
2111 * utils.c (gnat_genericize): Likewise.
2113 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2114 Richard Kenner <kenner@adacore.com>
2116 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2117 * decl.c (gnat_to_gnu_entity): Adjust for above change.
2118 <E_Record_Type>: Try to get a better form of the component for
2119 packing, even if it has an integral mode.
2120 <E_Record_Subtype>: Likewise.
2121 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2122 exception suppressing the final conversion between record types.
2124 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2126 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2127 alignment for space, promote the alignment of non-scalar variables with
2128 no size and alignment.
2129 * gigi.h (gnat_types_compatible_p): Declare.
2130 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2131 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
2132 * utils.c (gnat_types_compatible_p) : New predicate.
2133 (convert): Use it throughout to test for cases where a mere view
2134 conversion is sufficient.
2135 * utils2.c (build_binary_op): Minor tweaks.
2136 (build_unary_op): Likewise.
2138 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2140 * decl.c (adjust_packed): Expand comment.
2142 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2144 * s-tasuti.ads: Use Task_Address instead of System.Address.
2146 * makeutl.adb (Path_Or_File_Name): New function
2148 * nlists.ads, itypes.ads: Update comments.
2150 * s-crtl.ads (malloc32, realloc32): New functions.
2152 * s-auxdec.ads (Short_Address_Size): New constant.
2154 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2156 * s-ststop.ads, s-ststop.adb: New file.
2158 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2161 2008-04-08 Pascal Obry <obry@adacore.com>
2163 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2164 (Stop_Bits_Number): New type.
2165 (Parity_Check): Likewise.
2166 (Set): Add parameter to set the number of stop bits and
2167 the parity. Parameter timeout is now a duration instead
2170 * g-sercom-linux.adb:
2171 Implement the stop bits and parity support for GNU/Linux.
2172 Fix handling of timeout, it must be given in tenth of seconds.
2174 * g-sercom-mingw.adb:
2175 Implement the stop bits and parity support for Windows.
2176 Use new s-win32.ads unit instead of declaring Win32 services
2177 directly into this body.
2178 Update handling of timeout as now a duration.
2180 * s-win32.ads, s-winext.ads: New files.
2182 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2183 Arnaud Charlet <charlet@adacore.com>
2185 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2187 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2188 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2190 * s-osinte-lynxos-3.ads,
2191 (Alternate_Stack): Remove when not needed. Simplify declaration
2193 (Alternate_Stack_Size): New constant.
2195 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2196 'Unrestricted_Access.
2198 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2199 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2200 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2201 s-osinte-solaris.ads, s-osinte-vms.ads
2202 (SA_ONSTACK): New constant.
2203 (stack_t): New record type.
2204 (sigaltstack): New imported function.
2205 (Alternate_Stack): New imported variable.
2206 (Alternate_Stack_Size): New constant.
2208 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2210 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2211 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2212 s-taspri-vms.ads (Task_Address): New subtype of System.Address
2213 (Task_Address_Size): New constant size of System.Address
2214 (Alternate_Stack_Size): New constant.
2216 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2217 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2218 Establish the alternate stack if the platform makes use of n alternate
2219 signal stack for stack overflows.
2220 (Create_Task): Take into account the alternate stack in the stack size.
2221 (Initialize): Save the address of the alternate stack into the ATCB for
2222 the environment task.
2223 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2225 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2227 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2229 * s-intman-posix.adb:
2230 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2231 alternate signal stack for stack overflows.
2233 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2234 x86-64, adjust the saved value of the stack pointer if the signal was
2235 raised by a stack checking probe.
2236 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2237 stack and only for SIGSEGV.
2238 (Linux section): Likewise on x86 and x86-64.
2240 (__gnat_map_signal): Now static.
2241 (__gnat_error_handler): Not static any more.
2242 (__gnat_adjust_context_for_raise): New function. Signal context
2243 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2244 propagation circuitry.
2245 (__gnat_error_handler): Second argument of a sigaction handler is a
2246 pointer, not an int, and is unused.
2247 Adjust signal context before mapping to exception.
2248 Install signal handlers for LynxOS case.
2250 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2251 (Task_Id): Set size to Task_Address_Size
2252 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2253 (To_Address): Unchecked convert to Task_Address vice System.Address
2255 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2256 address into the ATCB if the platform makes use of an alternate signal
2257 stack for stack overflows.
2258 (Free_Task): Add call to Finalize_Attributes_Link.
2259 Add argument Relative_Deadline to pass the value specified for
2260 the task. This is not yet used for any target.
2262 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2263 the value specified for the task.
2265 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2267 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2268 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2269 s-vxwext-rtp.adb): New files.
2271 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2272 Minor updates to accomodate changes above.
2274 2008-04-08 Pascal Obry <obry@adacore.com>
2276 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2277 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2278 Use new s-win32.ads unit instead of declaration
2279 from s-osinte-mingw.ads.
2281 * s-osinte-mingw.ads:
2282 Move all non tasking based interface to s-win32.ads.
2284 * s-osprim-mingw.adb:
2285 Remove duplicated declarations and use s-win32.ads
2288 2008-04-08 Vincent Celier <celier@adacore.com>
2289 Arnaud Charlet <charlet@adacore.com>
2291 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2292 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2293 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2294 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2295 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2297 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2298 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2299 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2300 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2301 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2302 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2303 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2304 mlib-tgt-specific-mingw.adb: New names.
2307 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2309 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2310 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2311 Minor updates for VMS
2313 * gnatbl.c: Removed.
2315 2008-04-08 Thomas Quinot <quinot@adacore.com>
2317 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2318 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2319 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2320 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2321 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2322 ASCII.NUL throughout.
2324 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2325 Matthew Heaney <heaney@adacore.com>
2327 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2330 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
2331 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2332 to convention for non-RM specs.
2333 Add descriptive header, and documented each operation
2334 document each operation
2336 2008-04-08 Robert Dewar <dewar@adacore.com>
2337 Bob Duff <duff@adacore.com>
2338 Gary Dismukes <dismukes@adacore.com>
2339 Ed Schonberg <schonberg@adacore.com>
2341 * alloc.ads: Add entries for Obsolescent_Warnings table
2343 * einfo.ads, einfo.adb: Minor reformatting.
2344 (Is_Discriminal): New subprogram.
2345 (Is_Prival): New subprogram.
2346 (Is_Protected_Component): New subprogram.
2347 (Is_Protected_Private): Removed.
2348 (Object_Ref, Set_Object_Ref): Removed.
2349 (Prival, Set_Prival): Change assertion.
2350 (Privals_Chain, Set_Privals_Chain): Removed.
2351 (Prival_Link, Set_Prival_Link): New subprogram.
2352 (Protected_Operation, Set_Protected_Operation): Removed.
2353 (Protection_Object, Set_Protection_Object): New subprogram.
2354 (Write_Field17_Name): Remove case for Object_Ref.
2355 (Write_Field20_Name): Add case for Prival_Link.
2356 (Write_Field22_Name): Remove case for Protected_Operation,
2358 Add case for Protection_Object.
2359 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2361 (Overlays_Constant): New flag
2362 (Is_Constant_Object): New predicate
2363 (Is_Standard_Character_Type): New predicate
2364 (Optimize_Alignment_Space): New flag
2365 (Optimize_Alignment_Time): New flag
2366 (Has_Postconditions): New flag
2367 (Obsolescent_Warrning): Field removed
2368 (Spec_PPC_List): New field
2369 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2370 subprograms to get and set the relative deadline associated to a task.
2372 * exp_attr.adb (May_Be_External_Call): Account for the case where the
2373 Access attribute is part of a named parameter association.
2374 (Expand_Access_To_Protected_Op): Test for the attribute occurring
2375 within an init proc and use that directly as the scope rather than
2376 traversing up to the protected operation's enclosing scope. Only apply
2377 assertion on Is_Open_Scopes in the case the scope traversal is done.
2378 For the init proc case use the address of the first formal (_init) as
2379 the protected object reference.
2380 Implement Invalid_Value attribute
2381 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2382 contents of the dispatch table there is no need to duplicate the
2383 itypes associated with record types (i.e. the implicit full view
2385 Implement Enum_Val attribute
2386 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2387 within _Postconditions procedure
2388 (Expand_N_Attribute_Reference, case Result): Implement new attribute
2390 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2391 a return statement calls a function that is not available in
2392 configurable runtime.
2393 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2394 (Expand_Non_Function_Return): Generate call to _Postconditions proc
2395 (Expand_Simple_Function_Return): Ditto
2397 * frontend.adb: Add call to Sem_Aux.Initialize
2399 * sem_aux.ads, sem_aux.adb: New file.
2401 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2402 Add new Pragma_Relative_Deadline.
2403 Add support for pragmas Check and Check_Policy
2405 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2406 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2407 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2408 missing check because they are not allowed in CPP tagged types.
2409 Add Sure parameter to Note_Possible_Modification calls
2410 Add implementation of Invalid_Value attribute
2411 Implement new attribute Has_Tagged_Values
2412 Implement Enum_Val attribute
2413 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2414 generated attributes.
2415 (Analyze_Attribute, case Result): If prefix of the attribute is
2416 overloaded, it always resolves to the enclosing function.
2417 (Analyze_Attribute, case Result): Properly deal with analysis when
2418 Postconditions are not active.
2419 (Resolve_Attribute, case Result): Properly deal with appearence during
2420 preanalysis in spec.
2421 Add processing for attribute Result
2423 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2425 (Analyze_Subprogram_Body): Install private_with_clauses when the body
2427 (Check_Inline_Pragma): recognize an inline pragma that appears within
2428 the subprogram body to which it applies.
2429 (Analyze_Function_Return): Check that type of the expression of a return
2430 statement in a function with a class-wide result is not declared at a
2431 deeper level than the function.
2432 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2433 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2434 user- defined operators.
2435 (Install_Formals): Moved to spec to allow use from Sem_Prag for
2436 analysis of precondition/postcondition pragmas.
2437 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2438 Last_Formal, along with lots of comments on what this is about
2439 (Analyze_Subprogram_Body): Fix case where we move entities from the
2440 spec to the body when there are no body entities (now possible with
2441 precondition and postcondition pragmas).
2442 (Process_PPCs): New procedure
2443 (Analyze_Subprogram_Body): Add call to Process_PPCs
2445 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2447 (Pop_Scope): Restore Check_Policy_List on scope exit
2448 (Push_Scope): Save Check_Policy_List on scope entry
2449 Change name In_Default_Expression => In_Spec_Expression
2450 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2451 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2452 (Analyze_Object_Renaming): Allow 'Reference as object
2453 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2454 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2455 of restriction identifier.
2456 Add Sure parameter to Note_Possible_Modication calls
2458 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2459 Don't check for primitive operations when calling Rep_Item_Too_Late.
2460 (Process_Import_Or_Interface): Do not place flag on formal
2462 (Analyze_Pragma, case Export): If the entity is a deferred constant,
2463 propagate information to full view, which is the one elaborated by the
2465 (Make_Inline): the pragma is effective if it applies to an internally
2466 generated subprogram declaration for a body that carries the pragma.
2467 (Analyze_Pragma, case Optimize_Alignment): Set new flag
2468 Optimize_Alignment_Local.
2469 (Analyze_PPC_In_Decl_Part): New procedure
2470 (Get_Pragma_Arg): Moved to outer level
2471 (Check_Precondition_Postcondition): Change to allow new visibility
2472 rules for package spec
2473 (Analyze_Pragma, case Check_Policy): Change placement rules to be
2474 same as pragma Suppress/Unsuppress.
2475 Change name In_Default_Expression => In_Spec_Expression
2476 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2477 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2478 (Check_Precondition_Postcondition): Do proper visibility preanalysis
2479 for the case of these pragmas appearing in the spec.
2480 (Check_Enabled): New function
2481 (Initialize): New procedure
2482 (Tree_Read): New procedure
2483 (Tree_Write): New procedure
2484 (Check_Precondition_Postcondition): New procedure
2485 Implement pragmas Check and Check_Policy
2486 Merge Assert processing with Check
2488 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2489 New warning flag -gnatw.e
2491 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2492 returning whether a task (or main procedure) has a pragma
2494 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2495 (or main procedure) has a pragma Relative_Deadline.
2496 Add Next_Pragma field to N_Pragma node
2497 (PPC_Enabled): New flag
2498 (Next_Pragma): Now used for Pre/Postcondition processing
2500 * snames.h, snames.ads, snames.adb: New standard name
2502 Add entry for 'Invalid_Value attribute
2503 Add entry for new attribute Has_Tagged_Values
2504 Add entry for Enum_Val attribute
2505 Add new standard names Aggregate, Configuration and Library.
2508 Add Pragma_Precondition
2509 Add Pragma_Postcondition
2510 Add Attribute_Result
2511 New standard name Archive_Builder_Append_Option
2512 (Preset_Names): Add _relative_deadline and relative_deadline definitions
2513 There was also a missing non_preemptive_within_priorities.
2514 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2516 Add support for pragmas Check and Check_Policy
2518 * tree_gen.adb: Call Sem_Aux.Tree_Write
2520 * tree_in.adb: Call Sem_Aux.Tree_Read
2522 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2525 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2528 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2529 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2531 (Expand_Pragma_Check): New procedure
2533 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2536 * sinfo.adb (PPC_Enabled): New flag
2538 2008-04-08 Robert Dewar <dewar@adacore.com>
2539 Gary Dismukes <dismukes@adacore.com>
2540 Javier Miranda <miranda@adacore.com>
2541 Ed Schonberg <schonberg@adacore.com>
2543 * fe.h: Remove global Optimize_Alignment flag, no longer used
2545 * layout.adb: Test Optimize_Alignment flags rather than global switch
2547 * lib.ads, lib.adb: New OA_Setting field in library record
2549 * lib-load.adb: New OA_Setting field in library record
2551 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2552 units mentioned in limited_with_ clauses in the ali file, with an
2554 New Ox fields in U line
2556 * opt.adb: New flag Optimize_Alignment_Local
2557 (Check_Policy_List[_Config]): New flags
2559 * opt.ads (Invalid_Value_Used): New flag
2560 New switch Optimize_Alignment_Local
2561 (Warn_On_Parameter_Order): New flag
2562 (Check_Policy_List[_Config]): New flags
2564 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2565 limited_with clauses.
2566 New data structures for Optimize_Alignment
2568 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2570 (Check_Consistent_Optimize_Alignment): Rework for new structure
2571 (Check_Consistent_Restrictions): Fix incorrect error message
2573 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2574 created class-wide type (to the Parent field of the specific type).
2575 (Install_Siblings): Handle properly private_with_clauses on subprogram
2576 bodies and on generic units.
2577 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2578 illegal limited_with_clause that names a non-existent package.
2579 (Check_Body_Required): Determine whether a unit named a limited_with
2580 clause needs a body.
2581 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2582 Capture Optimize_Alignment settings to set new OA_Setting field in
2584 (Build_Limited_Views): Include task and protected type declarations.
2586 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2587 case of a possible constant redeclaration where the current object is
2588 an entry index constant.
2589 (Analyze_Object_Declaration): Generate an error in case of CPP
2590 class-wide object initialization.
2591 (Analyze_Object_Declaration): Add extra information on warnings for
2592 declaration of unconstrained objects.
2593 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2594 conflicts with the setting of Stored_Constraint in the case where the
2595 access type entity has already been created as an E_Incomplete_Type due
2596 to a limited with clause.
2597 Use new Is_Standard_Character_Type predicate
2598 (Analyze_Object_Declaration): Apply access_constant check only after
2599 expression has been resolved, given that it may be overloaded with
2600 several access types.
2601 (Constant_Redeclaration): Additional legality checks for deferred
2602 constant declarations tha involve anonymous access types and/or null
2603 exclusion indicators.
2604 (Analyze_Type_Declaration): Set Optimize_Alignment flags
2605 (Analyze_Subtype_Declaration): Ditto
2606 (Analyze_Object_Declaration): Ditto
2607 (Analyze_Object_Declaration): Don't count tasks in generics
2608 Change name In_Default_Expression => In_Spec_Expression
2609 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2610 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2611 (Process_Discriminants): Additional check for illegal use of default
2612 expressions in access discriminant specifications in a type that is not
2614 (Check_Abstract_Overriding): If an inherited function dispaches on an
2615 access result, it must be overridden, even if the type is a null
2617 (Derive_Subprogram): The formals of the derived subprogram have the
2618 names and defaults of the parent subprogram, even if the type is
2619 obtained from the actual subprogram.
2620 (Derive_Subprogram): In the presence of interfaces, a formal of an
2621 inherited operation has the derived type not only if it descends from
2622 the type of the formal of the parent operation, but also if it
2623 implements it. This is relevant for the renamings created for the
2624 primitive operations of the actual for a formal derived type.
2625 (Is_Progenitor): New predicate, to determine whether the type of a
2626 formal in the parent operation must be replaced by the derived type.
2628 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2629 predicate recursive to handle components that have a user-defined
2630 Initialize procedure. Handle controlled derived types whose ancestor
2631 has a user-defined Initialize procedured.
2632 (Note_Possible_Modification): Add Sure parameter, generate warning if
2633 sure modification of constant
2634 Use new Is_Standard_Character_Type predicate
2635 (Find_Parameter_Type): when determining whether a protected operation
2636 implements an interface operation, retrieve the type of the formal from
2637 the entity when the formal is an access parameter or an
2638 anonymous-access-to-subprogram.
2639 Move Copy_Parameter_List to sem_util, for use when building stubbed
2641 (Has_Access_Values): Tagged types now return False
2642 (Within_HSS_Or_If): New procedure
2643 (Set_Optimize_Alignment_Flags): New procedure
2644 Change name In_Default_Expression => In_Spec_Expression
2645 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2646 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2648 2008-04-08 Tristan Gingold <gingold@adacore.com>
2650 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2652 2008-04-08 Tristan Gingold <gingold@adacore.com>
2656 * cuintp.c: Fix 16 bits issue for AVR.
2657 On AVR, integer is 16 bits, so it can't be used to do math with
2659 So use long_integer instead.
2661 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2663 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2664 System.OS_Primitives.
2665 Change type of various constants, parameters and local variables from
2666 Time to representation type OS_Time.
2667 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2668 Remove the declaration of constant Mili_F from several routines. New
2669 body for internal package Conversions_Operations.
2670 (Time_Of): Add default parameters for several formals.
2672 * a-caldel.adb: Minor reformatting
2674 * a-calend.ads, a-calend.adb: New body for internal package
2675 Conversions_Operations.
2676 (Time_Of): Add default parameters for several formals.
2678 * Makefile.rtl: Add a-ststop
2679 Add Ada.Calendar.Conversions to the list of runtime files.
2682 * a-calcon.adb, a-calcon.ads: New files.
2684 2008-04-08 Jose Ruiz <ruiz@adacore.com>
2685 Tristan Gingold <gingold@adacore.com>
2687 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2688 (Install_Restricted_Handlers): New procedure
2689 which is a simplified version of Install_Handlers that does not store
2690 previously installed.
2692 * s-interr-vxworks.adb: Fix ACATS cxc3001
2693 On VxWorks interrupts can't be detached.
2694 (Install_Restricted_Handlers): New procedure.
2696 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2699 2008-04-08 Olivier Hainque <hainque@adacore.com>
2701 * s-intman-vxworks.ads, s-intman-vxworks.adb
2702 (Map_And_Raise_Exception): Remove. Was an import of only part of the
2703 required services already implemented elsewhere.
2704 (Notify_Exception): Delete body, import __gnat_error_handler instead.
2705 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2706 argument passed to the handler, which we need for ZCX propagation
2709 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2711 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2713 * g-timsta.adb, g-timsta.ads: New files.
2715 2008-04-08 Robert Dewar <dewar@adacore.com>
2717 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2718 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2719 (Raise_Exception_Always): Fix documentation accordingly
2721 2008-04-08 Robert Dewar <dewar@adacore.com>
2723 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2726 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2729 2008-04-08 Javier Miranda <miranda@adacore.com>
2730 Robert Dewar <dewar@adacore.com>
2731 Ed Schonberg <schonberg@adacore.com>
2733 * a-tags.adb (Register_Interface_Offset): New subprogram.
2734 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2735 (To_Predef_Prims_Table_Ptr): Removed.
2736 (Acc_Size): Removed.
2737 (To_Acc_Size): Removed.
2738 (Parent_Size): Modified to the call the subprogram returning the size of
2739 the parent by means of the new TSD component Size_Func.
2741 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2742 (DT_Offset_To_Top_Offset): New constant value that is used to generate
2743 code referencing the Offset_To_Top component of the dispatch table's
2745 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2746 use of 'address to initialize dispatch table slots.
2747 (Size_Func): New component of the TSD. Used by the run-time to call the
2748 size primitive of the tagged type.
2750 * checks.adb (Apply_Access_Check): Avoid check when accessing the
2751 Offset_To_Top component of a dispatch table.
2752 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2753 deferred constant declaration. do not add a null expression, to prevent
2754 spurious errors when full declaration is analyzed.
2755 (Apply_Discriminant_Check): If both discriminant constraints share a
2756 node which is not static but has no side effects, do not generate a
2757 check for that discriminant.
2758 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2759 subexpr, since the prefix of an attribute is a name.
2761 * checks.ads: Fix nit in comment.
2763 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2764 and body of predefined primitives in case of CPP tagged type
2766 (Freeze_Type): Deal properly with no storage pool case
2767 (Make_Predefined_Primitive_Specs): Generate specification of abstract
2768 primitive Deep_Adjust if a nonlimited interface is derived from a
2770 (Build_Dcheck_Functions): Create discriminant-checking functions only
2771 for variants that have some component(s).
2772 (Build_Slice_Assignment): In expanded code for slice assignment, handle
2773 properly the case where the slice bounds extend to the last value of the
2774 underlying representation.
2775 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2776 (Is_Variable_Size_Record): An array component has a static size if
2777 index bounds are enumeration literals.
2779 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2780 an external tag has been specified for the type.
2781 (Building_Static_DT): Add missing support for private types.
2782 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2783 to the entity associated with the parent of Typ. This is done to
2784 avoid wrong access when the parent is a private type.
2785 (Expand_Interface_Conversion): Improve error message when the
2786 configurable runtime has no support for dynamic interface conversion.
2787 (Expand_Interface_Thunk): Add missing support to interface types in
2788 configurable runtime.
2789 (Expand_Dispatching_Call): remove obsolete code.
2790 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2791 ensure that all subtypes and aggregates associated with dispatch
2792 tables have the attribute Is_Dispatch_Table_Entity set to true.
2793 (Register_Primitive): Rename one variable to improve code reading.
2794 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2795 of the pointer to the 'size primitive in the TSD.
2797 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2798 (RE_Offset_To_Top_Ptr): New entity.
2799 (RE_Register_Interface_Offset): New entity.
2800 (RE_Set_Dynamic_Offset_To_Top): New entity.
2801 (RE_Set_Offset_To_Top): Removed entity.
2802 (RE_Prim_Ptr): New entity
2803 (RE_Size_Func): New entity
2804 (RE_Size_Ptr): New entity
2805 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2806 (Ada_Dispatching_Child): Define this new subrange.
2807 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2808 RE_Time_Span, and RE_Time_Span_Zero).
2809 (RE_Unit_Table): Add new required run-time calls
2811 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2814 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2815 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2816 initializes the Offset_To_Top component of a dispatch table.
2817 (Build_Predef_Prims): Removed.
2818 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2820 (Build_Set_Size_Function): New subprogram.
2822 * exp_ch13.adb: Do not generate storage variable for storage_size zero
2823 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2825 2008-04-08 Robert Dewar <dewar@adacore.com>
2827 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2828 computing Fore when Exp > 0
2830 2008-04-08 Robert Dewar <dewar@adacore.com>
2832 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2834 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2835 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2837 * fmap.adb: Remove Big_String declarations (now in Types)
2838 (No_Mapping_File): New Boolean global variable
2839 (Initialize): When mapping file cannot be read, set No_Mapping_File to
2841 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2842 tables were empty before adding entries, open the mapping file
2843 with Truncate = True, instead of delete/re-create.
2845 * fname-sf.adb: Remove Big_String declarations (now in Types)
2847 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2848 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2851 * table.ads: Add for Table_Ptr'Storage_Size use 0
2853 * types.ads: Add Big_String declarations
2854 Add Size_Clause of zero for big pointer types
2856 2008-04-08 Vincent Celier <celier@adacore.com>
2858 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2859 (Usage): Add line for switch --subdirs=
2860 Add new switch -eL, to follow symbolic links when processing project
2863 * gnatcmd.adb: Process switches -eL and --subdirs=
2864 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2865 Program_Name to get proper tool names when AAMP_On_Target is set.
2866 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2867 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2868 Osint.Program_Name).
2870 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2871 (Usage): Add lines for switches -eL and --subdirs=
2873 * makeusg.adb: Add line for switch --subdirs=
2876 (Source_Data): New Boolean component Compiled, defaulted to True
2877 (Empty_File_Name: New global variable in private part, initialized in
2878 procedure Initialize.
2879 (Subdirs_Option): New constant string
2880 (Subdirs): New String_Ptr global variable
2881 (Language_Config): New component Include_Compatible_Languages
2882 (Project_Qualifier): New type for project qualifiers
2883 (Project_Data): New component Qualifier
2884 (Project_Configuration): New component Archive_Builder_Append_Option
2886 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2887 another imported project indicate the name of this imported project.
2888 (Check_File): When a unit is in two project files, indicate the project
2889 names and the paths of the source files for each project.
2890 (Add_Source): Set Compiled to False if compiler driver is empty. Only
2891 set object, dependency and switches file names if Compiled is True.
2892 (Process_Compiler): Allow the empty string for value of attribute Driver
2893 (Get_Directories): When Subdirs is not null and Object_Dir is not
2894 specified, locate and create if necessary the actual object dir.
2895 (Locate_Directory): When Subdirs is not empty and Create is not the
2896 empty string, locate and create if necessary the actual directory
2897 as a subdirectory of directory Name.
2898 (Check_Library_Attributes.Check_Library): Allow a project where the only
2899 "sources" are header files of file based languages to be imported by
2900 library projects, in multi-language mode (gprbuild).
2901 (Check_Library_Attributes.Check_Library): In multi-language mode
2902 (gprbuild), allow a library project to import a project with no
2903 sources, even when this is not declared explicitly.
2904 (Check_If_Externally_Built): A virtual project extending an externally
2905 built project is also externally built.
2906 (Check_Library_Attributes): For a virtual project extending a library
2907 project, inherit the library directory.
2908 (Process_Project_Level_Array_Attributes): Process new attribute
2909 Inherit_Source_Path.
2910 For projects with specified qualifiers "standard", "library" or
2911 "abstract", check that the project conforms to the qualifier.
2912 (Process_Project_Level_Simple_Attributes): Process new attribute
2913 Archive_Builder_Append_Option.
2915 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2916 (Normalize_Compiler_Switches): Only keep compiler switches that are
2917 passed to gnat1 by the gcc driver and that are stored in the ALI file
2919 Do not take into account switc -save-temps
2921 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2922 gprmake is called with -eL.
2923 (Scan_Arg): Recognize switch -eL
2924 (Usage): Add line for switch -eL
2926 * prj.adb (Initialize): Initialize Empty_File_Name
2927 (Project_Empty): New component Qualifier
2929 * prj-attr.ads, prj-attr.adb: New project level attribute
2930 Inherit_Source_Path.
2931 New project level attribute Archive_Builder_Append_Option
2933 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2935 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2936 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2937 upward compatibility.
2939 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2940 each Trying ..." on different lines.
2941 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2942 is "configuration" when not in configuration. Fail when in configuration
2943 when a specified qualifier is other than "configuration".
2945 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2946 full associative array together.
2947 (Recursive_Process): Put the project qualifier in the project data
2949 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2950 (Set_Project_Qualifier_Of): New procedure
2952 2008-04-08 Robert Dewar <dewar@adacore.com>
2954 * errout.ads: Update comments for new handling of info: messages
2956 * erroutc.adb (Matches): New procedure
2957 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2958 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2959 info messages as well as style messages.
2961 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2963 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2965 (Check_A_Call): Special "info: " warnings now have ? in the text
2966 (Elab_Warning): Use info message in static case
2968 2008-04-08 Ed Schonberg <schonberg@adacore.com>
2970 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2971 whether an array aggregate with static bounds and scalar components
2972 should be expanded into a static constant.
2974 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2975 Ed Schonberg <schonberg@adacore.com>
2976 Robert Dewar <dewar@adacore.com>
2978 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2979 Has_Stream_Attribute_ Definition when checking for available stream
2980 attributes on parameters of a limited type in Ada 2005. Necessary for
2981 proper recognition of visible stream attribute clauses.
2982 (Has_Stream_Attribute_Definition): If the type is derived from a
2983 private type, then use the derived type's underlying type for checking
2984 whether it has stream attributes.
2985 (Validate_Object_Declaration): The check for a user-defined Initialize
2986 procedure applies also to types with controlled components or a
2987 controlled ancestor.
2988 Reject an object declaration in a preelaborated unit if the type is a
2989 controlled type with an overriding Initialize procedure.
2990 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2991 checking when the parent of a dereference is a selected component and
2992 the name has not been analyzed.
2994 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2995 prefixes that are invalid explicit dereferences of remote
2996 access-to-class-wide values, first checking whether the selected
2997 component is a prefixed form of call to a tagged operation.
2998 (Analyze_Call): Remove code that issues an error for limited function
2999 calls in illegal contexts, as we now support all of the contexts that
3000 were forbidden here.
3001 Allow a function call that returns a task.and appears as the
3002 prefix of a selected component.
3003 (Analyze_Reference): Give error message if we try to make a 'Reference
3004 for an object that is atomic/aliased without its type having the
3005 corresponding attribute.
3006 (Analyze_Call): Remove condition checking for attributes to allow
3007 calls to functions with inherently limited results as prefixes of
3008 attributes. Remove related comment about Class attributes.
3009 (Analyze_Selected_Component): If the prefix is a remote type, check
3010 whether this is a prefixed call before reporting an error.
3011 (Complete_Object_Operation): If the controlling formal is an access to
3012 variable reject an actual that is a constant or an access to one.
3013 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3014 primitive operations from base type.
3016 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3018 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3019 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3020 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3021 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3022 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3023 (Analyze_Call): Remove code that issues an error for limited function
3024 calls in illegal contexts, as we now support all of the contexts that
3025 were forbidden here.
3026 New calling sequence for Get_Simple_Init_Val
3027 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3028 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3030 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3031 Ed Schonberg <schonberg@adacore.com>
3032 Robert Dewar <dewar@adacore.com>
3034 * exp_ch2.adb: Minor reformatting.
3035 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3036 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3037 (Expand_Protected_Component): New routine.
3038 (Expand_Protected_Private): Removed.
3039 Add Sure parameter to Note_Possible_Modification calls
3041 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3042 generated subprogram declaration must inherit the overriding indicator
3043 from the instantiation node.
3044 (Validate_Access_Type_Instance): If the designated type of the actual is
3045 a limited view, use the available view in all cases, not only if the
3046 type is an incomplete type.
3047 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3048 and the actual subtype does not exclude null.
3049 (Process_Default): Handle properly abstract formal subprograms.
3050 (Check_Formal_Package_Instance): Handle properly defaulted formal
3051 subprograms in a partially parameterized formal package.
3052 Add Sure parameter to Note_Possible_Modification calls
3053 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3054 actual cannot be limited.
3055 (Collect_Previous_Instances): Generate instance bodies for subprograms
3058 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3060 Add Sure parameter to Note_Possible_Modification calls
3061 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3062 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3063 constant overlaid by variable and issue warning.
3064 Use new Is_Standard_Character_Type predicate
3065 (Analyze_Record_Representation_Clause): Check that the specified
3066 Last_Bit is not less than First_Bit - 1.
3067 (Analyze_Attribute_Definition_Clause, case Address): Check for
3068 self-referential address clause
3070 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3071 detection mechanism when the lhs is a prival.
3072 (Analyze_Assignment): Call Check_Unprotected_Access to detect
3073 assignment of a pointer to protected data, to an object declared
3074 outside of the protected object.
3075 (Analyze_Loop_Statement): Check for unreachable code after loop
3076 Add Sure parameter to Note_Possible_Modication calls
3077 Protect analysis from previous syntax error such as a scope mismatch
3079 (Analyze_Assignment_Statement): The assignment is illegal if the
3080 left-hand is an interface.
3082 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3083 violation of restriction No_Implicit_Conditionals
3084 Add Sure parameter to Note_Possible_Modication calls
3085 Use new Is_Standard_Character_Type predicate
3086 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3087 call as operator. Fixes problems (e.g. validity checking) which
3088 come from the result looking as though it does not come from source).
3089 (Resolve_Call): Check case of name in named parameter if style checks
3091 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3092 from the checking that such calls should not occur from an entry body.
3093 (Resolve_Call): If the return type of an Inline_Always function
3094 requires the secondary stack, create a transient scope for the call
3095 if the body of the function is not available for inlining.
3096 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3097 that are actuals for in-out formals.
3098 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3099 primitive operations from base type.
3100 (Analyze_Selected_Component): If the context is a call to a protected
3101 operation the parent may be an indexed component prior to expansion.
3102 (Resolve_Actuals): If an actual is of a protected subtype, use its
3103 base type to determine whether a conversion to the corresponding record
3105 (Resolve_Short_Circuit): Handle pragma Check
3107 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3108 Use new Is_Standard_Character_Type predicate
3109 (Eval_Relational_Op): Catch more cases of string comparison
3111 2008-04-08 Robert Dewar <dewar@adacore.com>
3112 Gary Dismukes <dismukes@adacore.com>
3114 * s-rident.ads: Add No_Default_Initialization restriction
3117 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3118 (Set_TSS): Handle No_Default_Initialization case
3120 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3121 No_Default_Initialization
3122 (Expand_N_Subprogram_Body): Remove redundant initialization of out
3123 parameters when Normalize_Scalars is active.
3124 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3125 Fix casing error in formal parameter name in call
3126 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3127 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3128 dispatching call on VM targets.
3130 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3131 Thomas Quinot <quinot@adacore.com>
3133 * exp_ch7.adb (Find_Final_List): Change the test for generating a
3134 selected component from an access type's Associated_Final_Chain to
3135 check for the presence of that field, rather than assuming it exists
3136 for all named access types.
3137 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3138 procedure to call at the end of the generated cleanup procedure.
3139 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3140 and an At_End_Proc already exists in the handled sequence of statements
3141 for which cleanup actions are being expanded, the original cleanup
3142 action must be preserved.
3144 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3145 Ed Schonberg <schonberg@adacore.com>
3146 Robert Dewar <dewar@adacore.com>
3147 Gary Dismukes <dismukes@adacore.com>
3149 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3150 Build_Unprotected_Subprogram_Body): Generate debug info for
3151 declarations related to the handling of private data in task and
3153 (Debug_Private_Data_Declarations): New subprogram.
3154 (Install_Private_Data_Declarations): Remove all debug info flagging.
3155 This is now done by Debug_Private_Data_Declarations at the correct
3157 (Build_Simple_Entry_Call): If the task name is a function call, expand
3158 the prefix into an object declaration, and make the surrounding block a
3160 (Build_Master_Entity): An internal block is a master if it wraps a call.
3161 Code reformatting, update comments. Code clean up.
3162 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3163 (Replicate_Entry_Formals): If the formal is an access parameter or
3164 anonymous access to subprogram, copy the original tree to create new
3165 entities for the formals of the subprogram.
3166 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3167 for tasks to store the value passed using pragma Relative_Deadline.
3168 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3169 run-time call to create a task.
3170 (Build_Wrapper_Spec): If the controlling argument of the interface
3171 operation is an access parameter with a non-null indicator, use the
3172 non-null indicator on the wrapper.
3174 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3175 present, which it may not be in the case where the type entity is an
3176 incomplete view brought in by a limited with.
3177 (Analyze_Task_Type): Only retrieve the full view when present, which it
3178 may not be in the case where the type entity is an incomplete view brought
3179 in by a limited with.
3180 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3181 private components of a protected type, to prevent the generation of freeze
3182 nodes for which there is no proper scope of elaboration.
3184 * exp_util.ads, exp_util.adb
3185 (Remove_Side_Effects): If the expression is a function call that returns a
3186 task, expand into a declaration to invoke the build_in_place machinery.
3187 (Find_Protection_Object): New routine.
3188 (Remove_Side_Effects): Also make a copy of the value
3189 for attributes whose result is of an elementary type.
3190 (Silly_Boolean_Array_Not_Test): New procedure
3191 (Silly_Boolean_Array_Xor_Test): New procedure
3192 (Is_Volatile_Reference): New function
3193 (Remove_Side_Effects): Use Is_Volatile_Reference
3194 (Possible_Bit_Aligned_Component): Handle slice case properly
3196 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3197 case test to Exp_Util
3198 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3200 2008-04-08 Thomas Quinot <quinot@adacore.com>
3202 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3204 (Add_RACW_Features): When processing an RACW in another unit than the
3205 main unit, set Body_Decls to No_List to indicate that the bodies of
3206 the type's TSS must not be generated.
3207 (GARLIC_Support.Add_RACW_Read_Attribute,
3208 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3209 Body_Decls is No_List.
3210 (PolyORB_Support.Add_RACW_Read_Attribute,
3211 PolyORB_Support.Add_RACW_Write_Attribute,
3212 PolyORB_Support.Add_RACW_From_Any,
3213 PolyORB_Support.Add_RACW_To_Any,
3214 PolyORB_Support.Add_RACW_TypeCode): Same.
3215 (Transmit_As_Unconstrained): New function.
3216 (Build_Ordered_Parameters_List): Use the above to order parameters.
3217 (GARLIC_Support.Build_General_Calling_Stubs):
3218 Use the above to determine which parameters to unmarshall using 'Input
3219 at the point where their temporary is declared (as opposed to later on
3221 (PolyORB_Support.Build_General_Calling_Stubs):
3222 Use the above to determine which parameters to unmarshall using From_Any
3223 at the point where their temporary is declared (as opposed to later on
3224 with an assignment).
3226 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3228 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3229 an Input function for an access type, do not perform default
3230 initialization on the local variable that receives the value, to
3231 prevent spurious warnings when the type is null-excluding.
3233 2008-04-08 Robert Dewar <dewar@adacore.com>
3234 Ed Schonberg <schonberg@adacore.com>
3236 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3238 (Size_Known): Generic formal scalar types have known at compile
3239 time size, so remove check.
3240 Fix casing error in formal parameter name in call
3241 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3242 recheck its overriding indication.
3244 2008-04-08 Vincent Celier <celier@adacore.com>
3246 * gnat1drv.adb: Send all messages indicating an error to standard error
3248 2008-04-08 Robert Dewar <dewar@adacore.com>
3250 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3251 (List_Applicable_Restrictions): Do not list existing restrictions
3253 2008-04-08 Thomas Quinot <quinot@adacore.com>
3255 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3256 add a pointer to generic sockets literature
3257 do not mention that the given example is "typical" usage.
3258 Remove obsolete comment about multicast not being supported on Windows.
3259 (Connect_Socket): Make Server mode IN rather than IN OUT
3260 since this formal is never modified.
3262 2008-04-08 Robert Dewar <dewar@adacore.com>
3264 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3265 the declaration for some different entity.
3266 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3267 list is precent (following the parent subtype indication), display
3268 appropriate "and" keyword.
3270 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3271 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3272 Add notes on use of Parent field of an Itype
3274 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3275 Robert Dewar <dewar@adacore.com>
3276 Gary Dismukes <dismukes@adacore.com>
3278 * lib-xref.adb (Is_On_LHS): Remove dead code
3279 (Output_Overriden_Op): If the overridden operation is itself inherited,
3280 list the ancestor operation, which is the one whose body or absstract
3281 specification is actually being overridden. For source navigation
3284 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3285 operation is primitive for the type.
3286 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3287 an inherited private subprogram, set properly the Overridden_Operation
3288 attribute, for better cross-reference information.
3289 (Analyze_Package_Specification): Do late analysis of spec PPCs
3290 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3291 properly the full view and underlying full views of a private type in a
3292 child unit, whose full view is derived from a private type in a parent
3293 unit, and whose own full view becomes visible in the child body.
3295 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3296 primitive operation after the type has been frozen, add an explicit
3297 reference to the type and the operation, because other primitive
3298 references have been emitted already.
3299 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3300 dispatching call on VM targets.
3302 2008-04-08 Vincent Celier <celier@adacore.com>
3303 Thomas Quinot <quinot@adacore.com>
3305 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3306 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3307 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3308 (Insert_Project_Sources): Take into account index in multi-unit source
3310 After building a library project, delete all temporary files.
3311 (Initialize): Reset current output after parsing project file.
3312 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3313 of library projects that are externally built.
3314 Put file name in error and inform messages if -df is used
3315 (Display): If invoked with -d7, do not display path names, but only
3318 * makeutl.ads (Path_Or_File_Name): New function
3319 (Path_Or_File_Name): New function
3321 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3323 * Make-lang.in: Disable warnings during first stage of bootstrap
3325 Update dependencies.
3327 2008-04-08 Vincent Celier <celier@adacore.com>
3329 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3330 case to decide if ALI object file is included in library.
3331 (Build_Library): Never attempt to build a library if the project is
3334 2008-04-08 Thomas Quinot <quinot@adacore.com>
3336 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3337 (No_List) is defined to return Empty.
3339 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3341 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3344 (Read_Default_Search_Dirs): Do not consider spaces as path separators
3345 because spaces may be part of legal paths.
3347 2008-04-08 Robert Dewar <dewar@adacore.com>
3349 * par-ch11.adb (P_Exception_Handler): Check indentation level for
3352 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3354 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3355 in a type declaration, if this is not an interface declaration or
3356 private type extension.
3358 2008-04-08 Vincent Celier <celier@adacore.com>
3360 * prj-util.adb (Executable_Of): New String parameter Language. When
3361 Ada_Main is False and Language is not empty, attempt to remove the body
3362 suffix or the spec suffix of the language to get the base of the
3363 executable file name.
3364 (Put): New Boolean parameter Lower_Case, defauilted to False. When
3365 Lower_Case is True, put the value in lower case in the name list.
3366 (Executable_Of): If there is no executable suffix in the configuration,
3367 then do not modify Executable_Extension_On_Target.
3369 * prj-util.ads (Executable_Of): New String parameter Language,
3370 defaulted to the empty string.
3371 (Put): New Boolean parameter Lower_Case, defauilted to False
3373 2008-04-08 Robert Dewar <dewar@adacore.com>
3375 * scng.adb (Scan_Identifier): Handle case of identifier starting with
3376 wide character using UTF-8 encoding.
3378 2008-04-08 Javier Miranda <miranda@adacore.com>
3380 * sem.adb (Analyze): Consider case in which we analyze an empty node
3381 that was generated by a call to a runtime function that is not
3382 available under the configurable runtime.
3384 * sem.ads (Inside_Freezing_Actions): New flag.
3385 (Save_Check_Policy_List): New field in scope stack entry
3387 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3388 Robert Dewar <dewar@adacore.com>
3390 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3391 the ancestor part of an extension aggregate for a limited type.
3392 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3393 enumeration index bounds.
3394 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3395 when array is too short.
3396 (Check_Expr_OK_In_Limited_Aggregate): Move function
3397 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3399 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3400 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3401 component associations.
3402 (Check_Non_Limited_Type): Moved to outer level and renamed.
3403 (Resolve_Record_Aggregate): In an extension aggregate, an association
3404 with a box initialization can only designate a component of the
3405 extension, not a component inherited from the given ancestor
3407 * sem_case.adb: Use new Is_Standard_Character_Type predicate
3409 2008-04-08 Robert Dewar <dewar@adacore.com>
3411 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3413 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3414 Properly handle case where Aft > Scale and input number is less than
3417 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3419 * s-stoele.ads, s-soflin.ads: Move the location of
3420 Dummy_Communication_Block from System.Storage_Elements to
3423 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3424 emulate Communication_Block in certain scenarios.
3426 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3428 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3430 Add new subtype S_WWC, unchecked conversion routines From_WWC and
3432 (I_WWC, O_WWC): New routines for input and output of
3433 Wide_Wide_Character.
3435 2008-04-08 Robert Dewar <dewar@adacore.com>
3437 * stringt.adb (Write_String_Table_Entry): Handle wide characters
3440 2008-04-08 Robert Dewar <dewar@adacore.com>
3442 * styleg.adb (Check_Comment): Allow special char after -- in
3443 non-end-of-line case
3445 2008-04-08 Robert Dewar <dewar@adacore.com>
3447 * stylesw.adb: Implement -gnaty + - y options
3448 (Set_GNAT_Style_Check_Options): Includ I in style check string
3450 * stylesw.ads: Add comments for new style switch options
3452 2008-04-08 Sergey Rybin <rybin@adacore.com>
3454 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3455 to the set of the GNAT components needed by ASIS.
3457 2008-04-08 Bob Duff <duff@adacore.com>
3459 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3461 2008-04-08 Tristan Gingold <gingold@adacore.com>
3463 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3464 Improve error message generation.
3466 2008-04-08 Vincent Celier <celier@adacore.com>
3468 * a-direct.adb (Start_Search): Check for Name_Error before checking for
3469 Use_Error, as specified in the RM. Check if directory is open and raise
3470 Use_Error if it is not.
3472 2008-04-08 Vincent Celier <celier@adacore.com>
3473 Robert Dewar <dewar@adacore.com>
3475 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3476 AAMP_On_Target is set.
3478 * vms_data.ads: Add NOxxx to style check switch list
3479 Add entry COMPONENTS for -gnatVe
3480 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3482 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3483 Add qualifiers for gnatmetric coupling options
3484 Add note that -gnata enables all checks
3485 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3486 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3487 New warning flag -gnatw.e
3489 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3490 Add entry for -gnatyN (forgotten before)
3491 Line for new warning switch -gnatw.p
3492 New warning flag -gnatw.e
3494 * gnat_ugn.texi: Add documentation fpr project file switch -aP
3495 Document -gnaty - + y
3496 Replace occurences of "package specification" with "package spec"
3497 Define preprocessing symbols in documentation of gnatprep
3498 Clarify reason for distinguishing overflow checking
3499 Add documentation for project-aware tool switches -eL and --subdirs=
3500 Complete list of configuration pragmas
3501 Specify that, even when gnatmake switch -x is used, mains on the command
3502 line need to be sources of project files.
3503 Editing of gnatcheck/gnatmetric doc.
3504 Add documentation for -gnatw.p/-gnatw.P
3505 Add missing documentation for -fno-inline-functions.
3506 Add documentation for -gnatw.e
3508 * gnat_rm.texi: Add documentation for No_Default_Initialization
3509 Replace occurences of "package specification" with "package spec"
3510 Document use of * in Warnings Off string
3511 Update documentation of alignment/component clauses.
3512 Add documentation for Invalid_Value
3513 Document new consistency rule for Optimize_Alignment
3514 Add documentation for Precondition and Postcondition pragmas
3515 Add documentation for Check and Check_Policy pragmas
3516 Document new Enum_Val attribute
3517 Remove requirement for static string in pragma Assert
3518 Add documentation on GNAT.Time_Stamp
3520 * ug_words: add entry for -gnatVe
3521 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3522 Add entry for -gnatw.e
3524 * debug.adb: Add missing documentation for d.a flag
3525 Document new -gnatd.a switch.
3526 Add documentation for new gnatmake debug switch -df
3528 2008-04-08 Thomas Quinot <quinot@adacore.com>
3530 * gen-soccon.c: Bump year in copyright notices.
3532 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3534 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3536 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3539 2008-04-08 Robert Dewar <dewar@adacore.com>
3540 Bob Duff <duff@adacore.com>
3542 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3543 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3545 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3547 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3549 * g-trasym.ads: Minor comment improvements
3551 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3553 * a-sequio.ads, a-direio.ads: improve message for tagged type
3555 * a-strunb.ads: Minor reformatting
3557 * a-tifiio.adb: Minor reformatting
3559 * atree.adb (Fix_Parents): Use clearer names for formals
3560 Cleanup and simplify code
3561 Use named notation in calls
3563 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3566 * uintp.adb: Used named notation for some confusing calls
3568 * bindusg.adb: Minor change in one line of output
3570 * cstand.adb: Minor reformatting of src representation of Standard
3572 * a-assert.ads: Add comment.
3574 * g-decstr.adb: Fix bad indentation
3576 * expander.ads, expander.adb: Code clean up.
3578 * sem_dist.ads: Minor comment improvement
3580 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3581 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3583 * i-cstrin.adb: Fix casing error in formal parameter name in call
3585 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3587 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3588 mentioned in limited_with_clauses to do create semantic dependencies
3589 even though they appear in the ali file.
3591 2008-04-08 Emmanuel Briot <briot@adacore.com>
3593 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3595 (Get_Configuration): New subprogram.
3597 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3598 These optional parameters help preserve the casing of the project's name
3599 when pretty-printing.
3601 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
3602 Arnaud Charlet <charlet@adacore.com>
3604 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3605 then use __gnat_set_exit_status to report the returned status code.
3607 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3608 messages on .NET, since some constructs of the language are not
3611 * gnatlink.adb (Gnatlink): In case the command line is too long for the
3612 .NET linker, gnatlink now concatenate all .il files and pass this to
3615 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3616 Xavier Grave <grave@ipno.in2p3.fr>
3618 * Makefile.in: Add make ifeq define for mips/mipsel support.
3619 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
3620 system-linux-mips.ads: New files.
3622 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3624 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3625 detect systems using GNU libc.
3631 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3633 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
3634 constant constant for sysconf call.
3635 (bit_field): New packed boolean type used by cpu_set_t.
3636 (cpu_set_t): New type corresponding to the C type with
3637 the same name. Note that on the Ada side we use a bit
3638 field array for the affinity mask. There is not need
3639 for the C macro for setting individual bit.
3640 (pthread_setaffinity_np): New imported routine.
3641 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3644 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3646 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3648 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3650 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3651 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3652 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3653 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3654 Return by Depressed Stack Pointer.
3656 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3658 * decl.c (is_variable_size): Do not unconditionally return false
3659 on non-strict alignment platforms.
3661 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3663 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3664 used to process all the variants of the specified type.
3665 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3666 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
3667 (rest_of_type_decl_compilation): Likewise.
3668 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3670 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3672 * gigi.h (insert_block): Kill.
3673 * utils.c (insert_block): Kill.
3675 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3677 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3678 type has self-referential size, get the size from the initializing
3679 expression directly if it is also a constant whose nominal type
3680 has self-referential size.
3682 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3685 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3688 * env.c: Always include crt_externs.h if __APPLE__ is defined.
3689 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3691 2008-04-01 Andreas Jaeger <aj@suse.de>
3693 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3696 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3698 * g-table.adb, g-tasloc.adb, g-traceb.ads,
3699 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3700 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3701 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3702 gnatlink.adb, gnatmem.adb, gprep.adb,
3703 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3704 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3705 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3706 lib-xref.ads, lib.adb, link.c, live.ads,
3707 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3708 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3709 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3710 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3711 namet.adb, namet.h, nlists.adb, nlists.ads,
3712 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3713 osint-c.ads, osint.adb, osint.ads, output.ads,
3714 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3715 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3716 par-endh.adb, par-labl.adb, par-prag.adb,
3717 par-sync.adb, par-tchk.adb, par-util.adb,
3718 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3719 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3720 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3721 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3723 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
3725 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3726 size if it has overflowed.
3728 2008-03-31 Olivier Hainque <hainque@adacore.com>
3729 Eric Botcazou <ebotcazou@adacore.com>
3731 * utils2.c (find_common_type): Document assumption on t1/t2 vs
3732 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3734 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3736 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3737 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3738 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3739 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3740 exp_tss.ads, exp_util.adb, exp_util.ads,
3741 exp_vfpt.adb, freeze.adb, freeze.ads,
3742 frontend.adb, g-alleve.adb, g-altcon.adb,
3743 g-altive.ads, g-alveop.ads, g-alvevi.ads,
3744 g-arrspl.adb, g-busorg.ads, g-calend.adb,
3745 g-calend.ads, g-casuti.ads, g-cgideb.adb,
3746 g-comlin.adb, g-comlin.ads, g-curexc.ads,
3747 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3748 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3749 g-dyntab.adb, g-encstr.ads, g-excact.ads,
3750 g-except.ads, g-expect.ads, g-heasor.adb,
3751 g-hesora.adb, g-hesorg.adb, g-htable.ads,
3752 g-locfil.ads, g-md5.adb, g-md5.ads,
3753 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3754 g-pehage.adb, g-pehage.ads, g-regexp.adb,
3755 g-regexp.ads, g-regpat.adb, g-regpat.ads,
3756 g-soccon-aix.ads, g-soccon-darwin.ads,
3757 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3758 g-soccon-hpux.ads, g-soccon-irix.ads,
3759 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3760 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3761 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3762 g-soccon-solaris.ads, g-soccon-tru64.ads,
3763 g-soccon-vms.ads, g-soccon-vxworks.ads,
3764 g-soccon.ads, g-socket.adb, g-socket.ads,
3765 g-socthi-mingw.adb, g-socthi-vms.adb,
3766 g-socthi-vxworks.adb, g-soliop-mingw.ads,
3767 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3768 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3771 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
3773 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3774 if the procedure is imported.
3776 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3778 * adaint.c: Fix warnings.
3780 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3782 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3784 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3786 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3787 Fix problem of status check for null file
3789 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3791 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3792 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3793 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3794 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3795 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3798 2008-03-26 Thomas Quinot <quinot@adacore.com>
3801 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3802 Get_Socket_Option): Add support for Receive_Packet_Info.
3804 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3805 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3806 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3807 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3808 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3809 new constants SO_REUSEPORT and IP_PKTINFO
3811 2008-03-26 Robert Dewar <dewar@adacore.com>
3813 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3814 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3815 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3816 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3817 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3818 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3819 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3820 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3821 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3822 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3823 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3824 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3825 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3826 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3827 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3828 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3829 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3830 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3831 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3832 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3833 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3834 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3835 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3836 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3837 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3838 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3839 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3840 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3841 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3842 s-tasloc.adb: Minor reformatting.
3844 Remove "used for" sections from comments.
3846 2008-03-26 Robert Dewar <dewar@adacore.com>
3848 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3849 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3850 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3851 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3852 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3853 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3854 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3855 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3856 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3857 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3858 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3859 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3860 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3861 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3862 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3863 double spaced if it fits on one line and otherwise single spaced.
3865 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3867 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
3868 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3869 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3870 or task info if the thread could not be created.
3872 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3874 * gnatvsn.ads (Library_Version): Bump to 4.4.
3875 (Current_Year): Bump to 2008.
3877 2008-03-26 Robert Dewar <dewar@adacore.com>
3879 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3881 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3883 * debug.adb: Add debug flags d.r and d.v
3884 Add debug flag .T (Optimize_Alignment (Time))
3885 Add debug flag .S (Optimize_Alignment (Space))
3887 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3888 depending on setting of relevant debug flags.
3889 Replace use of Warnings_Off by Has_Warnings_Off
3890 (Freeze_Entity): In circuit for warning on suspicious convention
3891 actuals, do not give warning if subprogram has same entity as formal
3892 type, or if subprogram does not come from source.
3893 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3894 if Optimize_Alignment set to Space.
3896 * frontend.adb: Add call to Sem_Warn.Initialize
3897 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3898 Reset Optimize_Alignment mode from debug switches .S and .T
3900 * layout.adb (Layout_Composite_Object): Rewritten for
3901 Optimize_Aligment pragma.
3903 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3906 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3908 * par-prag.adb (N_Pragma): Chars field removed, use Chars
3909 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3910 this change. Add entry for pragma Optimize_Alignment
3912 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3913 (Pragma_Identifier (..
3914 instead, adjustments throughout to accomodate this change.
3915 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3916 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3917 Add implementation of pragma Optimize_Alignment
3919 2008-03-26 Vincent Celier <celier@adacore.com>
3921 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3922 Improve memory usage to avoid use of stack.
3924 2008-03-26 Robert Dewar <dewar@adacore.com>
3926 * a-teioed.ads: Correct value of Default_Fill
3928 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3930 2008-03-26 Robert Dewar <dewar@adacore.com>
3932 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3933 with Current_Output (introduce Self).
3935 2008-03-26 Robert Dewar <dewar@adacore.com>
3937 * checks.adb (Ensure_Valid): Capture valid status if possible
3940 2008-03-26 Robert Dewar <dewar@adacore.com>
3942 * stand.ads: Deal with reordering of package standard declarations
3944 * cstand.adb: Put package Standard declarations in proper order
3946 2008-03-26 Robert Dewar <dewar@adacore.com>
3948 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3949 (Pragma_Identifier (.. instead.
3950 (OK_To_Reorder_Components): New flag
3951 (Has_Entries): Code cleanup.
3952 (Warnings_Off_Used): New flag
3953 (Warnings_Off_Used_Unmodified): New flag
3954 (Warnings_Off_Used_Unreferenced): New flag
3955 (Has_Warnings_Off): New function
3956 (Has_Unmodified): New function
3957 (Has_Unreferenced): New function
3958 (Is_Trivial_Subprogram): New flag
3959 (Is_Static_Dispatch_Table_Entity): New attribute.
3960 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3961 (more consistent with other similar names)
3962 (Access_Subprogram_Type): New classification function
3964 2008-03-26 Robert Dewar <dewar@adacore.com>
3966 * errout.ads: Document new !! insertion sequence
3968 * errout.adb (N_Pragma): Chars field removed, use Chars
3969 (Pragma_Identifier (.. instead.
3970 Replace use of Warnings_Off by Has_Warnings_Off
3971 (Error_Msg_Internal): Don't delete warning ending in !!
3973 2008-03-26 Robert Dewar <dewar@adacore.com>
3975 * par.adb (Check_No_Right_Paren): Removed no longer used
3977 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3978 (Pragma_Identifier (.. instead.
3980 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3982 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3983 par-ch4.adb: Minor improvements in error recovery and messages.
3985 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3988 * par-ch9.adb: Minor improvements in error recovery and messages
3989 (P_Protected): Better error recovery for "protected type x;"
3991 * par-util.adb: Minor improvements in error recovery and messages
3992 (Check_No_Right_Paren): Removed no longer used
3994 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3996 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3997 that the prefix of an attribute is the type of the aggregate being
4000 2008-03-26 Javier Miranda <miranda@adacore.com>
4001 Robert Dewar <dewar@adacore.com>
4003 * exp_attr.adb (N_Pragma): Chars field removed.
4004 (Expand_N_Attribute_Reference): If the designated type associated with
4005 attribute 'Unrestricted_Access is a subprogram entity then replace it
4006 by an E_Subprogram_Type itype.
4007 Implement attribute Old
4009 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4011 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4013 New_Internal_Entity by call to Create_Itype to centralize calls
4014 building itypes, ad propagate the convention of the designated
4015 subprogram. In addition, disable the machinery cleaning constant
4016 indications from all entities in current scope when 'Unrestricted_Access
4017 corresponds with a node initializing a dispatch table slot.
4018 (Analyze_Attribute): Parameterless attributes returning a string or a
4019 type will not be called with improper arguments, so we can remove junk
4020 code that was dealing with this case.
4021 Implement attribute Old
4023 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4024 Add entry for pragma Optimize_Alignment
4025 New standard names Sync and Synchronize
4027 2008-03-26 Robert Dewar <dewar@adacore.com>
4028 Arnaud Charlet <charlet@adacore.com>
4030 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4032 (No_Exception_Propagation_Active): New function.
4033 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4034 Update comments, and review all uses of No_Exception_Propagation, which
4035 are now correct and in sync with what gigi expects.
4037 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4039 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4040 Update comments, and review all uses of No_Exception_Propagation, which
4041 are now correct and in sync with what gigi expects.
4043 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4045 * sem_ch3.adb (Access_Definition): If the access type is the return
4046 result of a protected function, create an itype reference for it
4047 because usage will be in an inner scope from the point of declaration.
4048 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4049 OK_To_Reorder_Components.
4050 (Make_Index): If an overloaded range includes a universal integer
4051 interpretation, resolve to Standard.Integer.
4052 (Analyze_Subtype_Indication): Copy Convention to subtype
4053 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4054 limited an synchronized progenitors in type declaration and private
4055 extension declarations.
4057 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4058 protected subprogram body, determine proper scope from subprogram
4061 2008-03-26 Robert Dewar <dewar@adacore.com>
4063 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4066 2008-03-26 Gary Dismukes <dismukes@adacore.com>
4068 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4069 of a heap allocator for a limited unconstrained function return when
4070 resstriction No_Allocators is active.
4071 (Analyze_Allocator): The restriction No_Allocators is now only checked
4072 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4074 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4075 of a heap allocator for a limited unconstrained function return when
4076 resstriction No_Allocators is active.
4077 (Analyze_Allocator): The restriction No_Allocators is now only checked
4078 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4079 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
4080 operands are fixed-point types, the universal_fixed predefined operation
4081 is used, regardless of whether the operand type (s) have a primitive
4082 operation of the same name.
4084 2008-03-26 Javier Miranda <miranda@adacore.com>
4086 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4087 Is_Static_Dispatch_Table
4088 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4089 to Exchange_Declarations to exchange the private and full-view. Bug
4090 found working in this issue.
4091 (Expand_Dispatching_Call): Propagate the convention of the subprogram
4092 to the subprogram pointer type.
4093 (Make_Secondary_DT): Replace generation of Prim'Address by
4094 Address (Prim'Unrestricted_Access)
4095 (Make_DT): Replace generation of Prim'Address by
4096 Address (Prim'Unrestricted_Access)
4097 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4098 simple call form for single entry.
4099 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4100 tables of predefined primitives).
4101 (Make_Secondary_DT): Add support to handle access to dispatch tables of
4102 predefined primitives.
4103 (Make_Tags): Add entities to Access_Dispatch_Table associated with
4104 access to dispatch tables containing predefined primitives.
4106 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4107 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4109 (Register_Predefined_DT_Entry): Updated to handle the new contents
4110 of attribute Access_Disp_Table (pointers to dispatch tables containing
4111 predefined primitives).
4113 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4115 (Find_Interface_ADT): Updated to skip the new contents of attribute
4116 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4119 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4121 (Set_Convention): Use new function Is_Access_Subprogram_Type
4122 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4123 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4126 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4127 expanded code avoiding calls to Build_Predef_Prims.
4128 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4129 call to Build_Get_Predefined_Prim_Op_Address.
4131 2008-03-26 Javier Miranda <miranda@adacore.com>
4133 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4134 subprogram Corresponding_Runtime_Package to know the runtime package
4135 that will provide support to a given protected type.
4137 * exp_ch9.adb (Add_Private_Declarations,
4138 Build_Protected_Subprogram_Call,
4139 Build_Protected_Entry, Build_Simple_Entry_Call,
4140 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4141 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4142 cleanup using the new centralized subprogram Corresponding_Runtime
4143 Package to know the runtime package that provides support to
4144 a given protected type.
4146 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4148 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4149 assignment is within the initialization procedure for a packed array,
4150 and Initialize_Scalars is enabled, compile right-hand side with checks
4151 off, because the value is purposely out of range.
4153 2008-03-26 Vincent Celier <celier@adacore.com>
4155 * gnatcmd.adb: Add processing for GNAT SYNC
4157 * vms_conv.ads: (Command_Type): Add command Sync
4159 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4161 * vms_data.ads: Add entries for -gnatw.w
4162 Add qualifier for gnatstub --header-file option
4163 Add switches for GNAT SYNC
4165 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4166 (Add_Package_Name): New procedure
4167 (Package_Name_List): New function
4168 (Initialize): Add known package names to the list
4169 (Register_New_Package): Add the new package name to the list
4171 2008-03-26 Robert Dewar <dewar@adacore.com>
4173 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4174 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4175 Raise_Exception by "raise with" construct.
4177 2008-03-26 Pascal Obry <obry@adacore.com>
4179 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4180 supported platforms.
4182 * Makefile.rtl: Add g-sercom.o.
4184 * impunit.adb: Add g-sercom.adb.
4186 * s-crtl.ads (open): New routine.
4190 * s-osinte-mingw.ads (BYTE): New type.
4192 (OVERLAPPED): Likewise.
4193 (GENERIC_READ): New constant.
4194 (GENERIC_WRITE): Likewise.
4195 (OPEN_EXISTING): Likewise.
4196 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4198 (CreateFile): New routine.
4199 (WriteFile): Likewise.
4200 (ReadFile): Likewise.
4201 (CloseHandle): Move next to the other file oriented routines.
4203 * g-sercom.ads: New unit.
4205 * g-sercom.adb: Default implementation, calls to this unit will raise
4206 a program error exception.
4208 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4209 GNU/Linux implementations.
4211 2008-03-26 Robert Dewar <dewar@adacore.com>
4213 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4215 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4216 unchecked conversion for different conventions only for subprogram
4219 2008-03-26 Vincent Celier <celier@adacore.com>
4221 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4222 to check if the specified object file is correct.
4224 2008-03-26 Thomas Quinot <quinot@adacore.com>
4226 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4227 Comes_From_Source to exclude primitives from being checked. We want to
4228 exclude predefined primitives only, so use the appropriate specific
4229 predicate. Also, flag a formal parameter of an anonymous
4230 access-to-subprogram type as illegal for a primitive operation of a
4231 remote access to class-wide type.
4233 2008-03-26 Vincent Celier <celier@adacore.com>
4235 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4236 known, check if it may be a missspelling of a known package name. In
4237 not verbose, not mode, issue warnings only if the package name is a
4238 possible misspelling.
4239 In verbose mode, always issue a warning for a not known package name,
4240 plus a warning if the name is a misspelling of a known package name.
4242 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4243 limited withs or limited withs are parse during one call.
4244 (Parse_Single_Project): Post parse context clause in two passes: non
4245 limited withs before current project and limited withs after current
4248 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4249 project with the name With_Name, even if it is only extended indirectly.
4250 (Recursive_Process): Process projects in order: first single withs, then
4251 current project, then limited withs.
4253 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4254 project with the name With_Name, even if it is only extended indirectly.
4256 2008-03-26 Robert Dewar <dewar@adacore.com>
4258 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4260 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4262 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4263 a generic subprogram that is imported, do not attempt to compile
4266 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4267 imported, do not generate a raise_program_error for the non-existent
4269 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4270 perform minimal name resolution on the generic to avoid spurious
4272 (Find_Actual_Type): the designated type of the actual in a child unit
4273 may be declared in a parent unit without being an actual.
4275 2008-03-26 Robert Dewar <dewar@adacore.com>
4277 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4278 * sinfo.ads, sinfo.adb (From_At_End): New flag
4280 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4282 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4283 operations that have an interface parameter.
4284 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4285 Don't treat No_Return call as raise.
4287 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4288 non-primitive interface primitives to access parameters, not to all
4289 parameters of an access type.
4291 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4293 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4294 declarations of a parent unit are made visible when compiling a child
4295 instance, the parent is not a hidden open scope, even though it may
4296 contain other pending instance.
4298 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4299 hidden open scope for some child instance, it does affect the
4300 visibility status of other stach entries.
4301 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4302 renamed as an object of a specific type.
4304 2008-03-26 Robert Dewar <dewar@adacore.com>
4306 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4307 recursion and raise SE directly.
4308 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4309 set for formal type for IN mode parameter.
4311 2008-03-26 Robert Dewar <dewar@adacore.com>
4313 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4314 (Initialize): New procedure
4315 (Output_Warnings_Off_Warnings): New procedure
4316 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4317 (Output_Non_Modifed_In_Out_Warnings): Ditto
4318 (Warn_On_Unreferenced_Entity): Ditto
4320 2008-03-26 Vincent Celier <celier@adacore.com>
4322 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4325 2008-03-26 Matthew Heaney <heaney@adacore.com>
4327 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
4328 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4329 Marked with clauses as private, and controlled operations as overriding
4331 2008-03-26 Robert Dewar <dewar@adacore.com>
4333 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4335 2008-03-26 Robert Dewar <dewar@adacore.com>
4337 * back_end.adb, back_end.ads: Minor reformatting
4339 * bindgen.adb: Minor clarification of comments
4341 * fname.ads: Minor comment fixes
4343 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4344 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4346 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4347 xsnames.adb: Remove warnings off pragma no longer needed
4349 * a-catizo.ads, a-calari.ads, a-calfor.adb,
4350 a-calfor.ads: Fix header.
4352 2008-03-26 Tristan Gingold <gingold@adacore.com>
4354 * init.c: Do not adjust pc for HPARITH on alpha/vms.
4356 2008-03-26 Robert Dewar <dewar@adacore.com>
4358 * lib-xref.adb: (OK_To_Set_Reference): New function
4359 (Generate_Reference): Don't set referenced from occurrence in Warnings,
4360 Unmodified, or Unreferenced pragma
4362 2008-03-26 Robert Dewar <dewar@adacore.com>
4364 * alloc.ads: Add entries for Warnings_Off_Pragmas table
4366 2008-03-26 GNAT Script <nobody@adacore.com>
4368 * Make-lang.in: Makefile automatically updated
4370 2008-03-26 Robert Dewar <dewar@adacore.com>
4372 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4373 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4374 removed, use Chars (Pragma_Identifier (.. instead, adjustments
4375 throughout to accomodate this change.
4377 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4379 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4380 Einfo.Set_Needs_Debug_Info)
4382 2008-03-26 Robert Dewar <dewar@adacore.com>
4384 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4385 Add description for the new gnatstub option '--header-file'
4386 clarification of -gnatwz/-gnatwZ
4387 Add a "Irix-Specific Considerations" section to document the need to
4388 set LD_LIBRARY_PATH when using the default shared runtime library.
4389 Added documentation for both gcov and gprof.
4391 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4392 messages that are not suppressed when clients are compiled.
4393 Add documentation of s-pooglo s-pooloc
4394 Document the new GNAT.Serial_Communications API.
4395 Add documentation for 'Old attribute
4396 Add description of pragma Optimize_Alignment
4398 * ug_words: Add entries for -gnatw.w -gnatw.W
4400 * usage.adb: Add line for -gnatw.w (warn on warnings off)
4402 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
4405 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4407 * decl.c (maybe_pad_type): Avoid padding an integral type when
4408 bumping its alignment is sufficient.
4410 2008-03-25 Arnaud Charlet <charlet@adacore.com>
4412 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4413 Fix wrong formatting (lines too long)
4415 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4417 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4418 a-calend-vms.adb, a-calend.adb, a-calend.ads,
4419 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4420 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4421 a-cohama.ads, a-comlin.ads, a-coorse.adb,
4422 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4423 a-except-2005.ads, a-except.adb, a-except.ads,
4424 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4425 a-exextr.adb, a-filico.ads, a-finali.ads,
4426 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4427 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4428 a-sequio.ads, a-strbou.ads, a-strfix.adb,
4429 checks.adb, exp_ch3.adb, exp_ch4.adb,
4430 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4431 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4432 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4433 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4434 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4436 2008-03-24 Robert Dewar <dewar@adacore.com>
4438 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4439 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4440 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4441 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4442 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4443 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4444 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4445 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4446 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4447 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4448 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4449 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4450 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4451 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4452 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4453 double spaced if it fits on one line and otherwise single spaced.
4455 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4457 PR documentation/15479
4458 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4459 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4460 (doc/gnat_ugn.info): Renamed from ...
4461 (doc/gnat_ugn_unw.info): ... this.
4462 (doc/gnat_ugn.dvi): Renamed from ...
4463 (doc/gnat_ugn_unw.dvi): ... this.
4464 (doc/gnat_ugn.pdf): Renamed from ...
4465 (doc/gnat_ugn_unw.pdf): ... this.
4466 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4468 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4469 unconditionally to gnat_ugn.info. Fix cross references to the
4470 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
4471 and GNU make manuals to be proper texinfo links.
4472 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4474 2008-03-21 Olivier Hainque <hainque@adacore.com>
4476 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4477 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4479 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
4481 * trans.c (addressable_p): Add notes on addressability issues.
4483 2008-03-21 Olivier Hainque <hainque@adacore.com>
4484 Ed Schonberg <schonberg@adacore.com>
4486 * trans.c (addressable_p): Accept COND_EXPR when both arms
4488 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4489 (call_to_gnu): Do not use name reference in the error message
4490 for a misaligned by_reference_parameter. The actual may be a
4493 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4495 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4497 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4499 * gnat_rm.texi (Implementation Defined Characteristics)
4500 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4502 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4503 (Switches for gnatchop, Installing a library): Likewise.
4505 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
4507 * trans.c (emit_range_check): Do not emit the check if the base type
4508 of the expression is the type against which its range must be checked.
4510 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4512 * decl.c (maybe_pad_type): Use value_factor_p.
4514 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4516 * lang.opt (nostdlib): Move around.
4517 * misc.c (gnat_handle_option): Fix formatting.
4518 (gnat_dwarf_name): Move around.
4519 * trans.c (Case_Statement_to_gnu): Fix formatting.
4520 (gnat_to_gnu): Likewise.
4521 * utils.c (aggregate_type_contains_array_p): Likewise.
4522 (create_subprog_decl): Likewise.
4524 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4526 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4527 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4529 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4531 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4532 BIGGEST_ALIGNMENT when capping the alignment of records with
4533 strict alignment and size clause.
4535 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4537 * lang-specs.h: Pass -gnatwa if -Wall is passed.
4538 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4539 and -Wuninitialized.
4540 (gnat_post_options): Clear warn_unused_parameter.
4542 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4544 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4545 aligned bit-fields, bumping the alignment of the record type if deemed
4547 (value_factor_p): Return false instead of 0.
4549 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4551 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4552 for scalar types with small alignment.
4554 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4556 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4557 from that of the front-end's end label.
4558 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4559 from that of the loop label.
4561 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4563 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4564 comment for the packed array type case.
4565 * utils.c (build_template): Use a loop to strip padding or
4566 containing records for justified modular types.
4568 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4570 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4571 large alignments specified for types.
4572 (validate_alignment): Minor cleanup.
4574 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4576 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4577 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4578 the component for packing, if possible, as well as if a component
4579 size clause is specified.
4580 <E_Record_Subtype>: For an array type used to implement a packed
4581 array, get the component type from the original array type.
4582 Try to get a smaller form of the component for packing, if possible,
4583 as well as if a component size clause is specified.
4584 (round_up_to_align): New function.
4585 (make_packable_type): Add in_record parameter.
4586 For a padding record, preserve the size. If not in_record and the
4587 size is too large for an integral mode, attempt to shrink the size
4588 by lowering the alignment.
4589 Ditch the padding bits of the last component.
4590 Compute sizes and mode manually, and propagate the RM size.
4591 Return a BLKmode record type if its size has shrunk.
4592 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4593 Use Original_Array_Type to retrieve the type in case of an error.
4594 Adjust call to make_packable_type.
4595 (gnat_to_gnu_field): Likewise.
4596 (concat_id_with_name): Minor tweak.
4597 * trans.c (larger_record_type_p): New predicate.
4598 (call_to_gnu): Compute the nominal type of the object only if the
4599 parameter is by-reference. Do the conversion actual type -> nominal
4600 type if the nominal type is a larger record.
4601 (gnat_to_gnu): Do not require integral modes on the source type to
4602 avoid the conversion for types with identical names.
4603 (addressable_p): Add gnu_type parameter. If it is specified, do not
4604 return true if the expression is not addressable in gnu_type.
4605 Adjust recursive calls.
4606 * utils.c (finish_record_type): Remove dead code.
4608 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4611 * decl.c (maybe_pad_type): Avoid padding an integral type when
4612 bumping its alignment is sufficient.
4614 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4616 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4617 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4619 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4620 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4621 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4622 code output strings.
4623 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4624 system-vms_64.ads: Fix typos in ada source code comments.
4625 * sinfo-cn.adb: Remove incomplete sentence.
4627 PR documentation/15479
4628 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4630 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4633 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4635 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4638 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4639 that underlying type is present.
4641 2008-02-26 Tom Tromey <tromey@redhat.com>
4643 * misc.c (internal_error_function): Remove test of
4644 USE_MAPPED_LOCATION.
4645 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4646 (Sloc_to_locus): Remove old location code.
4648 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4650 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4651 `i.e.' by adding comma or `@:' as appropriate.
4652 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4653 plain characters `C', use `@samp{C}'.
4654 * gnat_ugn.texi (File Naming Rules, About gnatkr)
4655 (Krunching Method): Likewise.
4657 * gnat_ugn.texi (Conventions): List environment variables and
4658 metasyntactic variables.
4659 (Compiling Programs): Fix notation of metasyntactic variables.
4660 Add @file where appropriate. Use @file for file extensions,
4662 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4663 instead of @file, @env instead of @code.
4665 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4667 PR documentation/15479
4668 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4669 and `...' with `@dots{}' or `@enddots{}'.
4671 PR documentation/15479
4672 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4673 use @command instead of @code, @option instead of @samp or @code,
4674 @code instead of @var, @samp instead of @file.
4676 PR documentation/15479
4677 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4678 in Makefile rules, by using `&&' rather than `;'.
4680 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4682 PR documentation/15479
4683 * gnat_ugn.texi: In non-code, avoid space before colon.
4684 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4685 (Examples of gnatxref Usage): Use @command{vi} instead of
4687 (Character Set Control): Do not use @code for UTF-8.
4688 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
4690 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4692 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
4694 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4697 * env.c: Add __rtems__ to if defined.
4698 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
4699 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4700 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
4701 pragma Convention as required.
4702 * gsocket.h: Make compile in and out of RTS.
4703 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
4704 Use g-soccon-rtems.ads.
4705 * g-soccon-rtems.ads, system-rtems.ads: New files.
4707 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4710 * Make-lang.in (gnat1): Add $(GMPLIBS).
4712 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
4714 * decl.c (components_to_record): Improve comment.
4716 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
4718 * decl.c (components_to_record): Do not reuse the empty union type
4719 if there is a representation clause on the record.
4720 * trans.c (addressable_p): Return true for INTEGER_CST.
4722 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
4724 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4725 in pointer arithmetics.
4726 * utils2.c (build_allocator): Likewise.
4728 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
4730 * utils.c (build_function_stub): Properly build the call expression.
4732 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
4734 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4735 before converting the expression to the type of the object.
4736 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4737 Stabilize constructors for special wrapping types.
4739 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
4741 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4742 when necessary. Merge some conditional statements. Update comments.
4743 Rename unchecked_convert_p local variable to suppress_type_conversion.
4744 Do not suppress conversions in the In case.
4745 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4746 into account on non strict-alignment platforms.
4748 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4750 * utils.c (aggregate_type_contains_array_p): New predicate.
4751 (create_field_decl): In a packed record, force byte alignment
4752 for fields without specified position that contain an array.
4754 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4756 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4758 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
4761 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4763 (bit_field): New packed boolean type used by cpu_set_t.
4764 (cpu_set_t): New type corresponding to the C type with
4765 the same name. Note that on the Ada side we use a bit
4766 field array for the affinity mask. There is not need
4767 for the C macro for setting individual bit.
4768 (pthread_setaffinity_np): New imported routine.
4770 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
4773 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4774 on OpenBSD as is done on other BSD systems.
4777 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4778 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4782 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4786 * init.c (__gnat_error_handler, __gnat_install_handler,
4787 __gnat_init_float): Define for OpenBSD.
4789 * initialize.c (__gnat_initialize): Define for OpenBSD.
4791 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
4794 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4795 instead of mktemp() or tmpnam() on NetBSD.
4797 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
4799 * trans.c (call_to_gnu): Make the temporary for non-addressable
4800 In parameters passed by reference.
4801 (addressable_p): Return true for STRING_CST and CALL_EXPR.
4803 2007-12-19 Robert Dewar <dewar@adacore.com>
4805 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
4806 Add pragma Warnings (Off) for unassigned IN OUT arguments
4808 * sem_warn.adb (Output_Reference): Suppress messages for internal names
4809 (Check_References): Extensive changes to tune up warnings
4810 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4811 (Has_Pragma_Unmodifed_Check_Spec): New function
4812 (Check_References): Implement pragma Unmodified
4813 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4815 * par-prag.adb: Dummy entry for pragma Unmodified
4817 * sem_prag.adb: Implement pragma Unmodified
4819 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4820 (Proc_Next_Component_Or_Discriminant): Fix typo.
4823 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4825 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4826 because the former already takes care of discarding the result.
4827 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4830 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4832 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
4834 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4835 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4836 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4837 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4838 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4839 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4840 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4841 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4842 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4843 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4844 (Dynamic_Trampolines_Used): Delete.
4846 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4847 Turn on stack probing mechanism on LynxOS.
4849 2007-12-19 Bob Duff <duff@adacore.com>
4851 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4852 the resulting tail recursion by hand. This prevents running out of
4853 memory on deeply nested concatenations, since Field2 is where the left
4854 operand of concatenations is stored.
4855 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4856 clarify that it can only return OK or Abandon.
4858 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4859 operand by iteration, in order to avoid running out of memory on
4860 deeply-nested concatenations. Use the Parent pointer to get back up the
4862 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4863 Resolve_Op_Concat_Rest): New procedures split out of
4864 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4867 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4868 Traverse_Func, because the former already takes care of discarding the
4871 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4872 because the former already takes care of discarding the result.
4873 (Remove_Warning_Messages): Use appropriate subtype for Status and
4876 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4878 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4879 discriminants forces expansion of the aggregate into assignments.
4880 (Init_Record_Controller): If the type of the aggregate is untagged and
4881 is not inherently limited, the record controller is not limited either.
4883 2007-12-19 Robert Dewar <dewar@adacore.com>
4885 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4886 handling compile time known size of record or array (case of front end
4887 layout active, e.g. in GNAAMP).
4889 2007-12-19 Javier Miranda <miranda@adacore.com>
4891 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4892 that forces the construction of static dispatch tables in case of
4895 2007-12-19 Robert Dewar <dewar@adacore.com>
4897 * exp_ch9.adb (Null_Statements): Moved to library level
4898 (Trivial_Accept_OK): New function
4899 (Expand_Accept_Declaration): Use Trivial_Accept_OK
4900 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4902 2007-12-19 Robert Dewar <dewar@adacore.com>
4904 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4905 in complex case where array is Volatile.
4907 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4909 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4910 properly the Ada2005 rules concerning when the current instance of a
4911 record type is aliased.
4913 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4915 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4917 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4919 (P_Variant_Part): Cleaner patch for parenthesized discriminant
4921 2007-12-19 Vincent Celier <celier@adacore.com>
4923 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4924 package is not known
4926 * prj-attr.ads (Unknown_Package): New constant
4927 Do not crash when an unknown package is in several projects
4929 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4932 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4933 existing package Language_Processing.
4935 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4936 Gary Dismukes <dismukes@adacore.com>
4937 Samuel Tardieu <sam@rfc1149.net>
4939 PR ada/15803, ada/15805
4940 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4941 illegal access subtypes when there is a constrained partial view.
4942 (Check_For_Premature_Usage): New procedure inside
4943 Access_Subprogram_Declaration for checking that an access-to-subprogram
4944 type doesn't reference its own name within any formal parameters or
4945 result type (including within nested anonymous access types).
4946 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4947 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4948 context is an access_to_variable, the expression cannot be an
4951 2007-12-19 Bob Duff <duff@adacore.com>
4953 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4954 (Analyze_Concatenation): Use iteration instead of recursion in order
4955 to avoid running out of stack space for deeply nested concatenations.
4957 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4958 Gary Dismukes <dismukes@adacore.com>
4960 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4961 whose renamed entity is a subprogram that requires overriding.
4962 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4963 issuing an error for premature usage and issue a message that says
4964 'type' rather than 'object'.
4966 2007-12-19 Gary Dismukes <dismukes@adacore.com>
4969 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4970 presence of a statically tagged operand (Present (Static_Tag)) with
4971 test for Indeterm_Ancestor_Call when determining whether to propagate
4972 the static tag to tag-indeterminate operands (which forces dispatching
4974 (Check_Controlling_Formals): Ada2005, access parameters can have
4976 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4977 not insert subprogram in list of primitive operations if already there.
4979 2007-12-19 Tristan Gingold <gingold@adacore.com>
4981 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4984 2007-12-19 Thomas Quinot <quinot@adacore.com>
4986 Part of PR ada/33688
4987 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4988 datagram info on Linux.
4990 2007-12-19 Vincent Celier <celier@adacore.com>
4992 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4993 that the source path name is always found in the dependencies.
4995 2007-12-19 Robert Dewar <dewar@adacore.com>
4997 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4998 Fix name of Wide_Wide_Latin_1/9 file names
4999 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5000 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5001 Add missing documentation for Ada.Command_Line.Response_File
5002 Update list of warning letters for Warnings pragma
5003 Add documentation for pragma Unmodified
5005 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
5007 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5009 2007-12-17 Arnaud Charlet <charlet@adacore.com>
5011 * s-vxwork-alpha.ads: Removed, no longer used.
5013 2007-12-15 Jakub Jelinek <jakub@redhat.com>
5015 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5017 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
5020 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5021 mlib-tgt-specific.adb.
5023 2007-12-13 Bob Duff <duff@adacore.com>
5025 * trans.c (Attribute_to_gnu): Check for violations of the
5026 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5027 the front end, but is moved here so we can make it more accurate.
5029 2007-12-13 Pascal Obry <obry@adacore.com>
5031 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5032 version is provided for older GNU/Linux distribution not
5033 supporting thread affinity sets.
5035 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5037 (bit_field): New packed boolean type used by cpu_set_t.
5038 (cpu_set_t): New type corresponding to the C type with
5039 the same name. Note that on the Ada side we use a bit
5040 field array for the affinity mask. There is not need
5041 for the C macro for setting individual bit.
5042 (pthread_setaffinity_np): New imported routine.
5044 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5046 (Create_Task): Set the processor affinity mask if information
5049 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5051 2007-12-13 Robert Dewar <dewar@adacore.com>
5053 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5054 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5055 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5056 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5057 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5058 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5059 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5060 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5061 for subprogram pointers.
5063 * g-ctrl_c.adb: New file.
5065 * g-ctrl_c.ads (Install_Handler): New body.
5067 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5068 instead of obsolete function Is_Always_Inlined.
5069 (Freeze_Entity): check for tagged type in imported C subprogram
5070 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5071 (Freeze_Entity): check for convention Ada subprogram pointer in
5072 imported C subprogram.
5073 (Freeze_Fixed_Point_Type): In the case of a base type where the low
5074 bound would be chopped off and go from negative to zero, force
5075 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5076 bound) so that the size computation for the base type will take
5077 negative values into account.
5079 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
5080 Bob Duff <duff@adacore.com>
5081 Tristan Gingold <gingold@adacore.com>
5083 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5084 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5085 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5086 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5087 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5088 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5089 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5090 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5091 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5092 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5093 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5094 (Always_Compatible_Rep): New flag to control trampolines globally.
5095 (Dynamic_Trampolines_Used): New flag for implementing the
5096 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5097 and not yet set correctly for some targets).
5099 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5100 Simply indirectly call s-stchop when a task is created.
5103 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5104 appears as an argument (entries A) in an ALI file.
5106 * fe.h (Stack_Check_Limits): Declare new target parameter.
5107 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5109 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5110 This variable is declared in C to be sure not subject to elaboration
5112 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5115 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5116 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5118 * s-stchop.ads: Add comments.
5120 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5121 limit method of stack checking.
5123 * s-stchop-limit.ads: New file.
5125 2007-12-13 Robert Dewar <dewar@adacore.com>
5127 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
5128 a-cihama.adb, g-awk.adb,
5129 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5132 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5134 * sem.adb: Update handling of assigned value/unreferenced warnings
5136 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5138 * lib-xref.ads: Improve documentation for k xref type
5141 Update handling of assigned value/unreferenced warnings
5142 (Generate_Reference): Warning for reference to entity for which a
5143 pragma Unreferenced has been given should be unconditional.
5144 If the entity is a discriminal, mark the original
5145 discriminant as referenced.
5147 * sem_warn.ads, sem_warn.adb
5148 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5149 no entities referenced in package
5150 (Check_One_Unit): Don't give message about no entities referenced in
5151 a package if a pragma Unreferenced has appeared.
5152 Handle new warning flag -gnatw.a/-gnatw.A
5153 Update handling of assigned value/unreferenced warnings
5155 * atree.h: Add flags up to Flag247
5156 (Flag231): New macro.
5158 2007-12-13 Jose Ruiz <ruiz@adacore.com>
5160 * adaint.h: (__gnat_plist_init): Not defined for RTX.
5162 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5165 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5166 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5167 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5168 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5171 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5173 * sysdep.c (winflush_function for RTX): Procedure that does nothing
5174 since we only have problems with Windows 95/98, which are not
5176 (__gnat_ttyname): Return the empty string on Nucleus, just as
5179 2007-12-13 Robert Dewar <dewar@adacore.com>
5181 * a-textio.adb, a-textio.ads:
5182 Extensive changes to private part for wide character encoding
5184 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5185 (Look_Ahead): Fix mishandling of encoded sequences
5186 Move declaration of Wch_Con to private part (should not be visible)
5188 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5189 UTF-8. Probably this is never used, but if it is, brackets is
5192 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5193 setting wide character encoding for no main program case and when
5194 encoding is specified using -W?
5195 Initialize stack limit of environment task if stack limit method of
5196 stack checking is enabled.
5197 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5198 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5199 (Get_Main_Unit_Name): New function.
5200 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5201 (Gen_Output_File): Set Bind_Main_Program to True for .NET
5203 * bindusg.adb: Add line for -Wx switch
5205 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5207 Add new useful constant WC_Longest_Sequences
5209 * switch-b.adb: Clean up handling of -Wx switch
5210 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5212 * switch-c.adb: -gnatg activates warning on assertion errors
5213 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5215 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5217 2007-12-13 Robert Dewar <dewar@adacore.com>
5218 Ed Schonberg <schonberg@adacore.com>
5220 * a-ngcoty.adb: New pragma Fast_Math
5222 * opt.adb: New pragma Fast_Math
5225 Add Implemented_By_Entry to the list of pragmas which do not require any
5227 (Favor_Top_Level): New pragma.
5228 New pragma Fast_Math
5230 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5231 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5232 Expand_Allocator_Expression): Take into account VM_Target
5233 (Expand_Attribute, case 'Identity): Handle properly the case where
5234 the prefix is a task interface.
5235 New pragma Fast_Math
5237 * par.adb (Next_Token_Is): New function
5238 (P_Pragma): Add Skipping parameter
5239 (U_Left_Paren): New procedure
5240 (U_Right_Paren): New procedure
5241 New pragma Fast_Math
5243 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5245 New pragma Fast_Math
5247 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5248 Implemented_By_Entry.
5249 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5250 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5251 items, since it can apply to more than one overloadable entity. Set
5252 new flag Has_Pragma_Inline_Always for Inline_Always case.
5253 (Analyze_Pragma, case Complex_Representation): Improve error message.
5254 (Analyze_Pragma, case Assert): When assertions are disabled build the
5255 rewritten code with Sloc of expression rather than pragma, so new
5256 warning about failing is not deleted.
5257 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5258 protected types and update error message to reflect that. Test whether
5259 the protected type is allowed for the pragma (an error is issued if the
5260 type has any entries, or components that do not have preelaborable
5262 New pragma Fast_Math
5263 (Analyze_Pragma, case No_Return): Handle generic instance
5265 * snames.h, snames.ads, snames.adb:
5266 Add new predefined name for interface primitive _Disp_Requeue.
5267 New pragma Fast_Math
5269 * a-tags.ads, a-tags.adb: New calling sequence for
5270 String_To_Wide_[Wide_]String
5271 (Secondary_Tag): New subprogram.
5273 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5275 New calling sequence for String_To_Wide_[Wide_]String
5276 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5277 the use of the secondary stack for image routines.
5279 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5280 calling sequence for String_To_Wide_[Wide_]String
5282 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5284 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5285 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5287 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5288 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5289 to improve error recovery
5291 * par-util.adb (Next_Token_Is): New function
5292 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5294 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5295 semicolon if missing
5296 (P_Pragma): Implement new Skipping parameter
5297 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5298 Fix location of flag for unrecognized pragma message
5300 * par-tchk.adb (U_Left_Paren): New procedure
5301 (U_Right_Paren): New procedure
5303 2007-12-13 Geert Bosch <bosch@adacore.com>
5306 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5307 the second or later Scaled_Divide would omit leading zeroes,
5308 resulting in too few digits produced and a Layout_Error as result.
5309 (Put): Initialize Pos.
5311 2007-12-13 Robert Dewar <dewar@adacore.com>
5313 atree.ads, atree.adb (Flag231..Flag247): New functions
5314 (Set_Flag231..Set_Flag247): New procedures
5315 (Basic_Set_Convention): Rename Set_Convention to be
5316 Basic_Set_Convention
5317 (Nkind_In): New functions
5318 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5320 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5322 of obsolete function Is_Always_Inlined
5323 (Register_Predefined_DT_Entry): Initialize slots of the second
5324 secondary dispatch table.
5325 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5326 (Expand_N_Function_Call): Remove special provision for stack checking.
5328 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5329 Include _Disp_Requeue in the list of predefined operations.
5330 (Find_Interface_ADT): Modified to fulfill the new specification.
5331 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5333 * par-ch4.adb, nlists.ads, nlists.adb:
5334 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5336 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5337 Fix location of flag for unrecognized pragma message
5339 * sem_ch7.adb: Use Nkind_In
5341 2007-12-13 Vincent Celier <celier@adacore.com>
5344 Indicate what flags are used by the Project Manager, gprbuild and
5346 (Opt.Follow_Links_For_Dirs): New flag
5347 (Warn_On_Assertion_Failure): New flag
5348 (Wide_Character_Encoding_Method_Specified): New flag
5349 (Suppress_All_Inlining): New switch set by -fno-inline
5350 (Real_VMS_Target): New flag
5351 New pragma Fast_Math
5353 2007-12-13 Robert Dewar <dewar@adacore.com>
5355 * back_end.adb: Recognize -fno-inline
5357 2007-12-13 Robert Dewar <dewar@adacore.com>
5359 * checks.adb: Fix optimization problem with short-circuited form
5361 2007-12-13 Bob Duff <duff@adacore.com>
5363 * clean.adb (Usage): Add line for -aP
5364 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5365 with a parameter "procedure Usage", instead of passing a pointer to a
5366 procedure. This is to eliminate trampolines (since the Usage procedure
5367 is often nested in a main procedure, and it would be inconvenient to
5370 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5371 to be generic, with a parameter "procedure Callback (...)", instead of
5372 passing a pointer to a procedure. This is to eliminate trampolines
5373 (since the Callback procedure is usually nested).
5375 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
5376 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5377 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5379 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5380 Use the generic Heap_Sort_G instead of Heap_Sort_A.
5382 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5384 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5385 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5386 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5387 (Renamed_In_Spec): New flag
5388 (Has_Pragma_Inline_Always): New flag
5389 Add missing doc for pragma Obsolescent_Warning
5390 Add missing doc for 17 additional unused flags (230-247)
5391 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5392 Alphabetize with clauses.
5393 Separate Is_Thunk and Has_Thunks flags
5394 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5395 (Related_Interface): Renamed to Related_Type.
5396 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5397 (Set_Is_Flag): Restrict the assertion.
5399 2007-12-13 Vincent Celier <celier@adacore.com>
5401 * errout.adb (Output_Source_Line): Do not keep a trailing space after
5402 the source line number if the source line is empty.
5404 2007-12-13 Geert Bosch <bosch@adacore.com>
5406 * eval_fat.adb (Decompose_Int): Handle argument of zero.
5407 (Compose): Remove special casing of zero.
5408 (Exponent): Likewise.
5409 (Fraction): Likewise.
5410 (Machine): Likewise.
5411 (Decompose): Update comment.
5413 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5415 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5416 limited ancestor part, initialize controllers of enclosing record
5417 before expanding ancestor aggregate.
5418 (Gen_Assign): If a component of the aggregate is box-initialized, add
5419 code to call Initialize if the component is controlled, and explicit
5420 assignment of null if the component is an access type.
5422 Handle properly aggregates for limited types that appear in object
5423 declarations when the aggregate contains controlled values such as
5425 When expanding limited aggregates into individual components, do not
5426 call Adjust on controlled components that are limited.
5428 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5430 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5432 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5434 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5435 predefined primitive _Disp_Requeue.
5436 (Make_Predefined_Primitive_Specs): Create the spec for predefined
5437 primitive _Disp_Requeue.
5438 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5439 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5440 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5441 an interface type. In case of limited interfaces we now declare all the
5442 predefined primitives associated with synchronized interfaces as
5444 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5446 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5447 tagged type is an interface type and there is no user-defined equality
5449 Add also bodies of predefined primitives associated with synchronized
5451 (Freeze_Record_Type): Do not build bodies of predefined primitives of
5452 interface types because they are now defined abstract.
5453 Add missing documentation.
5454 (Expand_Record_Controller): Update occurrence of Related_Interface
5456 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5457 (Expand_N_Object_Declaration): Take into account VM_Target when handling
5458 class wide interface object declaration.
5459 (Expand_Previous_Access_Type): Do not create a duplicate master entity
5460 if the access type already has one.
5461 (Expand_N_Object_Declaration): Defend against attempt to validity check
5462 generic types. Noticed for -gnatVcf specified with previous errors.
5464 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5466 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5467 Expand_Allocator_Expression): Take into account VM_Target
5469 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5470 secondary stack when VM_Target /= No_VM
5472 2007-12-13 Javier Miranda <miranda@adacore.com>
5473 Ed Schonberg <schonberg@adacore.com>
5475 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5476 Is_Complation_Unit by Is_Library_Level_Entity in the code
5477 that decides if the static dispatch tables need to be built.
5478 (Wrap_Transient_Declaration): Do not generate a finalization call if
5479 this is a renaming declaration and the renamed object is a component
5480 of a controlled type.
5482 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5484 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5485 In the case where the renamed subprogram is a dereference, call
5486 Force_Evaluation on the prefix.
5488 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5489 Ed Schonberg <schonberg@adacore.com>
5491 * exp_ch9.adb (Expand_N_Asynchronous_Select,
5492 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5493 comment reformatting.
5494 (Set_Privals): Inherit aliased flag from formal. From code reading.
5495 (Build_Simple_Entry_Call): Out parameters of an access type are passed
5496 by copy and initialized from the actual. This includes entry parameters.
5497 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5498 and Ada 2005 models of requeue.
5499 (Null_Statements): Still connsider do-end block null if it contains
5500 Unreferenced and Warnings pragmas.
5501 (Expand_N_Accept_Statement): Do not optimize away null do end if
5502 dispatching policy is other than defaulted.
5503 (Expand_N_Timed_Entry_Call): When the triggering statement is a
5504 dispatching call, manually analyze the delay statement.
5505 (Find_Parameter_Type): Move subprogram to Sem_Util.
5507 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5508 Javier Miranda <miranda@adacore.com>
5510 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5511 _Disp_Requeue occupies dispatch table slot number 15. Move
5512 _Disp_Timed_Select to slot 16.
5513 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5514 generate the spec and body of _Disp_Reqeueue.
5515 (Make_DT): Build and initialize the second dispatch table.
5516 Handle initialization of RC_Offset when the parent
5517 is a private type with variable size components.
5518 (Make_Secondary_DT): Complete documentation. Add support to
5519 initialize the second dispatch table.
5520 (Make_Tags): Generate the tag of the second dispatch table.
5521 (Register_Primitive): Add support to register primitives in the
5522 second dispatch table.
5524 2007-12-13 Pascal Obry <obry@adacore.com>
5526 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5527 Windows. This signal is used by gnatmake to kill child processes for
5530 2007-12-13 Javier Miranda <miranda@adacore.com>
5532 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5533 support for generic dispatching constructor calls in which we need to
5534 locate the tag of a secondary dispatch table associated with an
5535 interface type to properly dispatch the call.
5536 (Expand_N_Attribute_Reference [case Address],
5537 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5538 handling of VM targets.
5540 2007-12-13 Robert Dewar <dewar@adacore.com>
5541 Ed Schonberg <schonberg@adacore.com>
5543 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5546 * ug_words: Add entries for -gnatw.a -gnatw.A
5548 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5549 literal is a subtype with non-static constraints, use the base type of
5550 the context as the base of the string subtype, to prevent type
5552 (Resolve_Actuals): If the actual is an entity name, generate a
5553 reference before the actual is resolved and expanded, to prevent
5554 spurious warnings on formals of enclosing protected operations.
5555 (Analyze_Overloaded_Selected_Component): If type of prefix if
5556 class-wide, use visible components of base type.
5557 (Resolve_Selected_Component): Ditto.
5558 (Resolve_Short_Circuit): Detect case of pragma Assert argument
5559 evaluating to False, and issue warning message.
5561 * usage.adb: Add lines for -gnatw.a and -gnatw.A
5563 2007-12-13 Emmanuel Briot <briot@adacore.com>
5565 * g-calend.ads (No_Time): New constant, to represent an uninitialized
5568 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5570 (Month_Name_To_Number): New subprogram
5572 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5573 letter to upper-case.
5575 2007-12-13 Robert Dewar <dewar@adacore.com>
5576 Ed Schonberg <schonberg@adacore.com>
5578 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5580 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5581 context is a limited view, use non-limited view when available. If the
5582 non-limited view is an unconstrained array, this enforces consistency
5583 requirements in 3.10.2 (27).
5584 (Layout_Type): For an access type whose designated type is a limited
5585 view, examine its declaration to determine if it is an unconstrained
5586 array, and size the access type accordingly.
5587 (Layout_Type): Do not force 32-bits for convention c subprogram
5588 pointers in -gnatdm mode, only if real vms target.
5590 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5591 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5592 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5593 violations of the No_Implicit_Dynamic_Code restriction.
5594 (Resolve_Attribute, case 'Access): If designated type of context is a
5595 limited view, use non-limited view when available. If the non-limited
5596 view is an unconstrained array, this enforces consistency requirements
5598 (Layout_Type): For an access type whose designated type is a limited
5599 view, examine its declaration to determine if it is an unconstrained
5600 array, and size the access type accordingly.
5602 2007-12-13 Vincent Celier <celier@adacore.com>
5604 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5605 object directory of main project does not exist.
5606 On VMS, correctly set then environment variable for the source
5609 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5611 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5612 set to True this procedure will create the value of type REG_EXPAND_SZ.
5613 It was only possible to create REG_SZ values before.
5615 2007-12-13 Robert Dewar <dewar@adacore.com>
5617 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5618 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5619 namet-sp.adb, namet-sp.ads: New files.
5621 * g-speche.adb: Use generic routine in g-spchge
5623 * s-wchcnv.ads, s-wchcnv.adb:
5624 Minor code cleanup (make formal type consistent with spec)
5626 * namet.adb: Update comments.
5628 * par-endh.adb (Evaluate_End_Entry): Use new
5629 Namet.Sp.Is_Bad_Spelling_Of function
5631 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5633 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5634 ancestor is an access type initialized with a box, set its type
5635 explicitly, for use in subsequent expansion.
5636 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5639 2007-12-13 Robert Dewar <dewar@adacore.com>
5641 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5644 2007-12-13 Robert Dewar <dewar@adacore.com>
5646 * inline.adb (Back_End_Cannot_Inline): Use new flag
5647 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5649 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5650 Has_Pragma_Inline_Always instead.
5651 of obsolete function Is_Always_Inlined
5652 (Build_Body_To_Inline): Same change
5653 (Cannot_Inline): Same change
5654 Do not give warning on exception raise in No_Return function
5656 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5657 component has two inconsistent component clauses in the same record
5658 representation clause, favor the message that complains about
5659 duplication rather than inconsistency.
5661 (Record_Representation_Clause): Do not warn on missing component
5662 clauses for inherited components of a type extension.
5663 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5664 an overloadable item if it is a pragma that can apply to multiple
5665 overloadable entities (e.g. Inline) because a pragma cannot be on
5666 more than one chain at a time.
5667 (Validate_Unchecked_Conversion): Add code to warn on unchecked
5668 conversion where one of the operands is Ada.Calendar.Time.
5669 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5670 For now, ignore Component_Size clause on VM targets, as done for
5673 2007-12-13 Emmanuel Briot <briot@adacore.com>
5674 Vincent Celier <celier@adacore.com>
5676 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5678 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5680 (Hash): Move instantiation of System.HTable.Hash from spec to body
5681 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5682 systems, since we do not need to recompute the Name_Id for the canonical
5684 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5685 as a parameter. This parameter is in fact always "ada" in all calls, and
5686 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5687 while loading a project with 40000 files
5689 * prj-attr.adb: Fix name of attribute Dependency_Driver
5690 Change the kind of indexing for attribute Root
5692 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5693 variables already declared, in case constructions.
5695 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5696 Current_Object_Path_File to No_Path.
5698 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5699 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5701 * prj-makr.adb: new parameter Current_Dir
5703 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5704 Ada sources when language is not Ada.
5705 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5706 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5707 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5708 (Locate_Directory): Always resolve links when computing Canonical_Path
5709 (Look_For_Sources): Make sure that Name_Buffer contains the file name
5710 in Source_Files before checking for the presence of a directory
5712 Optimize calls to Name_Find when on case sensitive systems.
5713 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5715 (Prj.Nmsc.Check): new parameter Current_Dir
5716 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5717 cannot be empty and the spec suffix cannot be the same as the body or
5719 (Get_Unit): When a file name can be of several unit kinds (spec, body or
5720 subunit), always consider the longest suffix.
5721 (Check_Configuration): Do not issue an error if there is no compiler
5722 for a language. Just issue a warning and ignore the sources for the
5724 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5726 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5727 (Unit_Exceptions): New hash table
5728 (Check_Naming_Schemes): Check if a file that could be a unit because of
5729 the naming scheme is not in fact a source because there is an exception
5731 (Look_For_Sources): Put the unit exceptions in hash table
5733 (Get_Unit_Exceptions): Give initial value No_Source to local variable
5734 Other_Part to avoid exception when code is compiled with validity
5736 (Get_Sources_From_File): Check that there is no directory information
5738 (Look_For_Sources): Check that there is no directory information in the
5739 list of file names in Source_Files.
5740 (Look_For_Sources): In multi-language mode, do not allow exception file
5741 names that are excluded.
5742 (Excluded_Sources_Htable): New hash table
5743 (Search_Directories.Check_File): New procedure to simplify
5745 (Search_Directories): Do not consider excluded sources
5746 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5748 (Get_Exceptions): Set component Lang_Kind of Source_Data
5749 (Get_Unit_Exceptions): Ditto
5750 (Search_Directories): Ditto
5752 * prj-pars.adb: new parameter Current_Dir
5754 * prj-part.ads, prj-part.adb:
5755 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5756 (Opt.Follow_Links_For_Dirs): New flag
5757 (Project_Path_Name_Of): Cache information returned by this routine as
5758 Locate_Regular_File is a costly routine. The code to output a log
5759 information and the effective call to Locate_Regular_File is now
5760 factorized into a routine (code clean-up).
5761 (Parse, Parse_Single_Project): new parameter Current_Dir
5762 When main project file cannot be found, indicate in the error
5763 message the project path that was used to do the search.
5765 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5766 (Prj.Proc.Process*): new parameter Current_Dir
5768 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5770 2007-12-13 Bob Duff <duff@adacore.com>
5772 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5773 procedure to be called from the back end to check the
5774 No_Implicit_Dynamic_Code restriction.
5776 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5778 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5779 Fixes another case where RTE_Available_Call was ignored instead of being
5783 * rtsfind.ads: Add new entries.
5785 2007-12-13 Robert Dewar <dewar@adacore.com>
5787 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5788 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5790 * scn.adb: Implement BOM recognition
5792 2007-12-13 Thomas Quinot <quinot@adacore.com>
5793 Ed Schonberg <schonberg@adacore.com>
5795 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5796 subprogram body that acts as its own spec may not have a non-private
5797 WITH clause on a private sibling.
5798 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5799 child unit is a renaming, create an implicit with_clause on that
5800 parent, and not on the unit it renames, to prevent visibility errors
5801 in the current unit.
5803 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5805 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5806 renaming declaration, use the Slocs of the formal parameters from the
5807 declaration of the formal subprogram when creating the formal parameter
5808 entities in the renaming declaration.
5809 (Analyze_Formal_Type_Declaration): Change the placement of the error
5810 message concerning illegal known discriminants. It is now posted on the
5811 type rather than on the first discriminant. This change ensures early
5813 (Freeze_Subprogram_Body): If the generic subprogram is nested within
5814 the package body that contains the instance, do not generate an
5815 out-of-place freeze node for the enclosing package.
5816 (Collect_Previous_Instantiations): Ignore internal instantiations
5817 generated for formal packages.
5818 (Validate_Derived_Type_Instance): Add a check that when a formal
5819 derived type is Known_To_Have_Preelab_Init then the actual type must
5820 have preelaborable initialization, and issue an error when this
5821 condition is violated.
5823 2007-12-13 Robert Dewar <dewar@adacore.com>
5825 * s-imenne.adb, s-imenne.ads: New files.
5827 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5828 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
5829 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
5830 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
5831 s-imgwch.ads: New calling sequence for Image routines to avoid sec
5834 2007-12-13 Javier Miranda <miranda@adacore.com>
5835 Ed Schonberg <schonberg@adacore.com>
5837 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5838 generation of spurious error if parent is an interface type; caused
5839 because predefined primitive bodies will be generated later by
5841 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5843 (Derive_Subprograms): Handle derivations of predefined primitives
5844 after all the user-defined primitives to ensure that they are
5845 found in proper order in instantiations.
5846 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5847 of Related_Interface to Related_Type.
5848 (Record_Type_Declaration): Minor reordering of calls to decorate the
5849 Tag component because the entity must have set its Ekind attribute
5850 before setting its Is_Tag attribute.
5851 (Analyze_Subtype_Declaration): In the case of subtypes with
5852 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5854 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5855 Ed Schonberg <schonberg@adacore.com>
5857 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5858 statement to the list of contexts where a selected component with a
5859 concurrent tagged type prefix should yield a primitive operation.
5860 (Find_Primitive_Operation): Handle case of class-wide types.
5861 (Analyze_Overloaded_Selected_Component): If type of prefix is
5862 class-wide, use visible components of base type.
5863 (Resolve_Selected_Component): Ditto.
5864 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5865 formal of a generic subprogram. find candidate interpretations by
5866 scanning the list of generic formal declarations.:
5867 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5868 type from a limited_with_clause, and the full view is available, use it
5869 for subsequent semantic checks.
5870 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5871 (Find_Primitive_Operation): New function.
5872 (Analyze_Overloaded_Selected_Component): insert explicit dereference
5873 only once if several interpretations of the prefix yield an access type.
5874 (Try_Object_Operation): Code and comment cleanup.
5875 (Analyze_Selected_Component): Reorder local variables. Minot comment and
5876 code reformatting. When the type of the prefix is tagged concurrent, a
5877 correct interpretation might be available in the primitive and
5878 class-wide operations of the type.
5880 2007-12-13 Robert Dewar <dewar@adacore.com>
5881 Ed Schonberg <schonberg@adacore.com>
5883 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5884 renaming entry as subprogram using rename-as-body if subprogram spec
5886 (Use_One_Type): The clause is legal on an access type whose designated
5887 type has a limited view.
5888 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5889 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5890 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5891 operation denoted by a selected component.
5892 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5893 it can be an expression, possibly overloaded, that returns a task or
5896 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5897 Gary Dismukes <dismukes@adacore.com>
5899 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5900 requeue statement is dispatching. Do not emit an error when the name is
5901 not an entry and the context is a dispatching select. Add code to
5902 perform subtype conformance between the formals of the current entry
5903 and those of the target interface primitive.
5904 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5905 Timed_Entry_Call): Analyze the triggering statement as the first step of
5906 the processing. If this is a dispatching select, postpone the analysis
5907 of all select statements until the Expander transforms the select. This
5908 approach avoids generating duplicate identifiers after the Expander has
5909 replicated some of the select statements. In case the Expander is
5910 disabled, perform regular analysis.
5911 (Check_Triggering_Statement): New routine.
5912 (Analyze_Requeue): Exclude any interpretations that are not entries when
5913 checking overloaded names in a requeue. Also test type conformance for
5914 matching interpretations rather than requiring subtype conformance at
5915 that point to conform with the RM's resolution rule for requeues.
5917 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5919 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5920 inherited operation is a defaulted tag-indeterminate call, and there is
5921 a statically tagged actual, use the static tag as a controlling actual
5922 for the defaulted actual.
5924 2007-12-13 Geert Bosch <bosch@adacore.com>
5926 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5927 context, so do not call Check_Non_Static_Context.
5929 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5931 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5932 whether formal E is an entity which may have parameters.
5934 2007-12-13 Bob Duff <duff@adacore.com>
5935 Javier Miranda <miranda@adacore.com>
5936 Robert Dewar <dewar@adacore.com>
5938 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5939 (Set_Convention): New procedure to set the Convention flag, and in
5940 addition make sure the Favor_Top_Level flag is kept in sync (all
5941 foreign-language conventions require Favor_Top_Level = True).
5942 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5944 (Collect_Interfaces_Info): Minor update to handle the two secondary
5945 dispatch tables. Update occurrence of Related_Interface to Related_Type.
5946 (Generate_Parent_Ref): Add parameter to specify entity to check
5947 (Is_Preelaborable_Expression): Allow the name of a discriminant to
5948 initialize a component of a type with preelaborable initialization.
5949 This includes the case of a discriminal used in such a context.
5950 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5951 latest Ada 2005 rules about renaming and 'Access of
5952 discriminant-dependent components.
5953 (Check_Nested_Access): Add handling when there are no enclosing
5954 subprograms (e.g. case of a package body).
5955 (Find_Parameter_Type): Factor routine from several other compiler files.
5956 Remove routine from Find_Overridden_Synchronized_Primitive.
5958 2007-12-13 Thomas Quinot <quinot@adacore.com>
5960 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5961 an invalid access to an uninitialized slot in the
5962 Source_File_Index_Table.
5964 2007-12-13 Thomas Quinot <quinot@adacore.com>
5966 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5968 2007-12-13 Bob Duff <duff@adacore.com>
5970 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5971 access-to-subprogram types in this package.
5973 2007-12-13 Olivier Hainque <hainque@adacore.com>
5975 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5976 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5977 Stack_Overlay_Address and document that we are using an internal
5979 (Byte_Size, Unsigned_32_Size): Remove, now useless.
5980 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5981 consistently throughout the various implementation pieces.
5983 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5984 overlay we are using to fill the stack area with patterns.
5985 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5986 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5987 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5989 2007-12-13 Robert Dewar <dewar@adacore.com>
5991 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5993 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5996 (Create_Task): Take into account tasks created by foreign threads.
5997 Code clean up: use constants instead of hard coded values.
5999 2007-12-13 Robert Dewar <dewar@adacore.com>
6001 * styleg.adb (Check_Comment): More liberal rules for comment placement
6003 2007-12-13 Olivier Hainque <hainque@adacore.com>
6005 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6006 of Procedure Value instead of Frame Pointer as the invocation
6007 identifier associated with the instruction pointer in each traceback
6010 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6011 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6012 Pointer as the invocation identifier passed to tbk$symbolize.
6014 * s-traent-vms.ads, s-traent-vms.adb
6015 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6016 Procedure Value instead of Frame Pointer as the invocation identifier
6017 passed to tbk$symbolize.
6019 2007-12-13 Robert Dewar <dewar@adacore.com>
6021 * tbuild.ads, tbuild.adb:
6022 Fix location of flag for unrecognized pragma message
6024 2007-12-13 Robert Dewar <dewar@adacore.com>
6026 * treepr.ads, treepr.adb: (pl): implement use of positive value
6029 2007-12-13 Robert Dewar <dewar@adacore.com>
6031 * xeinfo.adb: Remove warnings
6032 * xnmake.adb: Remove warnings
6033 * xsinfo.adb: Remove warnings
6034 * xtreeprs.adb: Remove warnings
6035 * xsnames.adb: Remove warnings
6037 * a-ngcoar.adb: Fix typo.
6038 * s-interr.adb: Minor reformatting
6039 * env.c: Minor reformatting.
6040 * g-bytswa.adb: Minor reformatting.
6041 * g-rannum.ads: Minor documentation improvements
6042 * s-tasinf-mingw.adb: Minor header fix
6043 * a-clrefi.adb: Minor reformatting
6044 * g-sttsne.ads: Minor documentation improvement
6045 * g-sttsne-locking.ads: Minor documentation improvement
6046 * g-soliop-solaris.ads: Minor documentation improvement
6047 * g-soliop-mingw.ads: Minor documentation improvement
6048 * g-soliop.ads: Minor documentation improvement
6049 * exp_aggr.ads: Minor reformatting
6050 * debug.adb: Add documentation for the gprbuild debug flags
6051 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6052 * exp_pakd.adb: Minor reformatting
6054 * g-altive.ads, g-alleve.adb: Remove assertions.
6055 Add comment about minor differences between targets regarding
6056 floating-point operations.
6058 * g-thread.adb: Remove pragma unreferenced.
6059 * lib.ads: Minor reformatting
6060 * par-ch9.adb: Minor reformatting of error messages
6061 * sem_case.adb: Minor reformatting
6062 * s-fileio.adb: Minor reformattinng
6063 * s-vmexta.ads: Minor typo
6065 Take into account 'Success' value as per new GNAT warning.
6067 2007-12-13 Vincent Celier <celier@adacore.com>
6069 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6072 2007-12-13 Robert Dewar <dewar@adacore.com>
6073 Bob Duff <duff@adacore.com>
6075 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6076 Document that suffixes may be terminations of each others
6077 Add doc for -gnatw.a and -gnatw.A
6078 Document gnatbind -Wx switch
6079 Document BOM recognition
6080 Document pragma Implemented_By_Entry.
6083 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6084 Add doc for pragma Unreferenced suppressing no entities referenced msg
6085 Add documentation of GNAT.Directory_Operations.Iteration
6086 Add documentation of GNAT.Random_Numbers
6087 Add documentation for pragma Shared.
6088 Correct documentation for Bit_Order
6089 Add documentation for the Pool_Address attribute.
6090 Fix and improve documentation of pragma machine_attribute.
6091 New pragma Fast_Math
6092 Document BOM recognition
6094 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6095 Add /Wide_Character_Encoding for binder
6096 Add qualifier for the new gnatpp option --no-separate-loop-then
6098 2007-12-13 Matthew Heaney <heaney@adacore.com>
6100 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6101 which generic formal operations are called for each operation.
6103 2007-12-13 Olivier Hainque <hainque@adacore.com>
6105 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6106 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6108 2007-12-13 Emmanuel Briot <briot@adacore.com>
6110 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6111 Reference_Dir unless we actually need it.
6113 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6114 Tristan Gingold <gingold@adacore.com>
6116 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6119 a-calend-vms.adb: Remove pragma warning off and add pragma
6122 2007-12-13 Robert Dewar <dewar@adacore.com>
6124 * impunit.adb: Add entries for missing units
6126 * Makefile.rtl: Add new run-time units.
6128 * Make-lang.in: Update dependencies.
6130 2007-12-13 Bob Duff <duff@adacore.com>
6132 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6133 types, set Can_Use_Internal_Rep appropriately, based on
6134 Always_Compatible_Rep_On_Target.
6136 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6137 Arnaud Charlet <charlet@adacore.com>
6139 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6140 it to the front end and setting the aamp_target environment variable
6141 to the switch's argument to ensure that gnaampbind and gnaamplink will
6142 take the specified library into account.
6143 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6144 target, since the CIL compiler supports an "object" file (.il files).
6146 2007-12-13 Vincent Celier <celier@adacore.com>
6148 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6149 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6151 2007-12-13 Geert Bosch <bosch@adacore.com>
6153 * s-parame-vxworks.adb:
6154 Update comments to reflect usage of this package by Nucleus.
6156 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6158 * i-vxwork.ads: Kill new warning on Convention C, since changing the
6159 spec would break code.
6161 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6163 * system-vxworks-alpha.ads: Removed.
6165 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
6167 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6169 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
6172 * sem_ch3.adb (Designates_T): New function.
6173 (Mentions_T): Factor reusable part of the logic into Designates_T.
6174 Consider non-access parameters and access and non-access result.
6175 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6176 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6178 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6180 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
6183 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6184 the new implementation of target-specific calls.
6186 2007-12-07 Olivier Hainque <hainque@adacore.com>
6188 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6189 the designated full view, only follow a second level Full_View link
6190 for Non_Limited_Views of from_limited_with references.
6192 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
6195 * sem_ch6.adb (Process_Formals): Prevent an access type formal
6196 to be initialized with an access to constant object.
6198 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6199 when an access to constant is used to initialize an access
6203 * a-direct.adb (Compose): Containing_Directory can be an empty string.
6205 2007-12-07 Olivier Hainque <hainque@adacore.com>
6208 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6209 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6210 this is from an alignment clause on the GNAT entity.
6211 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6212 to distinguish the case where we set it from the type's alignment.
6213 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6214 whether this alignment was set from an explicit alignment clause.
6216 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6218 * decl.c (make_packable_type): Revert last change.
6219 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6220 * utils.c (finish_record_type): Retrieve the real name of the type.
6222 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6224 * trans.c (lvalue_required_p): Take base node directly instead
6225 of its parent. Rename second parameter to 'gnu_type'.
6226 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6227 <N_Slice>: Likewise.
6228 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6229 Adjust calls to lvalue_required_p.
6231 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6234 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6235 parameters of an entry call.
6237 2007-12-03 Robert Dewar <dewar@adacore.com>
6238 Samuel Tardieu <sam@rfc1149.net>
6241 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6242 of variables declared in a library-level package.
6244 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6246 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6247 of Empty_String'Unchecked_Access.
6249 * Makefile.in: Add support for sh4-linux.
6251 * system-linux-sh4.ads: New file.
6253 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6256 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6257 and its argument must not be free()ed.
6259 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6261 * decl.c (make_packable_type): Retrieve the real name of the type.
6262 (maybe_pad_type): Simplify similar code.
6264 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6267 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6268 than an identifier is used after "case" in a variant_part.
6271 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6272 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6273 attribute name or not depending on the new map.
6275 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6276 returning a string or a type will not be called with improper
6279 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6281 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6284 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6285 Signal an error when attribute argument is a fixed-point value of
6289 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6290 a derived ordinary fixed point type.
6292 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6293 RM_Size when a Small clause is found.
6295 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6298 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6299 Pass 'false' for the new allocate_struct_function parameter.
6300 * utils.c (build_function_stub): Likewise.
6302 2007-11-25 Richard Guenther <rguenther@suse.de>
6304 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6305 (gnat_poplevel): Likewise.
6307 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6309 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6310 strict alignment, no alignment clause and a known static size, cap
6311 the type alignment to the greatest power of 2 factor of the size.
6312 (gnat_to_gnu_field): If the field has a component clause, is aliased
6313 or of a type with strict alignment, require that its size be equal to
6315 (validate_size): Use the type size as the minimum size for a type with
6318 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6320 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6321 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6322 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6323 Use 'Access instead of 'Unchecked_Access in second and third
6324 arguments of pthread_sigmask.
6326 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
6328 * decl.c (ceil_alignment): New function.
6329 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6330 (make_packable_type): Likewise.
6332 2007-11-22 Olivier Hainque <hainque@adacore.com>
6334 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6335 to fit in 80 columns.
6337 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
6339 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6340 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6342 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
6345 * misc.c (gnat_adjust_rli): Delete.
6346 (gnat_init): Do not initialize the translation code here.
6347 Do not call set_lang_adjust_rli.
6348 * trans.c (init_code_table): Make static.
6349 (gnat_init_stmt_group): Delete.
6350 (gigi): Initialize the translation code entirely here.
6351 Emit debug info for the common types here instead of...
6352 * utils.c (gnat_init_decl_processing): ...here.
6353 * gigi.h (init_code_table): Delete.
6354 (gnat_init_stmt_group): Likewise.
6356 2007-11-16 Olivier Hainque <hainque@adacore.com>
6358 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6359 retrieving an allocator return value from a super-aligned address from
6361 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6362 expect a super-aligned address for a fat or thin pointer.
6364 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
6366 * trans.c (call_to_gnu): Always set the source location on the call
6367 expression. If the function returns-by-target, also set it on the
6370 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
6372 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6373 sections of non-supported Interix target.
6375 * s-osinte-interix.ads: Removed.
6377 * i-cstrin.ads (chars_ptr): Make it a C convention type.
6379 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
6381 * a-tasatt.adb: Add a comment at the beginning of the package
6382 explaining why in general 'Unchecked_Access must be used instead
6385 * sem_prag.adb (Process_Convention): Move the test for the
6386 entity on which the Convention pragma applies down to also
6387 forbid pragma Convention on enumeration literals reached
6390 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
6392 * a-tasatt.adb: Revert previous change for this file as it will
6393 generate an error when this package is instantiated from a
6396 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
6398 * a-tasatt.adb: Type Wrapper should be declared in comment instead
6399 of already declared type Node_Access.
6400 Use 'Access instead of 'Unchecked_Access when applicable. Local
6401 lifetime is the one of the package.
6402 (Set_Value): W is allocated on the heap.
6404 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6406 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6408 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6411 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6413 (elaboration code): Timer_Queue lifetime is the one of the
6416 * tracebak.c (i386 alternative): Remove useless comparaison
6417 which is always false; LOWEST_ADDRESS is 0 and is never greater
6418 than an unsigned integer.
6420 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6421 embedded check for "Ada_Version >= Ada_05".
6423 2007-11-07 Olivier Hainque <hainque@adacore.com>
6425 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6426 craft and expand comment.
6428 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
6430 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6432 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
6434 * misc.c (gnat_handle_option): Replace call to abort with
6435 call to gcc_unreachable.
6436 (gnat_init): Likewise.
6437 (gnat_expand_expr): Likewise.
6438 (fp_prec_to_size): Likewise.
6439 (fp_size_to_prec): Likewise.
6441 2007-10-23 Richard Guenther <rguenther@suse.de>
6444 * tracebak.c: #undef abort after including system.h.
6446 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
6448 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6449 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6451 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6453 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
6455 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6456 Set the protection status of the guard page based on the value of On.
6458 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6460 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6461 (Exit_Task): Pass False to Hide_Yellow_Zone.
6463 2007-10-15 Robert Dewar <dewar@adacore.com>
6465 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6466 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6467 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
6468 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
6469 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
6470 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
6471 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
6472 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
6473 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
6474 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6475 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
6476 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
6477 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
6478 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
6479 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
6480 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6482 Add Unreferenced and Warnings (Off) pragmas for cases of
6483 variables modified calls where they are IN OUT or OUT parameters and
6484 the resulting values are not subsequently referenced. In a few cases,
6485 we also remove redundant code found by the new warnings.
6487 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
6488 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6489 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6490 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6491 warning controlled by -gnatw.o that warns on cases of out parameter
6492 values being ignored.
6494 2007-10-15 Geert Bosch <bosch@adacore.com>
6496 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6498 * expect.c: Initial port to arm-mentor-nucleus.
6499 Use kill for __gnat_kill() on VMS.
6501 2007-10-15 Emmanuel Briot <briot@adacore.com>
6503 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6505 (Xref_Record): Change type for Line, since in the case of a reference to
6506 a predefined entity (as happens for array index types), the line is set
6508 Add support for parsing multiple array index types info, or
6509 multiple inherited interfaces info. This information cannot be stored
6510 in Xref_Entity_Record, which only supports a single instance of Tref_*,
6511 and is therefore stored in the list of references instead. It has a
6512 special treatement later on in tools that use this information.
6514 2007-10-15 Tristan Gingold <gingold@adacore.com>
6516 * debug.adb: Document use of -gnatd.a and -gnatd.I
6518 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6520 2007-10-15 Javier Miranda <miranda@adacore.com>
6522 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6523 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6524 care of access to class-wide interface types plus removal of bizarre
6525 conversion of tagged object to access type (reported by Gary
6526 Dismukes). After this patch there is no need to perform any
6527 additional management on these nodes in Expand_Interface_Actuals.
6529 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6530 that handles use of 'Access and 'Unchecked_Access applied to
6531 actuals covering interface types. Such code is now
6532 centralized in Expand_N_Attribute_Reference.
6534 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6536 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6537 of tagged types whose ultimate ancestor is a CPP type.
6538 (Freeze_Array_Type): For a packed array type, generate an initialization
6539 procedure if the type is public, to handle properly a client that
6540 specifies Normalize_Scalars.
6542 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6544 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6545 inside a generic body, retrieve the full view of the entry family
6546 discrete subtype if available.
6548 2007-10-15 Thomas Quinot <quinot@adacore.com>
6550 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6551 attempt to generate stubs for hidden primitive operations.
6553 2007-10-15 Vincent Celier <celier@adacore.com>
6555 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6556 returning None, used when there is no platform specific body for
6559 2007-10-15 Bob Duff <duff@adacore.com>
6561 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6562 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6563 the generic Heap_Sort_G, in order to avoid trampolines.
6565 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
6566 Jose Ruiz <ruiz@adacore.com>
6568 * vx_stack_info.c: New file.
6570 * i-forbla-unimplemented.ads: New file.
6572 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6573 for unsupported configurations; use it on VMS targets instead of the
6575 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6576 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6577 used by VxWorks targets to have access to task-specific data and be
6578 able to extract the stack boundaries for stack checking.
6579 Use system-vms-ia64.ads on ivms.
6581 * Make-lang.in: Update dependencies.
6583 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6586 2007-10-15 Vincent Celier <celier@adacore.com>
6588 * snames.adb, snames.ads: Add new standard name runtime_library_dir
6590 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6592 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6594 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6595 the source is unknown.
6597 * prj-ext.adb: Spelling error fix
6599 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6600 95 reserved word in its name.
6601 (Process_Project_Level_Array_Attributes): Process new attribute
6602 Runtime_Library_Dir.
6604 * prj-part.adb (Parse_Single_Project): Do not check the name of the
6605 config project against the user project names.
6607 * prj-proc.adb (Expression): In multi-language mode, indexes that do
6608 not include a dot are always case insensitive.
6609 (Process_Declarative_Items): Ditto
6610 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6613 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6614 True, compare both indexes in lower case.
6616 2007-10-15 Robert Dewar <dewar@adacore.com>
6618 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6620 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6622 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6623 association for an access component, add an association with null as
6624 the expression. Remove testing for array subtypes and the setting in
6625 that case of Ctyp to the array component type, which prevented proper
6626 inclusion of an association for null-initialized arrays. Collapse
6627 condition that tests for array subtypes into just a test of
6628 Is_Partially_Initialized_Type (which already covers arrays anyway).
6630 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6632 * sem_ch12.adb: Minor code reformatting.
6633 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6634 find the parent package which may have been hidden by local
6637 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6639 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6640 flag of derived concurrent types, taking into account the flag setting
6641 on the parent subtype and any new set of discriminants.
6643 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6645 * sem_ch4.adb: Minor code and comment reformatting.
6646 (Analyze_Allocator): When the designated type of an unconstrained
6647 allocator is a record with unknown discriminants or an array with
6648 unknown range bounds, emit a detailed error message depending on the
6649 compilation mode and whether the designated type is limited.
6651 2007-10-15 Tristan Gingold <gingold@adacore.com>
6653 * system-vms-ia64.ads: New file.
6655 * system-vms_64.ads: Minor comment fix.
6657 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6659 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6660 body generated for a function with a controlling result that is a null
6661 extension, discard the generated body in favor of the current explicit
6664 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6666 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6667 examining its original form, to handle properly operator calls that
6668 have been rewritten.
6670 2007-10-15 Olivier Hainque <hainque@adacore.com>
6672 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6673 instead of a procedure value in each traceback entry.
6675 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6676 instead of procedure value to TBK$SYMBOLIZE.
6678 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6680 (TB_Entry_For): Account for the PV/FP renaming.
6682 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6684 (Null_TB_Entry): Account for change of component name.
6685 (PV_For): Rename as FP_For.
6687 2007-10-15 Tristan Gingold <gingold@adacore.com>
6689 * trans.c (gnat_to_gnu): Remove the padding structure more often.
6690 This optimize assignment to over-aligned record.
6692 2007-10-15 Emmanuel Briot <briot@adacore.com>
6694 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6697 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6698 type, for dispatching calls.
6700 2007-10-15 Vincent Celier <celier@adacore.com>
6701 Robert Dewar <dewar@adacore.com>
6703 * gnat_ugn.texi: Add documentation for switches --version and --help
6704 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6705 gnatxref, gnatfind, gnatls, and gnatclean.
6707 Mention attribute Excluded_Source_Dirs
6708 Replace obsolescent attribute Locally_Removed_Files with attribute
6709 Excluded_Source_Files.
6710 Improve documentation of -u (gnatbind)
6711 Document how to do reliable stack checking for the environmental task
6714 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6715 Document attribute Excluded_Source_Files and indicate that attribute
6716 Locally_Removed_Files is obsolescent.
6718 2007-10-15 Thomas Quinot <quinot@adacore.com>
6720 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6723 Update documentation to note that OpenVMS 8.3 or later must be used
6724 to generate g-soccon-vms.ads.
6726 * atree.adb: Add ??? comment
6728 * exp_util.adb: Minor reformatting.
6729 Add ??? comment in Kill_Dead_Code.
6731 2007-10-15 Robert Dewar <dewar@adacore.com>
6733 * errout.ads: Comment clarification
6735 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6736 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6738 * lib.ads: Comment update
6740 * init.c: Minor reformatting.
6742 * sem_attr.adb: Minor formatting
6744 * osint-b.ads: Minor reformatting
6746 * sem_ch9.adb: Implement -gnatd.I switch
6748 * g-comlin.adb: (Start): Fix handling of empty command line.
6750 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6751 even when -rules follows the -cargs section.
6753 2007-10-08 Ollie Wild <aaw@google.com>
6755 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6757 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6759 (gnat_eh_runtime_type): Removed.
6760 (gnat_return_tree): New function.
6762 2007-10-08 Ben Elliston <bje@au.ibm.com>
6766 2007-08-31 Ben Elliston <bje@au.ibm.com>
6768 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6769 when compiling for powerpc64-*-linux.
6770 * system-linux-ppc64.ads: New file.
6772 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
6774 Mapped location support
6775 * back_end.adb (Call_Back_End): Pass information about source
6776 files instead of units to gigi.
6777 * gigi.h (struct File_Info_Type): New.
6778 (gigi): Rename and change type of number_units parameter, change
6779 type of file_info_ptr parameter.
6780 * trans.c (number_files): New global variable.
6781 (gigi): Rename and change type of number_units parameter, change
6782 type of file_info_ptr parameter.
6783 If mapped location support is enabled, create the isomorphic mapping
6784 between source files and line maps.
6785 (Sloc_to_locus): If mapped location support is enabled, translate
6786 source location into mapped location.
6787 (annotate_with_node): Rename into set_expr_location_from_node.
6788 Call set_expr_location instead of annotate_with_locus.
6789 (Pragma_to_gnu): Adjust for above change.
6790 (Loop_Statement_to_gnu): Likewise.
6791 (call_to_gnu): Likewise.
6792 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6793 (gnat_to_gnu): Likewise.
6794 (add_stmt_with_node): Likewise.
6795 (add_cleanup): Likewise.
6796 * utils.c (gnat_init_decl_processing): Do not set input_line.
6798 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6800 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6801 (Applicable_Use): Emit a warning when a package tries to use itself.
6802 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6803 is already in use or the package where it is declared is in use or is
6804 declared in the current package.
6805 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6807 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6808 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6809 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6811 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6813 * a-calend-vms.adb, a-calend.adb:
6814 Add a section on leap seconds control along with two entities used to
6815 enable and disable leap seconds support. The array Leap_Second_Times is
6816 now constant and contains hard time values pre-generated. Remove
6817 all elaboration code used to populate the table of leap seconds.
6820 Add entity Leap_Seconds_Support to the list of global run-time variables
6821 along with a comment on its usage and values.
6822 (Gen_Adainit_Ada): Add code to generate the declaration and import of
6823 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6824 or one (enabled) depending on the presence of binder switch "-y".
6825 (Gen_Adainit_C): Add code to generate the declaration of external int
6826 __gl_leap_seconds_support. Set is value to zero (disabled) or one
6827 (enabled) depending on the presence of binder switch "-y".
6829 * init.c: Add __gl_leap_seconds_support to the list of global values
6830 computed by the binder.
6832 2007-09-26 Jerome Guitton <guitton@adacore.com>
6834 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6835 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6836 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6837 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6839 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6841 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6842 function which can be called by the debugger to interrupt the tasks of
6843 an Ada application asynchronously, as needed on VxWorks.
6844 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6846 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6847 renamed from Stop_All_Tasks. Update comments.
6848 (Stop_All_tasks): New function declaration.
6850 2007-09-26 Olivier Hainque <hainque@adacore.com>
6852 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6853 #include <utime.h> and #define GCC_RESOURCE_H before
6854 #include <sys/wait.h>.
6855 Add more protections in __gnat_translate_vms.
6857 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6858 #include <sys/wait.h>.
6860 2007-09-26 Thomas Quinot <quinot@adacore.com>
6861 Sergey Rybin <rybin@adacore.com>
6863 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6865 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6868 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6870 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6873 * sem_dist.ads: Minor comment fix
6875 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6877 2007-09-26 Javier Miranda <miranda@adacore.com>
6878 Eric Botcazou <ebotcazou@adacore.com>
6881 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6882 indirection added to the HT_Link component of the TSD. This is required
6883 to statically allocate the TSD.
6886 Minor reordering of the declarations in the private part. Required to
6887 add a level of indirection to the contents of the TSD component HT_Link.
6888 This is required to statically allocate the TSD.
6890 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6891 Is_Statically_Allocated set from constant objects.
6892 Do not make exported constants created by the compiler volatile.
6893 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6896 * trans.c (Identifier_to_gnu): For constants, unshare initializers
6897 before returning them.
6899 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6900 public part of the package.
6901 (Make_DT): Move HT_Link component out of the TSD record. For this
6902 purpose Make_DT now declares a separate object that stores the
6903 HT_Link value, and initializes the TSD component with the address
6904 of this new object. The addition of this level of indirection is
6905 required to statically allocate the TSD because the TSD cannot
6906 have variable components.
6907 (Expand_Interface_Conversion): Improve the expanded code.
6908 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6910 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6911 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6912 if we are building static dispatch tables then we must not generate
6913 extra code to register the primitive because the dispatch table will
6914 be built at the end of the library package; otherwise we notify that
6915 we cannot build the static dispatch table.
6917 2007-09-26 Robert Dewar <dewar@adacore.com>
6919 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6922 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6923 (Analyze_Record_Representation_Clause): Suppress junk warning for
6924 missing component clause.
6925 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6926 tests for controlled type overlay to composites with controlled
6928 (Analyze_Record_Representation_Clause): Add reference for component name
6930 2007-09-26 Javier Miranda <miranda@adacore.com>
6931 Gary Dismukes <dismukes@adacore.com>
6933 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6934 for thunks associated with interface types.
6936 * einfo.ads: Improve documentatation of Is_Internal
6937 (Is_Thunk): New attribute applicable to subprograms. True for thunks
6938 associated with interface types.
6939 Extensive comment fixes regarding flags that appear in all entities. The
6940 documentation is now consistent for all such flags (there were a number
6941 of errors in the documentation in this regard).
6943 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6945 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6946 of these procedures are passed a function call that already has
6947 build-in-place actuals (testing new flag
6948 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6949 the case where processing continues.
6950 (Expand_Call): If the call is generated from a thunk body then we
6951 propagate the extra actuals associated with the accessibility
6952 level of the access type actuals.
6954 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6955 of each extra formal of a protected operation to reference the
6956 corresponding extra formal of the subprogram denoted by the
6957 operation's Protected_Body_Subprogram.
6959 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6960 N_Function_Call nodes.
6962 2007-09-26 Robert Dewar <dewar@adacore.com>
6964 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6966 * debug.adb: Add d.s flag.
6968 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6970 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6971 debug variable so that it won't be initialized when pragma
6972 Initialize_Scalars is in effect.
6974 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6976 * freeze.adb (Freeze_Entity): Remove check for preelaborable
6977 initialization of a full view. This is moved to
6978 Analyze_Package_Specification.
6980 * sem_ch7.adb (Analyze_Package_Specification): Add check for
6981 preelaborable initialization of a full view in entity loop.
6982 (Uninstall_Declarations): If entity is a use-visible compilation unit,
6983 its child units are use-visible only if they are visible child units.
6985 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6986 whether an expression can be used within a type declaration that
6987 requires preelaborable init.
6988 (Check_Components): Replace inline code that does partial checking for
6989 preelaborable default expressions with call to
6990 Is_Preelaborable_Expression.
6991 (Has_Preelaborable_Initialization): In the case of a generic actual
6992 subtype, (that is, Is_Generic_Actual is True), return the result of
6993 applying Has_Preelaborable_Initialization to the generic actual's base
6996 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6998 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6999 call to Jan_1_Day _Of_Week to optimize its performance.
7000 (Is_Leap): Move the routine to the scope of Week_In_Year.
7001 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7002 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7003 avoids calling Time_Of and Split, thus making it more efficent.
7004 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7006 * g-calend.ads (Week_In_Year): Change comment to reflect new
7009 2007-09-26 Emmanuel Briot <briot@adacore.com>
7011 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7012 Command_Line): New types
7013 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7014 support for defining how switches can be grouped on a command line (as
7015 is the case for -gnatw... for GNAT), and how simple switches can be
7016 used as aliases for more complex switches (-gnatwa is same as
7018 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7019 (Start, Current_*): New subprograms
7020 Added support for parsing an array of strings in addition to the real
7022 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7023 be moved from the body to the private part of the spec.
7024 (*): All subprograms now have an extra parameter with default value to
7025 specify which parser should be used. For backward compatibility, it
7026 defaults to parsing the command line of the application. They were also
7027 modified to properly handle cases where each of the argument does not
7028 start at index 1 (which is always true for Ada.Command_Line, but not
7029 when processing any Argument_List).
7030 (Free): New subprogram
7031 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7032 Argument): New subprograms
7033 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7034 special characters like ':', '=',... are now handled in a single place,
7035 which makes the code more extensible eventually.
7036 (Getopt, Full_Switch): When the switch was returned as part of the
7037 special character '*', make sure it is prepended by the switch character
7038 ('-' in general), so that the application knows whether "foo" or "-foo"
7039 was specified on the command line.
7041 2007-09-26 Florian Villoing <villoing@adacore.com>
7043 * g-dirope.adb (Remove_Dir): In case we are removing directories
7044 recursively, make sure that if an exception is raised during the
7045 processing, the current working directory is reset to its initial
7046 value before propagating the exception.
7048 2007-09-26 Vincent Celier <celier@adacore.com>
7050 * gnatbind.adb: If there are several ALI files specified and there is
7051 a main program to bind, the first ALI is expected to contain the main
7052 subprogram and the names of the binder generated files will be derived
7053 from the first ALI file name.
7054 (Gnatbind): Fix insertion character in invocation of Error_Msg
7056 2007-09-26 Vincent Celier <celier@adacore.com>
7058 * gnatcmd.adb (Check_Files): Do not include sources that have been
7059 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7061 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7063 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7064 information about each of its index types, following the type
7065 reference for its component type.
7067 2007-09-26 Vincent Celier <celier@adacore.com>
7069 * make.adb: (Kill): New procedure (__gnat_kill imported)
7070 (Running_Compile, Outstanding_Compiles): Global variables that
7071 were previously local to procedure Compile_Sources.
7072 (Sigint_Intercepted): Send signal SIGINT to all outstanding
7073 compilation processes.
7075 (Gnatmake): If project files are used, create the mapping of all the
7076 sources, so that the correct paths will be found.
7078 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7080 2007-09-26 Vincent Celier <celier@adacore.com>
7082 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7084 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7085 Replace components Compiler_Min_Options and Binder_Min_Options with
7086 Compiler_Required_Switches and Binder_Required_Switches in record
7088 Remove components Default_Language and Config in Project_Tree_Data,
7091 * prj-attr.adb: New attributes Required_Switches (<language>) in
7092 packages Compiler and Binder.
7094 * prj-nmsc.adb: Major rewrite of the processing of configuration
7095 attributes for gprbuild. No impact on GNAT tools.
7097 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7098 process configuration attributes: this is done in Prj.Nmsc.Check.
7099 (Recursive_Process): Make a full copy of packages inherited from project
7100 being extended, instead of a shallow copy.
7101 (Process_Project_Tree_Phase_1): New procedure
7102 (Process_Project_Tree_Phase_1): New procedure
7103 (Process): Implementation now uses the two new procedures
7105 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7106 from the project config, not the tree config that no longer exists.
7108 2007-09-26 Vincent Celier <celier@adacore.com>
7110 * Make-lang.in: Update dependencies..
7112 2007-09-26 Vincent Celier <celier@adacore.com>
7114 * osint.adb, osint.ads: Minor reformatting
7116 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7118 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7120 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7121 message to cite use of <> in aggregate component associations rather
7122 than wrongly indicating use of limited aggregates.
7124 2007-09-26 Robert Dewar <dewar@adacore.com>
7126 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7129 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7131 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7132 ancestor of the derived type, the operations are inherited from the
7133 primary dispatch table of the parent.
7134 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7135 when the context is an explicit type conversion.
7137 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7139 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7140 rule for qualified expressions properly, to detect improper conversions
7141 and resolve some cases of overloading.
7143 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7145 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7146 proper kind of reference to the primitive operation, for better source
7148 (Valid_Conversion): A tagged conversion is legal if both operands are
7151 2007-09-26 Robert Dewar <dewar@adacore.com>
7153 * sem_warn.adb (Check_References): Catch more cases of unreferenced
7156 2007-09-26 Vincent Celier <celier@adacore.com>
7158 * snames.adb, snames.ads: Change Include_Option to Include_Switches
7160 2007-09-26 Robert Dewar <dewar@adacore.com>
7162 * s-wchstw.adb: provide messages for run time unit exceptions
7164 * a-witeio.adb: Minor reformatting
7166 * exp_ch13.adb: Minor reformatting
7168 2007-09-26 Sergey Rybin <rybin@adacore.com>
7170 * vms_data.ads: Revise gnatmetric qualifiers.
7171 Add qualified for the new gnatbind option '-y'
7173 * gnat_ugn.texi: Revise the gnatmetric section.
7174 Add entry for new gnatbind option '-y'.
7176 * gnat_rm.texi: Minor spelling correction.
7177 Document restriction on overlaying controlled types
7179 2007-09-26 Vincent Celier <celier@adacore.com>
7181 * makegpr.adb (Link_Executables): Do not fail when the root project has
7182 no sources, but is an extending project.
7184 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
7186 * trans.c: Fix misplaced #define.
7188 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7190 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7191 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7193 2007-09-21 Olivier Hainque <hainque@adacore.com>
7195 * utils.c (type_for_nonaliased_component_p): Return false for
7196 all AGGREGATE_TYPEs.
7198 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
7200 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7201 object covered by 13.3(19) volatile.
7203 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
7207 * utils.c (unchecked_convert): Use a subtype as the intermediate type
7208 in the special VIEW_CONVERT_EXPR case.
7210 2007-09-12 Robert Dewar <dewar@adacore.com>
7212 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7214 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7215 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7216 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7217 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7218 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7219 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7220 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7221 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7222 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7223 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7224 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7225 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7226 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7227 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7228 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7229 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7230 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7231 pragma Compiler_Unit and adds it to relevant library units.
7233 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7235 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7236 a box need not correspond to any component.
7238 2007-09-12 Robert Dewar <dewar@adacore.com>
7240 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7241 the tasking version of the Ada run time when foreign threads are
7242 present and there are no explicit Ada tasks or tasking constructs.
7244 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7246 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7248 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7249 the usage of switch -y.
7251 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7252 when switch -y is present.
7254 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7255 leap seconds in Ada.Calendar and its children.
7257 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7259 * a-extiti.ads (Timer): The discriminant is a "not null access
7260 constant" in the Reference Manual.
7261 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7263 2007-09-12 Robert Dewar <dewar@adacore.com>
7265 * a-swuwha.adb: Remove junk RM header
7267 2007-09-12 Vincent Celier <celier@adacore.com>
7269 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7272 * g-bytswa.ads: Minor reformatting
7274 2007-09-12 Thomas Quinot <quinot@adacore.com>
7276 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7277 Add new constant Thread_Blocking_IO, always True by default, set False
7278 on a per-runtime basis.
7279 (Need_Netdb_Buffer): New constant.
7281 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7283 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7284 Added renames for corresponding functions in System.Partition_Interface.
7286 2007-09-12 Doug Rupp <rupp@adacore.com>
7288 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7291 * s-crtl-vms64.ads: Removed.
7293 2007-09-12 Olivier Hainque <hainque@adacore.com>
7295 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7296 with discriminant constraints, generalize the code for BIT_FIELDs
7297 to PACKED fields of constant size and propagate DECL_PACKED.
7299 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7301 * decl.c (array_type_has_nonaliased_component): New predicate.
7302 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7303 set the TYPE_NONALIASED_COMPONENT flag on the type.
7304 <E_Array_Subtype>: Likewise.
7305 * gigi.h (type_for_nonaliased_component_p): Declare.
7306 * utils.c (type_for_nonaliased_component_p): New predicate.
7307 (create_field_decl): Invoke the above predicate to set the
7308 DECL_NONADDRESSABLE_P flag on the field.
7310 2007-09-11 Javier Miranda <miranda@adacore.com>
7312 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7313 in library level record type entities if we are generating statically
7314 allocated dispatch tables.
7316 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7317 importing/exporting the _tag declaration by new code
7318 importing/exporting the dispatch table wrapper. This change allows us
7319 to statically allocate of the TSD.
7320 (Make_DT.Export_DT): New procedure.
7321 (Build_Static_DT): New function.
7322 (Has_DT): New function.
7324 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7325 True_Constant and Current_Value. Required to statically
7326 allocate the dispatch tables.
7327 (Check_Allocator): Make function iterative instead of recursive.
7328 Also return inner allocator node, when present, so that we do not have
7329 to look for that node again in the caller.
7331 2007-09-11 Jan Hubicka <jh@suse.cz>
7333 * misc.c (gnat_expand_body): Kill.
7334 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7336 2007-09-10 Robert Dewar <dewar@adacore.com>
7338 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7339 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7340 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7341 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7342 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7343 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7344 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7345 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7346 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7347 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7348 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7349 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7350 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7351 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7352 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7353 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7354 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7355 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7356 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7357 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7358 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7359 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7360 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7361 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7362 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7363 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7364 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7365 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7366 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7367 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7368 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7369 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7370 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7371 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7372 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7373 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7374 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7375 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7376 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7377 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7378 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7379 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7380 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7381 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7382 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7383 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7384 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7385 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7386 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7387 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7388 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7389 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7390 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7391 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7392 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7393 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7394 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7395 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7396 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7397 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7398 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7399 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7400 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7401 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7402 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7403 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7404 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7405 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7406 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7407 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7408 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7409 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7410 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7411 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7412 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7413 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7414 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7415 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7416 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7417 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7418 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7419 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7420 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7422 2007-09-10 Emmanuel Briot <briot@adacore.com>
7424 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7427 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
7429 * adaint.c (__gnat_translate_vms): new function.
7431 2007-09-10 Gary Dismukes <dismukes@adacore.com>
7432 Thomas Quinot <quinot@adacore.com>
7434 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7435 create an abstract subprogram in the case of 'Input. For 'Output we now
7436 create a real spec/body when the type is abstract, since it can
7437 potentially be called.
7438 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7439 body for 'Output when the type is abstract (only the creation of the
7440 body for 'Input is excluded when the type is abstract).
7441 (Stream_Operation_OK): Add an additional condition in the return
7442 statement, so that False will be returned for TTS_Stream_Input if the
7443 associated tagged type is an abstract extension. Add comments for
7445 (Expand_N_Object_Declaration): For the case of a shared passive
7446 variable, insert init proc call only after the shared variable
7447 procedures have been processed, because the IP call needs to undergo
7448 shared passive variable reference expansion, which requires these
7449 procedures to be available (and elaborated).
7451 2007-09-10 Vincent Celier <celier@adacore.com>
7453 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7454 parameter Runtime_Project.
7456 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7458 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7459 given a box association, the type of the component is discriminated,
7460 and the value of the discriminant is the discriminant of the enclosing
7461 type, retrieve its value from the aggregate itself, where it must have
7464 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7465 to remove other spurious ambiguities on arithmetic operations involving
7466 literals and addresses, on systems where Address is a visible integer
7467 type, when the operator is called in functional notation.
7468 (Try_Primitive_Operation): Within an instance, a call in prefixed form
7469 is legal when the types match, even if the operation is currently
7472 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7474 * sem_ch12.adb (Build_Local_Package): A formal package with no
7475 associations is legal if all formals have defaults. It is not
7476 equivalent to a formal declared with a box.
7478 2007-09-10 Sergey Rybin <rybin@adacore.com>
7480 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7482 2007-09-10 Sergey Rybin <rybin@adacore.com>
7484 * gnat_ugn.texi: Add description of the new '-lratio' option
7485 Update 7.3.1 section about availability of the feature.
7487 2007-09-10 Thomas Quinot <quinot@adacore.com>
7489 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7492 2007-09-10 Olivier Hainque <hainque@adacore.com>
7494 * Makefile.in: (mips-irix section): Activate build of libgmem.
7496 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7498 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7501 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7503 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7504 a debug renaming declaration specially.
7506 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7508 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7509 which a constant renaming is treated as a normal object declaration.
7510 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7511 the N_Indexed_Component case.
7512 <N_Indexed_Component>: Fall through to above case.
7513 <N_Object_Renaming_Declaration>: Return true for all composite types.
7515 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7517 * decl.c (make_packable_type): If the new type has been given BLKmode,
7518 try again to get an integral mode for it.
7520 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
7522 Re-apply accidentally reverted change:
7524 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7526 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7527 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7528 and _Unwind_SWord with _sleb128_t.
7530 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7532 * trans.c (convert_with_check): Update call to real_2expN.
7534 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
7536 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7537 * utils.c (end_subprog_body): Likewise.
7539 2007-09-03 Nick Clifton <nickc@redhat.com>
7541 * Make-lang.in: Change copyright header to refer to version 3 of
7542 the GNU General Public License and to point readers at the
7543 COPYING3 file and the FSF's license web page.
7544 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7545 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7546 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7547 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7550 2007-08-31 Vincent Celier <celier@adacore.com>
7554 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
7555 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7556 (Check_Version_And_Help): New procedure in package Switch to process
7557 switches --version and --help.
7558 Use Check_Version_And_Help in GNAT tools
7561 (Compile_Sources): Make sure that sources that are "excluded" are not
7563 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7564 project file is used.
7565 (Version_Switch): Remove, moved to Switch
7566 (Help_Switch): Remove, moved to Switch
7567 (Display_Version): Remove, moved to Switch
7569 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7570 package Switch to process switches --version and --help.
7571 (Display_Version): New procedure
7573 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7575 2007-08-31 Javier Miranda <miranda@adacore.com>
7577 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7580 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7582 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7583 (Mark_Non_Null): If the node for which we just generated an access check
7584 is a reference to an *in* parameter and the reference appears in the
7585 declarative part of a subprogram body, mark the node as known non null.
7587 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7589 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7590 structure of E_Exception to reflect the new flag.
7591 (Is_Raised, Set_Is_Raised): New inlined routines.
7592 Update the usage of available flag to reflect the addition of Is_Raised.
7593 (Is_Raised, Set_Is_Raised): Bodies of new routines.
7594 (Write_Entity_Flags): Write the status of flag Is_Raised.
7595 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7596 spurious ambiguities when integer literals appear in the context of an
7597 address type that is a visible integer type.
7599 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7600 exceptions never being raised.
7601 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7604 2007-08-31 Javier Miranda <miranda@adacore.com>
7606 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7607 statement when compiling under restriction No_Exceptions_Proparation.
7609 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7611 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7612 initialization aggregate for the type, generate itype references for
7613 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7615 2007-08-31 Gary Dismukes <dismukes@adacore.com>
7617 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7618 library-level package renaming, pass the declaration associated with
7619 the renaming's special debug variable to Qualify_Entity_Names to ensure
7620 that its encoded name is properly qualified.
7622 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7623 occurring in the list of entities to qualify, and do not attempt to
7624 traverse an entity list in that case. Variables associated with
7625 ` library-level package renamings can now occur in the table.
7627 * exp_dbug.ads: Revise documentation of the encoding for renaming
7630 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7632 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7633 access type points to an unconstrained array.
7635 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7637 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7640 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7641 simple redundant qualifications. The check is performed whenever the
7642 expression is a non-overloaded identifier.
7643 (Resolve_Type_Conversion): Enchance the redundant type conversion check
7644 to include loop parameters.
7645 (Valid_Conversion): Avoid generation of spurious error message.
7647 2007-08-31 Bob Duff <duff@adacore.com>
7649 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7650 concatenations of string literals into a single literal, in order to
7651 avoid very deep recursion in the front end, which was causing stack
7654 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7655 string, and the right operand is a string literal (the case of "" &
7656 "..."), optimize by avoiding copying the right operand -- just use the
7657 value of the right operand directly.
7659 * stringt.adb (Store_String_Chars): Optimize by growing the
7660 String_Chars table all at once, rather than appending characters one by
7662 (Write_String_Table_Entry): If the string to be printed is very long,
7663 just print the first few characters, followed by the length. Otherwise,
7664 doing "pn(n)" in the debugger can take an extremely long time.
7666 * sem_prag.adb (Process_Interface_Name): Replace loop doing
7667 Store_String_Char with Store_String_Chars.
7669 2007-08-31 Vincent Celier <celier@adacore.com>
7671 * prj-attr.adb: Add new attribute Excluded_Source_Files
7673 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7674 Locally_Removed_Files.
7676 * snames.ads, snames.adb: New standard name Excluded_Source_Files
7678 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7680 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7681 clauses of subunits, ignore limited_with_clauses that are illegal and
7682 have not been fully analyzed.
7684 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7686 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7687 flag, for effiency. It is called when analyzing arithmetic operators
7688 and also for actuals in calls that are universal_integers. The flag is
7689 set for the predefined type address, and for any type or subtype
7692 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7693 Universal_Integer, when the formal is a descendent of address and the
7694 call appears in user code.
7695 (Analyze_Selected_Component): if the prefix is a private extension, the
7696 tag component is visible.
7698 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7701 2007-08-31 Robert Dewar <dewar@adacore.com>
7703 * s-fileio.adb (Open): Normalize file name to lower case in non-case
7704 sensitive file name systems to avoid unexpected mismatch in Vista.
7706 2007-08-31 Vincent Celier <celier@adacore.com>
7708 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7710 2007-08-31 Vincent Celier <celier@adacore.com>
7712 * symbols-vms.adb (Initialize): Read symbol files with continuation
7714 (Finalize): If symbol is long, split the line
7716 2007-08-31 Vincent Celier <celier@adacore.com>
7718 * fmap.ads: Minor comment updates
7720 2007-08-31 GNAT Script <nobody@adacore.com>
7722 * Make-lang.in: Makefile automatically updated
7724 2007-08-31 Bob Duff <duff@adacore.com>
7726 * sinfo.ads: Minor comment fix.
7728 2007-08-31 Thomas Quinot <quinot@adacore.com>
7730 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7731 with implementation.
7732 Documentation cleanup only.
7734 2007-08-31 Sergey Rybin <rybin@adacore.com>
7736 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7737 gnatpp '--separate-stmt-name' option.
7738 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7741 * gnat_ugn.texi: Add description for the new gnatpp
7742 '--separate-stmt-name' and '--use-on-new-line' options.
7744 2007-08-31 Ben Elliston <bje@au.ibm.com>
7746 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7747 when compiling for powerpc64-*-linux.
7748 * system-linux-ppc64.ads: New file.
7750 2007-08-22 Krister Walfridsson <cato@df.lth.se>
7752 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7755 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7757 * misc.c (gnat_type_max_size): Constify.
7759 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7761 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7762 associated with Standard_Debug_Renaming_Type, to be used as the type of
7763 the special variables whose names provide debugger encodings for
7764 renaming declarations.
7766 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7767 (Set_Debug_Renaming_Link): Change to set Node25.
7768 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7769 (Write_Field25_Name): Add case for E_Variable to output
7770 "Debug_Renaming_Link".
7771 (Write_Field23_Name): Correct the output string for "Limited_View".
7773 * exp_dbug.adb: Add with and use of Tbuild.
7774 (Debug_Renaming_Declaration): Replace creation of an enumeration type
7775 and literal with creation of a variable of type
7776 Standard_Debug_Renaming_Type whose name encodes both the renamed object
7777 and the entity of the renaming declaration.
7778 (Qualify_Entity_Name): Add the delayed qualification of the entity name
7779 part of the name of a variable that has a Debug_Renaming_Link.
7781 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7782 special type to be associated with variables that provide debugger
7783 encodings for renaming declarations.
7785 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7786 Ed Schonberg <schonberg@adacore.com>
7787 Javier Miranda <miranda@adacore.com>
7789 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7790 ancestor part given by an aggregate to test for an unchecked conversion,
7791 since this can occur in some cases when the ancestor part is a function
7792 call, and we don't want to fall into the recursive call to this
7793 procedure in that case.
7795 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7796 stream attributes on limited types to account for user-specified
7797 attributes as well as whether Input (resp. Output) becomes available
7798 due to Read (resp. Write) being available for the type. Change Boolean
7799 variable to the more accurate name
7800 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7801 double-"not" predicate at beginning of return statement to more
7802 understandable form.
7804 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7805 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7806 in a block statement and use that as the first statement of the
7807 expanded return rather than incorrectly using the handled sequence as
7808 the first statement.
7810 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7811 operation, generate an explicit freeze node for it rather than
7812 generating extra formals, to ensure that gigi has the proper order of
7813 elaboration for anonymous subtypes in the signature of the subprograms.
7814 (Build_In_Place_Formal): Move assertion to beginning of loop.
7815 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7816 applied to a function call (occurs for some cases of 'Input).
7817 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7818 applied to a function call (occurs for some cases of 'Input).
7820 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7821 2005, generate an extended return statement enclosing the result object
7824 * freeze.adb (Freeze_Record_Type): Extend the current management of
7825 components that are access type with an allocator as default value: add
7826 missing support to the use of qualified expressions of the
7827 allocator (which also cause freezing of the designated type!)
7828 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7829 dispatching operation, since extra formals may be needed by calls to
7830 build-in-place functions (such as stream 'Input).
7832 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7833 formals for 'Constrained and accessibility level in the case of a
7834 predefined dispatching operation.
7836 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7837 point, no need to find the parent node.
7839 2007-08-16 Javier Miranda <miranda@adacore.com>
7841 * exp_attr.adb (Attribute_Priority): Add missing support for entries
7844 2007-08-16 Javier Miranda <miranda@adacore.com>
7846 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7847 is not really required and can introduce regression with the debugger.
7848 The original problem is fixed with the patch written for checks.adb.
7850 2007-08-16 Thomas Quinot <quinot@adacore.com>
7852 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7853 Range_Check on Allocated_Table.
7855 2007-08-16 Vincent Celier <celier@adacore.com>
7857 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7858 Including_Non_Switch set to False.
7859 (Gnatmake): For the compiler, call Test_If_Relative_Path with
7860 Including_Non_Switch set to False.
7862 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7863 parameter Including_Non_Switch, defaulted to True. When
7864 Including_Non_Switch is False, options that are not switches and
7865 appear as relative path are not converted to absolute paths.
7867 2007-08-16 Nicolas Roche <roche@adacore.com>
7869 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7872 * Make-lang.in: Update dependencies
7874 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7876 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7877 currently inspected is a selected component, retrieve the entity of
7879 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7880 from the immediate ancestor of Main_Unit_Entity.
7881 (Install_Limited_Withed_Unit): Do not install the limited view of
7882 package P if P is reachable through an ancestor chain from package C
7883 and C also has a with clause for P in its body.
7884 (Has_Limited_With_Clause): New routine.
7885 (Has_With_Clause): New routine.
7887 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7889 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7890 generic for an enclosing instance is a global reference, even though
7891 its scope is the enclosing instance.
7893 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7894 Javier Miranda <miranda@adacore.com>
7896 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7897 initialize a limited object.
7898 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7900 Make sure Has_Complex_Representation is inherited by derived type.
7902 2007-08-16 Robert Dewar <dewar@adacore.com>
7904 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7907 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7909 * sem_disp.adb (Check_Dispatching_Operation): If the operation
7910 implements an operation inherited from a progenitor interface, verify
7911 that they are subtype-conformant.
7913 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7914 Bob Duff <duff@adacore.com>
7915 Nicolas Setton <setton@adacore.com>
7917 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7918 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7919 the statement which is being resolved comes from a predefined library
7920 unit, all non-predefined library interpretations are skipped.
7921 (Resolve_Op_Concat): If string concatenation was folded in the parser,
7922 but the "&" is user defined, give an error, because the folding would
7925 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7926 the parser has folded a long sequence of concatenations of string
7929 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7930 and "JMP_BUF" variables as artificial.
7931 (N_String_Literal): Do not use alloca for very long string literals. Use
7932 xmalloc/free instead. Otherwise the stack might overflow.
7934 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7937 2007-08-16 Vincent Celier <celier@adacore.com>
7939 * vms_conv.adb (Process_Argument): Ensure that project related options
7940 are not put in the -cargs section when using GNAT COMPILE.
7942 2007-08-16 Robert Dewar <dewar@adacore.com>
7944 * gnat_ugn.texi: Add note on preprocessing (output file not written)
7946 2007-08-16 Thomas Quinot <quinot@adacore.com>
7948 * a-tags.adb: Minor reformatting.
7950 2007-08-16 Bob Duff <duff@adacore.com>
7952 * sem_type.ads, sem_ch4.adb: Minor reformatting.
7954 2007-08-14 Thomas Quinot <quinot@adacore.com>
7956 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
7957 s-osinte-interix.ads, system-interix.ads: Removed.
7959 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7961 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7962 calls to Check_Within_Time_Bounds.
7963 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7964 (Difference): Account for possible rounding of the resulting difference
7966 2007-08-14 Robert Dewar <dewar@adacore.com>
7968 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7969 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7970 s-osinte-solaris.adb, s-osinte-solaris.ads,
7971 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7973 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7974 switch -gnatyS. Enable -gnatyS in GNAT style check mode
7976 2007-08-14 Robert Dewar <dewar@adacore.com>
7977 Ed Schonberg <schonberg@adacore.com>
7979 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
7980 Suppress unmodified in-out parameter warning in some cases
7981 This patch is a also fairly significant change to the way suppressible
7984 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7985 needed for access to concurrent record types generated by the expander.
7986 (Generate_Range_Check): When generating a temporary to capture the
7987 value of a conversion that requires a range check, set the type of the
7988 temporary before rewriting the node, so that the type is always
7989 properly placed for back-end use.
7990 (Apply_Float_Conversion_Check): Handle case where the conversion is
7992 (Get_Discriminal): Code reformatting. Climb the scope stack looking
7993 for a protected type in order to examine its discriminants.
7995 2007-08-14 Robert Dewar <dewar@adacore.com>
7996 Gary Dismukes <dismukes@adacore.com>
7997 Ed Schonberg <schonberg@adacore.com>
7998 Thomas Quinot <quinot@adacore.com>
8000 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8001 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8002 tests optimized out.
8004 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8005 (Get_Allocator_Final_List): For the case of an anonymous access type
8006 that has a specified Associated_Final_Chain, do not go up to the
8008 (Expand_N_Type_Conversion): Test for the case of renamings of access
8009 parameters when deciding whether to apply a run-time accessibility
8011 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8012 aggregate code before allocator, and ahead of declaration for
8013 temporary, to prevent access before elaboration when the allocator is
8014 an actual for an access parameter.
8015 (Expand_N_Type_Conversion): On an access type conversion involving an
8016 access parameter, do not apply an accessibility check when the
8017 operand's original node was an attribute other than 'Access. We now
8018 create access conversions for the expansion of 'Unchecked_Access and
8019 'Unrestricted_Access in certain cases and clearly accessibility should
8020 not be checked for those.
8022 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8023 includes a type conversion of a packed component that has been expanded,
8024 recover the original expression for the object, and use this expression
8025 in the post-call assignment statement, so that the assignment is made
8026 to the object and not to a back-end temporary.
8027 (Freeze_Subprogram): In case of primitives of tagged types not defined
8028 at the library level force generation of code to register the primitive
8029 in the dispatch table. In addition some code reorganization has been
8030 done to leave the implementation clear.
8031 (Expand_Call): When expanding an inherited implicit conversion,
8032 preserve the type of the inherited function after the intrinsic
8033 operation has been expanded.
8035 * exp_ch2.ads, exp_ch2.adb
8036 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8037 of an entry formal appearing in an assignment statement does not assign
8039 (Expand_Current_Value): Instead of calling a routine to determine
8040 whether the prefix of an attribute reference should be optimized or
8041 not, prevent the optimization of such prefixes all together.
8043 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8044 component whose prefix is known to be of an access type is an implicit
8045 dereference and does not assign to the prefix.
8047 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8048 Robert Dewar <dewar@adacore.com>
8050 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8051 itype is visited, make an entry into table to link associated node and
8053 Add comments and correct harmless error in Build_NCT_Hash_Tables
8054 (Array_Aggr_Subtype): Associate each itype created for an index type to
8055 the corresponding range construct, and not to the aggregate itself. to
8056 maintain a one-to-one correspondence between itype and its associated
8057 node, to prevent errors when complex expression is copied.
8058 Fix mishandling of multiple levels of parens
8060 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8061 treatment of limited views uniform for all visible declarations in a
8062 limited_withed package.
8063 (New_Copy_Tree): If hash table is being used and itype is visited,
8064 make an entry into table to link associated node and new itype.
8065 (Resolve_Record_Aggregate): Do not add an others box association for a
8066 discriminated record component that has only discriminants, when there
8067 is a box association for the component itself.
8069 * par-ch4.adb: Fix mishandling of multiple levels of parens
8071 2007-08-14 Robert Dewar <dewar@adacore.com>
8073 * comperr.adb: Fix problem with suppressing warning messages from gigi
8075 * erroutc.ads, erroutc.adb, errout.ads,
8076 errout.adb (Write_Eol): Remove trailing spaces before writing the line
8077 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8078 possible trailing spaces.
8079 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8080 Fix problem with suppressing warning messages from back end
8081 Improve handling of deleted warnings
8084 Fix problem with suppressing warning messages from back end
8085 Handle setting of Static_Dispatch_Tables flag.
8088 Fix problem with suppressing warning messages from back end
8090 * exp_intr.adb: Improve handling of deleted warnings
8092 2007-08-14 Robert Dewar <dewar@adacore.com>
8094 * debug.adb: Improve -gnatdI to cover all cases of serialization
8095 Add documentation of dZ, d.t
8097 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8099 (Sprint_Node_Actual): Generate new output associated with implicit
8100 importation and implicit exportation of object declarations.
8102 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8103 Robert Dewar <dewar@adacore.com>
8104 Javier Miranda <miranda@adacore.com>
8105 Gary Dismukes <dismukes@adacore.com>
8107 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8108 to make treatment of limited views uniform for all visible declarations
8109 in a limited_withed package.
8110 Improve warnings for in out parameters
8111 (Set_Related_Interaface/Related_Interface): Allow the use of this
8112 attribute with constants.
8113 (Write_Field26_Name): Handle attribute Related_Interface in constants.
8114 Warn on duplicate pragma Preelaborable_Initialialization
8116 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8117 generation of a freezing node to ensure proper management of null
8118 excluding access types in the backend.
8119 (Create_Extra_Formals): Test base type of the formal when checking for
8120 the need to add an extra accessibility-level formal. Pass the entity E
8121 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8122 originally being done in a couple of cases), to ensure that the
8123 Extra_Formals list gets set on the entity E when the first entity is
8125 (Conforming_Types): Add missing calls to Base_Type to the code that
8126 handles anonymous access types. This is required to handle the
8127 general case because Process_Formals builds internal subtype entities
8128 to handle null-excluding access types.
8129 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8130 functions that need it, even when not marked Requires_Overriding.
8131 Improve warnings for in out parameters
8132 (Analyze_Function_Return): Warn for disallowed null return
8133 Warn on return from procedure with unset out parameter
8134 Ensure consistent use of # in error messages
8135 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8136 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8137 the implicit conversion of the expression done for anonymous access
8138 types. This is required to generate the code of the null excluding
8139 check (if required).
8141 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8142 A formal parameter is never publicly referenceable outside of its body.
8143 (Check_References): For an unreferenced formal parameter in an accept
8144 statement, use the same warning circuitry as for subprogram formal
8146 (Warn_On_Unreferenced_Entity): New subprogram, taken from
8147 Output_Unreferenced_Messages, containing the part of that routine that
8148 is now reused for entry formals as described above.
8149 (Goto_Spec_Entity): New function
8150 (Check_References): Do not give IN OUT warning for dispatching operation
8151 Improve warnings for in out parameters
8152 (Test_Ref): Check that the entity is not undefinite before calling
8153 Scope_Within, in order to avoid infinite loops.
8154 Warn on return from procedure with unset out parameter
8155 Improved warnings for unused variables
8157 2007-08-14 Robert Dewar <dewar@adacore.com>
8158 Javier Miranda <miranda@adacore.com>
8159 Gary Dismukes <dismukes@adacore.com>
8161 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8162 (Expand_N_Attribute_Reference): Further unify the handling of the
8163 three forms of access attributes, using common code now for all three
8164 cases. Add a test for the case of applying an access attribute to
8165 an explicit dereference when the context is an access-to-interface
8166 type. In that case we need to apply the conversion to the prefix
8167 of the explicit dereference rather than the prefix of the attribute.
8168 (Attribute_Version, UET_Address): Set entity as internal to ensure
8169 proper dg output of implicit importation.
8170 (Expand_Access_To_Type): Removed.
8171 (Expand_N_Attribute_Reference): Merge the code from the three cases
8172 of access attributes, since the processing is largely identical for
8173 these cases. The substantive fix here is to process the case of a
8174 type name prefix (current instance case) before handling the case
8175 of interface prefixes.
8177 2007-08-14 Thomas Quinot <quinot@adacore.com>
8178 Ed Schonberg <schonberg@adacore.com>
8179 Javier Miranda <miranda@adacore.com>
8180 Robert Dewar <dewar@adacore.com>
8182 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8183 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8184 type that is an anonymous access to controlled object, establish
8185 an associated finalization chain to avoid corrupting the global
8186 finalization list when a dynamically allocated object designated
8187 by such a component is deallocated.
8188 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8189 functions that need it, even when not marked Requires_Overriding.
8190 (Initialize_Tag): Replace call to has_discriminants by call to
8191 Is_Variable_Size_Record in the circuitry that handles the
8192 initialization of secondary tags.
8193 (Is_Variable_Size_Record): New implementation.
8194 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8195 Suppress_Initialization pragma for a derived type.
8196 (Is_Variable_Size_Record): New subprogram.
8197 (Build_Offset_To_Top_Functions): New implementation that simplifies the
8198 initial version of this routine and also fixes problems causing
8199 incomplete initialization of the table of interfaces.
8200 (Build_Init_Procedure): Improve the generation of code to initialize the
8201 the tag components of secondary dispatch tables.
8202 (Init_Secondary_Tags): New implementation that simplifies the previous
8203 version of this routine.
8204 (Make_DT): Add parameter to indicate when type has been frozen by an
8205 object declaration, for diagnostic purposes.
8206 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8207 diagnose attemps to freeze a subprogram when some untagged type of its
8208 profile is a private type whose full view has not been analyzed yet.
8209 (Freeze_Array_Type): Generate init proc for packed array if either
8210 Initialize or Normalize_Scalars is set.
8211 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8212 constructing the new profile, copy the null_exclusion indicator for each
8213 parameter, to ensure full conformance of the new body with the spec.
8215 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8216 Create wrappers for constructor functions that need it, even when not
8217 marked Requires_Overriding.
8218 (Covers): Handle properly designated types of anonymous access types,
8219 whose non-limited views are themselves incomplete types.
8220 (Add_Entry): Use an entity to store the abstract operation which hides
8222 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8223 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8224 initialization aggregate.
8225 (Function_Interp_May_Be_Hidden): Rename to
8226 Function_Interp_Has_Abstract_Op.
8227 (Has_Compatible_Type): Remove machinery that skips interpretations if
8228 they are labeled as potentially hidden by an abstract operator.
8229 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8230 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8231 (Write_Overloads): Output the abstract operator if present.
8232 (Add_Entry): Before inserting a new entry into the interpretation table
8233 for a node, determine whether the entry will be disabled by an abstract
8235 (Binary_Op_Interp_May_Be_Hidden): New routine.
8236 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8238 (Function_Interp_May_Be_Hidden): New routine.
8239 (Has_Compatible_Type): Do not consider interpretations hidden by
8240 abstract operators when trying to determine whether two types are
8242 (Has_Hidden_Interp): New routine.
8243 (Set_May_Be_Hidden_Interp): New routine.
8244 (Write_Overloads): Write the status of flag May_Be_Hidden.
8246 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8247 Javier Miranda <miranda@adacore.com>
8249 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8250 types declared in the declarative part of a nested package body or in
8251 the proper body of a stub.
8252 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8253 of the same dispatch table slot to renamed primitives.
8254 (Make_Select_Specific_Data_Table): Handle private types.
8255 (Tagged_Kind): Handle private types.
8256 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8257 output of implicit importation and exportation.
8258 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8259 first formal of the thunk is always associated with the controlling
8260 type. In addition perform the following code cleanup: remove formal
8261 Thunk_Alias which is no longer required, cleanup evaluation of the
8262 the controlling type, and update the documentation.
8263 Replace occurrence of Default_Prim_Op_Count by
8264 Max_Predef_Prims. Addition of compile-time check to verify
8265 that the value of Max_Predef_Prims is correct.
8266 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8267 (Make_DT): Add parameter to indicate when type has been frozen by an
8268 object declaration, for diagnostic purposes.
8269 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8270 construction of statically allocated dispatch tables.
8271 (Make_DT): In case of library-level tagged types export the declaration
8272 of the primary tag. Remove generation of tags (now done by Make_Tags).
8273 Additional modifications to handle non-static generation of dispatch
8274 tables. Take care of building tables for asynchronous interface types
8275 (Make_Tags): New subprogram that generates the entities associated with
8276 the primary and secondary tags of Typ and fills the contents of Access_
8277 Disp_Table. In case of library-level tagged types imports the forward
8278 declaration of the primary tag that will be declared later by Make_DT.
8279 (Expand_Interface_Conversion): In case of access types to interfaces
8280 replace an itype declaration by an explicit type declaration to avoid
8281 problems associated with the scope of such itype in transient blocks.
8283 2007-08-14 Robert Dewar <dewar@adacore.com>
8284 Ed Schonberg <schonberg@adacore.com>
8285 Javier Miranda <miranda@adacore.com>
8287 * exp_util.ads, exp_util.adb:
8288 This patch replaces a number of occurrences of explicit tests for N_Null
8289 with calls to Known_Null. This improves tracking of null values, since
8290 Known_Null also catches null constants, and variables currently known to
8291 be null, so we get better tracking.
8292 (Ensure_Defined): create an itype reference only in the scope of the
8294 (Side_Effect_Free): A selected component of an access type that
8295 denotes a component with a rep clause must be treated as not
8296 side-effect free, because if it is part of a linked structure its
8297 value may be affected by a renaming.
8298 (Expand_Subtype_From_Expr): For limited objects initialized with build
8299 in place function calls, do nothing; otherwise we prematurely introduce
8300 an N_Reference node in the expression initializing the object, which
8301 breaks the circuitry that detects and adds the additional arguments to
8302 the called function. Bug found working in the new patch for statically
8303 allocated dispatch tables.
8304 (Is_Library_Level_Tagged_Type): New subprogram.
8305 (Remove_Side_Effects): If the expression of an elementary type is an
8306 operator treat as a function call.
8307 (Make_Literal_Range): If the index type of the array is not integer, use
8308 attributes properly to compute the constraint on the resulting aggregate
8311 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8312 class-wide type whose base type is an incomplete private type, leave
8313 class-wide type unfrozen so that freeze nodes can be generated
8314 properly at a later point.
8315 (Freeze_Entity, array case): Handle case of pragma Pack and component
8316 size attributre clause for same array.
8318 2007-08-14 Vincent Celier <celier@adacore.com>
8320 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8322 Allow all valid declarations in configuration project files
8323 (Reset): Initialize all tables and hash tables in the project tree data
8324 Major update of the Project Manager and of the project aware tools,
8325 including gprmake, so that the same sources in the GNAT repository
8326 can be used by gprbuild.
8327 (Slash_Id): Change type to be Path_Name_Type
8328 (Slash): Return a Path_Name_Type instead of a File_Name_Type
8330 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8332 Update Project Manager to new attribute names for ghprbuild
8333 Allow all valid declarations in configuration project files
8334 Major update of the Project Manager and of the project aware tools,
8335 including gprmake, so that the same sources in the GNAT repository
8336 can be used by gprbuild.
8339 Major update of the Project Manager and of the project aware tools,
8340 including gprmake, so that the same sources in the GNAT repository
8341 can be used by gprbuild.
8343 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8344 insensitive flag for attributes with optional index.
8345 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8346 array attribute, put the index in lower case.
8347 Update Project Manager to new attribute names for ghprbuild
8348 Allow all valid declarations in configuration project files
8349 Major update of the Project Manager and of the project aware tools,
8350 including gprmake, so that the same sources in the GNAT repository
8351 can be used by gprbuild.
8353 * prj-env.ads, prj-env.adb:
8354 Major update of the Project Manager and of the project aware tools,
8355 including gprmake, so that the same sources in the GNAT repository
8356 can be used by gprbuild.
8357 (Get_Reference): Change type of parameter Path to Path_Name_Type
8359 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8360 removing '-' from the path to start with the first character of the
8362 Major update of the Project Manager and of the project aware tools,
8363 including gprmake, so that the same sources in the GNAT repository
8364 can be used by gprbuild.
8365 Major update of the Project Manager and of the project aware tools,
8366 including gprmake, so that the same sources in the GNAT repository
8367 can be used by gprbuild.
8369 * prj-nmsc.ads, prj-nmsc.adb:
8370 Update Project Manager to new attribute names for ghprbuild
8371 Allow all valid declarations in configuration project files
8372 (Search_Directories): Detect subunits that are specified with an
8373 attribute Body in package Naming. Do not replace a source/unit in the
8374 same project when the order of the source dirs are known. Detect
8375 duplicate sources/units in the same project when the order of the
8376 source dirs are not known.
8377 (Check_Ada_Name): Allow all identifiers that are not reserved words
8379 Major update of the Project Manager and of the project aware tools,
8380 including gprmake, so that the same sources in the GNAT repository
8381 can be used by gprbuild.
8382 (Look_For_Sources): If the list of sources is empty, set the object
8383 directory of non extending project to nil.
8384 Change type of path name variables to be Path_Name_Type
8385 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8386 otherwise creating missing directories will fail.
8388 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
8389 prj-part.ads, prj-part.adb:
8390 Major update of the Project Manager and of the project aware tools,
8391 including gprmake, so that the same sources in the GNAT repository
8392 can be used by gprbuild.
8394 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8395 insensitive flag for attributes with optional index.
8396 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8397 array attribute, put the index in lower case.
8398 (Parse_Variable_Reference): Allow the current project name to be used in
8399 the prefix of an attribute reference.
8401 * prj-util.ads, prj-util.adb
8402 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8403 defaulted to False. When True, always check against indexes in lower
8406 * snames.ads, snames.h, snames.adb:
8407 Update Project Manager to new attribute names for gprbuild
8408 Allow all valid declarations in configuration project files
8410 2007-08-14 Robert Dewar <dewar@adacore.com>
8411 Ed Schonberg <schonberg@adacore.com>
8413 * opt.ads: Warning for non-local exception propagation now off by
8415 New switch -gnatI to disable representation clauses
8416 Implement new pragma Implicit_Packing
8419 Warning for non-local exception propagation now off by default
8420 Add warning for unchecked conversion of pointers wi different
8422 New switch -gnatI to disable representation clauses
8424 * usage.adb: new switch -gnatyS
8426 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8427 note that aggregates of anonymous array types are not flagged.
8428 -gnatwc now includes membership tests optimized away
8429 -gnatw.x warnings are now off by default
8430 Added conditional compilation Appendix
8431 Add documentation of -gnatI
8432 Add documentation for new -gnatyS style check
8433 Update documentation about SAL and auto-init on Windows.
8436 Add documentation for pragma Check_Name and 'Enabled attribute
8437 Document that Eliminate on dispatching operation is ignored
8438 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8439 Document pragma Main
8440 Document pragma Implicit_Packing
8442 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8443 different conventions
8444 New switch -gnatI to disable representation clauses
8446 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8447 recognized, report the invalid characters including "-gnat" instead of
8448 just the first character in the switch.
8449 New switch -gnatI to disable representation clauses
8450 Set Warn_On_Object_Renames_Function true for -gnatg
8452 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8453 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8454 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8455 to switch -aP (add directory to project search dir).
8457 * par-prag.adb: Implement new pragma Implicit_Packing
8459 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8460 type as having a non-standard representation, to force expansion on
8461 conversion to related types.
8462 (Analyze_Pragma): Warn on misspelled pragma
8463 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8464 Ensure consistent use of # in error messages
8465 Implement pragma Implicit_Packing
8467 2007-08-14 Olivier Hainque <hainque@adacore.com>
8468 Eric Botcazou <ebotcazou@adacore.com>
8470 * targtyps.c (get_target_maximum_default_alignment): New function.
8472 that the compiler might choose by default for a type or object.
8473 (get_target_default_allocator_alignment): New function. Alignment known
8474 to be honored by the target default allocator.
8475 (get_target_maximum_allowed_alignment): New function. Maximum alignment
8476 we might accept for any type or object on the target.
8477 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8479 * gigi.h (get_target_maximum_default_alignment): Declare new function.
8480 (get_target_default_allocator_alignment): Likewise.
8481 (get_target_maximum_allowed_alignment): Likewise.
8484 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8485 result of a function call, first try to use a stabilized reference for
8486 a constant renaming too.
8487 (validate_alignment): Use target_maximum_allowed_alignment instead of
8488 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8489 (gnat_to_gnu_entity): Use common nodes directly.
8490 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8491 alignment and size for the object.
8492 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8493 and N_Procedure_Call_Statement.
8494 (takes_address): Rename to lvalue_required_p, add third parameter
8495 'aliased' and adjust recursive calls.
8496 <N_Indexed_Component>: Update 'aliased' from the array type.
8497 <N_Selected_Component>: New case.
8498 <N_Object_Renaming_Declaration>: New Likewise.
8499 (Identifier_to_gnu): Adjust for above changes.
8500 (maybe_stabilize_reference) <CONST_DECL>: New case.
8502 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8503 between type variants.
8504 (build_simple_component_ref): Likewise.
8505 (build_call_alloc_dealloc): Use target_default_allocator_alignment
8506 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8507 aligning type circuitry for allocations from the default storage pool.
8508 (build_allocator): Likewise.
8509 (build_simple_component_ref): Manually fold the reference for a
8510 constructor if the record type contains a template.
8512 * utils.c (value_zerop): Delete.
8513 (gnat_init_decl_processing): Emit debug info for common types.
8514 (rest_of_record_type_compilation): If a union contains a field
8515 with a non-constant qualifier, treat it as variable-sized.
8516 (finish_record_type): Give the stub TYPE_DECL a name.
8517 (rest_of_record_type_compilation): Likewise.
8518 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
8519 types are equivalent array types.
8520 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8521 even if the type is not passed by reference.
8522 (static_ctors, static_dtors): Delete.
8523 (end_subprog_body): Do not record constructors and destructors.
8524 (build_global_cdtor): Delete.
8525 (gnat_write_global_declarations): Do not call build_global_cdtor.
8527 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8528 -fRTS=rtp is specified.
8529 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8532 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8533 of the personality function with SJLJ exceptions.
8535 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8536 the name of the personality function with SJLJ exceptions.
8538 2007-08-14 Robert Dewar <dewar@adacore.com>
8539 Ed Schonberg <schonberg@adacore.com>
8541 * par.ads, par.adb: Improve handling of extra right parens.
8542 (Par): Remove flag From_Limited_With_Clause.
8544 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8545 Improve handling of extra right parens.
8547 2007-08-14 Robert Dewar <dewar@adacore.com>
8549 * par-tchk.adb (TF_Semicolon): Improve error recovery
8551 2007-08-14 Robert Dewar <dewar@adacore.com>
8552 Ed Schonberg <schonberg@adacore.com>
8554 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8555 enumeration type, mark all literals as referenced.
8556 (Eval_Attribute, case 'Image): If the argument is an enumeration
8557 literal and names are available, constant-fold but mark nevertheless as
8559 Clean up function names.
8560 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8562 (Requires_Simple_Name_Prefix): Removed.
8564 2007-08-14 Robert Dewar <dewar@adacore.com>
8565 Ed Schonberg <schonberg@adacore.com>
8567 * sem_ch11.adb: Improved warnings for unused variables
8569 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8570 is a synchronized interface, the derived type is limited.
8571 (Analyze_Object_Declaration): Mark the potential coextensions in the
8572 definition and expression of an object declaration node.
8573 (Build_Derived_Type): For the completion of a private type declaration
8574 with a derived type declaration, chain the parent type's representation
8575 items to the last representation item of the derived type (not the
8576 first one) if they are not present already.
8577 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8578 object declaration of forward references to tags.
8579 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8580 subprogram types can appear as access discriminants of synchronized
8582 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8583 given in prefixed form as a selected component.
8584 (Process_Discriminants): If not all discriminants have defaults, place
8585 error message on a default that is present.
8586 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8587 extend a synchronized tagged type.
8588 Improved warnings for unused variables
8589 (Is_Visible_Component): Fix a visibility hole on a component inherited
8590 by a private extension when parent is itself declared as a private
8591 extension, and the derivation is in a child unit.
8592 (Find_Hidden_Interface): Move spec from the package body.
8594 2007-08-14 Robert Dewar <dewar@adacore.com>
8595 Ed Schonberg <schonberg@adacore.com>
8597 * sem_ch5.adb: Improve warnings on redundant assignments
8599 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8601 (Is_Synchronized_Tagged_Type): New subprogram that returns true
8602 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8603 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8604 is set to False. Improves handling of Known_[Not_]Null.
8605 (Wrong_Type): Special case address arithmetic attempt
8606 (Collect_Abstract_Interfaces): Add new formal to allow collecting
8607 abstract interfaces just using the partial view of private types.
8608 (Has_Abstract_Interfaces): Add new formal to allow checking types
8609 covering interfaces using the partial view of private types.
8610 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8611 component still needs to be defined in this case, but is never
8612 initialized as VMs are using other dispatching mechanisms.
8613 (Abstract_Interface_List): For a protected type, use base type to get
8615 Improve warnings on redundant assignments
8616 (Is_Variable): Handle properly an implicit dereference of a prefixed
8618 (Build_Actual_Subtype): If this is an actual subtype for an
8619 unconstrained formal parameter, use the sloc of the body for the new
8620 declaration, to prevent anomalises in the debugger.
8622 2007-08-14 Robert Dewar <dewar@adacore.com>
8624 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8625 dispatching operation
8627 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8628 Gary Dismukes <dismukes@adacore.com>
8631 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8632 expanded aggregate code before allocator, and ahead of declaration for
8633 temporary, to prevent access before elaboration when the allocator is
8634 an actual for an access parameter.
8635 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8636 the TSD and the table of interfaces.
8637 (Convert_To_Assignments): Augment the test for delaying aggregate
8638 expansion for limited return statements to include the case of extended
8639 returns, to prevent creation of an unwanted transient scope.
8640 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8641 (Expand_Array_Aggregate): Handle aggregates associated with
8642 statically allocated dispatch tables.
8643 (Expand_Record_Aggregate): Handle aggregates associated with
8644 statically allocated dispatch tables.
8645 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8646 of anonymous access type.
8648 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8650 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8651 is a variable that renames a slice, use the variable itself in the
8652 expannsion when the renamed expression itself may be modified between
8653 the declaration of the renaming and the array assignment.
8655 2007-08-14 Jerome Guitton <guitton@adacore.com>
8657 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8658 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8659 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8660 New functions; dummy implementations.
8662 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8663 functions, used to implement the multi-tasks mode routines on VxWorks.
8665 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8667 binding to the VxWorks routines which have changed between VxWorks 5
8669 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8670 which are not callable from a RTP.
8672 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8673 implemented for the multi-tasks mode on VxWorks 5 and 6.
8675 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8677 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8680 2007-08-14 Vincent Celier <celier@adacore.com>
8682 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
8683 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8684 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
8685 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8686 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8687 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8688 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8690 (Major_Id_Name): New function.
8691 mlib-tgt.ads/mlib.tgt.adb:
8692 (Library_Major_Minor_Id_Supported): New function, default returns True
8693 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8694 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8695 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8696 Implementation of Library_Major_Minor_Id_Supported returns False
8698 (Clean_Library_Directory): If major/minor ids are supported, clean all
8700 Major update of the Project Manager and of the project aware tools,
8701 including gprmake, so that the same sources in the GNAT repository
8702 can be used by gprbuild.
8704 2007-08-14 Olivier Hainque <hainque@adacore.com>
8706 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8707 (GCC_ZCX_Support): Switch to True.
8709 * s-intman-solaris.adb (Notify_Exception): Call
8710 Adjust_Context_For_Raise before raising, as expected for signal
8711 handlers in general.
8713 * s-intman-posix.adb (Notify_Exception): Remove declaration of
8714 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8715 to other implementation bodies.
8717 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8718 be visible by multiple implementation bodies.
8720 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8721 only for conditions coming from hardware.
8722 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8723 adjustments to signal context prior to exception raise from signal
8725 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8727 Solaris section: (__gnat_adjust_context_for_raise): New function.
8728 Implementation of the machine context adjustments to perform prior to
8729 raise from a signal handler. Version for both sparc and x86.
8730 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8731 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8732 prior to raising as expected for any handler, before possible nested
8733 faults to make sure all the contexts in a chain have been adjusted by
8734 the time we propagate.
8736 2007-08-14 Pascal Obry <obry@adacore.com>
8738 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8739 (SYSTEM_INFO): New record.
8740 (SetThreadIdealProcessor): New imported routine needed for supporting
8741 task_info pragma on Windows.
8743 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8744 info can be applied to the current host.
8745 (Create_Task): Set the ideal processor if information is present.
8747 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8748 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8750 2007-08-14 Olivier Hainque <hainque@adacore.com>
8752 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8753 stack size and initial stack pointer value for a given task.
8754 (Enter_Task): Get the stack attributes of the task we are entering and
8755 let the stack checking engine know about them.
8757 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8758 Let the stack-checking engine know about the initial sp value and stack
8759 size associated with the current task.
8760 (Set_Stack_Info): If a stack base has been notified for the current
8761 task, honor it. Fallback to the previous less accurate method otherwise.
8763 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8765 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8767 * sem_ch10.adb: Create a limited view of an incomplete type, to make
8768 treatment of limited views uniform for all visible declarations in a
8769 limited_withed package.
8770 Set flag indicating that a subprogram body for a child unit has a
8772 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8773 separate declaration, remove the unit name from visibility after
8774 compilation, so that environment is clean for subsequent compilations.
8775 (Install_Limited_Context_Clauses): Do not install a
8776 limited_private_with_clause unless the current unit is a body or a
8778 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8779 in the same fashion.
8780 (Install_Limited_Withed_Unit): Do not install a limited with clause if
8781 it applies to the declaration of the current package body.
8782 (Remove_Private_With_Clauses): If there is a regular with_clause for
8783 the unit, delete Private_With_Clause from context, to prevent improper
8784 hiding when processing subsequent nested packages and instantiations.
8786 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8788 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8789 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8790 representing absolute path names.
8791 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8793 * cstreams.c (__gnat_full_name for VxWorks): Use
8794 __gnat_is_absolute_path to detect whether we need to add the current
8795 directory to normalize the path.
8797 2007-08-14 Javier Miranda <miranda@adacore.com>
8800 a-tags.adb (Displace): Associate a message with the raised CE
8802 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8803 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8804 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8806 (Default_Prim_Op_Count): Removed.
8807 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8808 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8809 Remove pragma Inline_Always.
8811 * rtsfind.ads (Default_Prim_Op_Count): Removed
8812 (Max_Predef_Prims): New entity
8813 (RE_Expanded_Name): Removed
8814 (RE_HT_Link): Removed
8815 (RE_Iface_Tag): Remmoved
8816 (RE_Ifaces_Table): Removed
8817 (RE_Interfaces_Array): Removed
8818 (RE_Interface_Data_Element): Removed
8819 (RE_Nb_Ifaces): Removed
8820 (RE_RC_Offset): Removed
8821 (RE_Static_Offset_To_Top): Removed
8823 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8825 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8826 Prim_Op_Count by Max_Predef_Prims.
8828 2007-08-14 Thomas Quinot <quinot@adacore.com>
8829 Vincent Celier <celier@adacore.com>
8831 * binde.adb (Elab_All_Links): Remove unnecessary call to
8832 Generic_Separately_Compiled (if a unit satisfies this predicate, there
8833 won't be an associated Afile).
8834 (Elab_All_Links): Fail if a referenced unit cannot be found
8837 Fix comments in bindgen regarding consistency checks done in Bcheck:
8838 the checks are made across units within a partition, not across several
8840 Fix generation of C binder file for VxWorks.
8842 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8843 Generic_May_Lack_ALI, more descriptive of the current use of the
8844 predicate, and update documentation.
8846 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8847 reorganization and documentation update for the case of predefined
8848 library generics (for which we do not reference an Afile).
8850 2007-08-14 Robert Dewar <dewar@adacore.com>
8852 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8853 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8854 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8855 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8856 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8857 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8858 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8859 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8860 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8861 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8862 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8863 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8864 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8865 g-altcon.adb: Minor reformatting
8867 ada-tree.h: Delete empty line.
8869 ali.ads: Minor reformatting
8870 Clarification of comments.
8871 Minor spelling correction
8873 * exp_dbug.adb: Add Warnings Off to suppress new warning
8875 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8878 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8881 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8883 * a-textio.ads: Reorder the standard input/output/error declarations
8886 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8888 * par-ch2.adb: Recognize RM specially in errout
8889 Change 'R'M to RM in all error messages
8891 * scng.adb: Recognize RM specially in errout
8893 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8894 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8896 * s-direio.adb: Add missing routine header box.
8898 * sem_attr.ads: Add ??? comments
8900 * sem_eval.adb: Recognize RM specially in errout
8901 Change 'R'M to RM in all error messages
8903 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8905 * s-tasinf.ads: Fix minor comment typo.
8907 * a-cihama.adb: Minor comment addition
8909 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8912 * s-tasinf-tru64.ads: Fix minor comment typo.
8914 * itypes.ads: Comment update.
8916 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8919 * argv.c: Added protection against null gnat_argv and gnat_envp.
8921 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8922 warning message when Tolerate_Consistency_Errors is True.
8924 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8925 Any_Id, as this subprogram is only applicable to *type* entities (it
8926 sets RM_Size). Instead initialize just Esize and Alignment.
8928 2007-08-14 Bob Duff <duff@adacore.com>
8930 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
8931 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
8932 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
8933 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8934 a-coorse.ads (Next): Applied pragma Inline.
8935 Make all Containers packages Remote_Types (unless they are already
8937 (Previous): applied pragma Inline
8938 (Elements_Type): is now a record instead of an array
8940 2007-08-14 Thomas Quinot <quinot@adacore.com>
8942 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8944 (Set_Item): When the new item is an element of the currently allocated
8945 table passed by reference, save a copy on the stack if we're going
8946 to reallocate. Also, in Table.Set_Item, make sure we test the proper
8947 variable to determine whether to call Set_Last.
8949 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8950 symbols-vms.adb, symbols-processing-vms-alpha.adb,
8951 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8952 some occurrences of the pattern
8954 T.Table (T.Last) := Value;
8955 with a cleaner call to
8958 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8959 Gary Dismukes <dismukes@adacore.com>
8960 Thomas Quinot <quinot@adacore.com>
8962 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8963 derived type with interface progenitors use the analyzed formal as the
8964 parent of the actual, to create renamings for all the inherited
8965 operations in Derive_Subprograms.
8966 (Collect_Previous_Instances): new procedure within of
8967 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8968 unit being loaded, to ensure that the generation of global symbols is
8969 consistent in different compilation modes.
8970 (Is_Tagged_Ancestor): New function testing the ancestor relation that
8971 takes progenitor types into account.
8972 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8973 traversing over the primitives of the formal and actual types to locate
8974 any abstract subprograms of the actual type that correspond to a
8975 nonabstract subprogram of the formal type's ancestor type(s), and issue
8976 an error if such is found.
8977 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8978 Instantiate_Package_Body, Instantiate_Subprogram_Body):
8979 Remove bogus guard around calls to Inherit_Context.
8980 (Reset_Entity): If the entity is the selector of a selected component
8981 that denotes a named number, propagate constant-folding to the generic
8982 template only if the named number is global to the generic unit.
8983 (Set_Instance_Env): Only reset the compilation switches when compiling
8984 a predefined or internal unit.
8986 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8988 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8989 parameter to determine whether operation applies to the prefix.
8990 (Complete_Object_Operation): If actual has an access type and
8991 controlling formal is not an in_parameter, reject the actual if it is
8992 an access_to_constant type.
8993 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8994 type, the candidate operations are found in the scope of declaration of
8995 the type, because the type has no primitive subprograms.
8996 (Analyze_Selected_Component): If prefix is class-wide, and root type is
8997 a private extension, only examine visible components before trying to
8998 analyze as a prefixed call.
8999 Change Entity_List to Type_To_Use, for better readability.
9000 (Has_Fixed_Op): Use base type when checking whether the type of an
9001 operator has a user-defined multiplication/division
9002 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9003 user-defined operators are available for fixed-point types.
9005 2007-08-14 Thomas Quinot <quinot@adacore.com>
9006 Ed Schonberg <schonberg@adacore.com>
9008 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9009 formal At_Any_Place indicating, when True, that we want to test for
9010 availability of the stream attribute at any place (as opposed to the
9011 current visibility context only).
9012 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9013 purpose of enforcing E.2.2(8) only if it is not available at any place.
9014 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9015 when checking the legality of an extension aggregate in a preelaborable
9016 package. Treat the literal null as a valid default expression in a
9017 component declaration for a type with preelaborable initialization.
9018 A limited interface is a legal progenitor for the designated type of a
9019 remote access to class-wide type.
9021 2007-08-14 Thomas Quinot <quinot@adacore.com>
9022 Ed Schonberg <schonberg@adacore.com>
9024 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9025 reference): Use correct entity as denoted entity for the selector of
9027 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9028 setting the Referenced_As_LHS flag for entities that are implicitly
9030 (Find_Type): If the type is an internally generated incomplete type,
9031 mark the full view as referenced, to prevent spurious warnings.
9032 (Find_Selected_Component, Has_Components): Handle properly non-limited
9033 views that are themselves incomplete types.
9034 Handle interfaces visible through limited-with clauses.
9035 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9036 subprogram generic actual for which we have generated a renaming.
9037 Warn when the renaming introduces a homonym of
9038 the renamed entity, and the renamed entity is directly visible.
9040 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9041 Hristian Kirtchev <kirtchev@adacore.com>
9043 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9044 appear in the subtree to the current allocator if it is not a static
9046 (Resolve_Allocator): Perform cleanup if resolution has determined that
9047 the allocator is not a coextension.
9048 (Resolve): Skip an interpretation hidden by an abstract operator only
9049 when the type of the interpretation matches that of the context.
9050 (Resolve): When looping through all possible interpretations of a node,
9051 do not consider those that are hidden by abstract operators.
9052 (Resolve_Actuals): When verifying that an access to class-wide object
9053 is an actual for a controlling formal, ignore anonymous access to
9054 subprograms whose return type is an access to class_wide type.
9055 (Resolve_Slice): If the prefix of the slice is a selected component
9056 whose type depends on discriminants, build its actual subtype before
9057 applying range checks on the bounds of the slice.
9058 (Valid_Conversion): In an instance or inlined body, compare root types,
9059 to prevent anomalies between private and public views.
9060 (Resolve): Improve error message for ambiguous fixed multiplication
9061 expressions that involve universal_fixed multiplying operations.
9063 2007-08-14 Javier Miranda <miranda@adacore.com>
9064 Hristian Kirtchev <kirtchev@adacore.com>
9066 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9067 location to allow the correct generation of errors in case of
9068 restrictions applied to the expanded code.
9069 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9070 function if the condition does not reference them.
9071 (Expand_Entry_Body_Declarations): Mark the index constant as having a
9074 2007-08-14 Thomas Quinot <quinot@adacore.com>
9075 Pablo Oliveira <oliveira@adacore.com>
9077 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9078 typecode parameters for a union (in a variant record), remove
9079 extraneous layer of Any wrapping for member label.
9080 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9081 elabration statements, register the package with the name server
9082 at the beginning, not at the end, of the elaboration statements so
9083 that they can create remote access to subprogram values that designate
9084 remote subprograms from the package.
9086 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9088 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9089 values to compute the number of seconds since the Unix Epoc in order to
9090 account for Daylight Savings Time. Perform special processing for dates
9091 that are earlier than the Unix Epoc to obtain a negative number.
9093 2007-08-14 Emmanuel Briot <briot@adacore.com>
9095 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9098 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
9100 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9101 binder-generated file is not in Ada.
9102 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9103 recorded in the ALI file.
9104 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9106 2007-08-14 Vincent Celier <celier@adacore.com>
9108 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9109 (Output_Source): Do nothing if parameter is No_Sdep_Id
9111 * make.adb (Gnatmake): Do not rebuild an archive simply because a
9112 shared library it imports has a later time stamp.
9113 (Check): Resolve the symbolic links in the path name of the object
9115 Check that the ALI file is in the correct object directory
9116 Check if a file name does not correspond to the mapping of units
9118 (Display_Version): New procedure
9119 (Initialize): Process switches --version and --help
9120 Use type Path_Name_Type for path name
9122 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
9124 * impunit.adb: Re-organize System.Random_Numbers and
9125 GNAT.Random_Numbers and add to builds.
9127 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9129 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9131 * a-assert.ads, a-assert.adb: New files.
9133 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9135 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9136 if AAMP_On_Target is True, then the size of the type encompasses two
9137 addresses (a static link and a subprogram address), except in the case
9138 of library-level access types.
9140 2007-08-14 Vincent Celier <celier@adacore.com>
9142 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9144 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9145 possible trailing spaces.
9146 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9148 2007-08-14 Javier Miranda <miranda@adacore.com>
9150 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9151 null-excluding access types.
9153 2007-08-14 Javier Miranda <miranda@adacore.com>
9155 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9156 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9157 of private types add missing check on matching interfaces in the
9158 partial and full declarations.
9159 (Analyze_Protected_Type): Code cleanup.
9160 (Analyze_Task_Type): Code cleanup.
9162 2007-08-14 Javier Miranda <miranda@adacore.com>
9164 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9165 generated interface thunk.
9167 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9169 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9170 obsolescent warning on application of 'Class to an incomplete type.
9172 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9173 prevent obsolescent warning on application of 'Class to an incomplete
9176 2007-08-14 Pascal Obry <obry@adacore.com>
9178 * s-fileio.adb (Is_Open): Add check for usability of the underlying
9181 2007-08-14 Cyrille Comar <comar@adacore.com>
9183 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9184 since it is potentially used in cases implying double finalization of
9187 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9189 * s-tasini.adb (Get_Stack_Info): Move this function to
9190 System.Soft_Links.Tasking because it is common to the full and the
9191 restricted run times.
9192 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9193 in SSL.Tasking.Init_Tasking_Soft_Links.
9195 * s-solita.adb (Get_Stack_Info): Function moved from
9196 System.Tasking.Initialization because it is common to the full and the
9197 restricted run times.
9198 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9200 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9202 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9203 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9204 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9207 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9210 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9212 * s-veboop.adb (SU): New named number initialized to
9213 System.Storage_Unit.
9214 (True_Val): The initialization expression is revised to use SU (=
9215 Storage_Unit) rather than assuming 8 for the component size of an
9216 unpacked Boolean array.
9218 2007-08-14 Tristan Gingold <gingold@adacore.com>
9220 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9222 * tb-ivms.c: New file.
9224 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9226 2007-08-14 Geert Bosch <bosch@adacore.com>
9228 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9229 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9230 Add required linker pragmas for automatically linking with the gnalasup
9231 linear algebra support library, and the systems math library.
9232 Rename cdot to cdotu and zdot to zdotu.
9233 Update header comment to describe purpose of package.
9235 2007-08-14 Thomas Quinot <quinot@adacore.com>
9237 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9238 an explicitly specified Associated_Final_Chain, use that list.
9239 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9241 (Expand_N_Package_Declaration): Build dispatch tables of library level
9242 tagged types. Minor code cleanup.
9244 2007-08-14 Vincent Celier <celier@adacore.com>
9246 * gnatchop.adb (Terminate_Program): Remove exception and use
9247 Types.Terminate_Program instead.
9249 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9250 (Find_Program_Name): Added protection against empty name.
9251 (OS_Exit_Through_Exception): New procedure
9253 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9254 (OS_Exit_Default): New procedure that contains the previous
9255 implementation of procedure OS_Exit.
9256 (Final_Value): Remove obsolete Interix stuff.
9258 2007-08-14 Thomas Quinot <quinot@adacore.com>
9260 * g-socket.ads: Reorganize example code so that it also works on
9263 2007-08-14 Tristan Gingold <gingold@adacore.com>
9265 * g-trasym.ads: AIX now supports symbolic backtraces.
9267 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9269 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9270 units being loaded to detect circularities. A circularity may be
9271 present even if the current chain of pending units to load starts from
9272 a limited_with_clause.
9274 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9275 rather than a boolean flag, in order to detect circularities in
9278 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9279 than propagating the From_Limited_With flag, in order to handle
9280 properly circularities involving with_clauses.
9282 2007-08-14 Nicolas Setton <setton@adacore.com>
9284 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9287 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9289 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9290 to build for libgnala.
9291 libgnat: Add rules to build libgnala.a
9292 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9293 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9294 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9295 kernel run-time lib for VxWorks 6, which would provide a different
9296 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9297 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9298 running ZCX by default.
9299 Add g-sttsne-locking to LynxOS version.
9300 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9301 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9303 * system-darwin-x86.ads: New file.
9305 * Make-lang.in: Delete files before copying onto them, so if they are
9306 read-only, the copy won't fail.
9309 2007-08-14 Pascal Obry <obry@adacore.com>
9311 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9314 2007-08-14 Vincent Celier <celier@adacore.com>
9316 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9317 (Gcc): Initialize Gcc_Name at the first call
9319 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9321 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9322 with_clauses of the enclosing unit when analyzing the package
9323 specification of a nested instance.
9325 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9327 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9328 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9329 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9330 layout of N_Allocator.
9332 2007-08-14 Thomas Quinot <quinot@adacore.com>
9334 * rtsfind.adb (Check_RPC): Add PCS version check.
9336 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9337 (Gnat_Free_Software): New function.
9339 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9340 the PCS_Version value from s-parint, used to check that it is consistent
9341 with what exp_dist expects.
9343 * s-parint.ads (PCS_Version): New entity for checking consistency
9344 between exp_dist and PCS.
9346 * gen-soccon.c: (SO_REUSEPORT): New constant.
9348 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9350 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9351 variable Sub_Second to Duration in order to accomodate a larger range
9352 of arithmetic operations.
9354 2007-08-14 Bob Duff <duff@adacore.com>
9356 * g-sttsne-locking.ads: Move comments from spec to body.
9357 * g-sttsne-locking.adb: Move comments from spec to body.
9358 * g-sttsne-vxworks.ads: Removed.
9359 * g-sttsne-vxworks.adb: Removed.
9361 2007-08-11 Ian Lance Taylor <iant@google.com>
9363 * misc.c (gnat_get_alias_set): Change return type to
9366 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9368 * decl.c, utils2.c: Fix whitespace in last change.
9370 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9372 * decl.c (compare_field_bitpos): Constify.
9373 * utils2.c (compare_elmt_bitpos): Likewise.
9375 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
9377 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
9378 anonymous access type.
9379 (pthread_sigmask): Now take an access sigset_t.
9381 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9383 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9385 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
9387 PR tree-optimization/25737
9388 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9390 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9392 * trans.c (Attribute_to_gnu): When subtracting an
9393 offset from a pointer, use POINTER_PLUS_EXPR with
9394 NEGATE_EXPR instead of MINUS_EXPR.
9395 (gnat_to_gnu): Likewise.
9396 * utils.c (convert): When converting between
9397 thin pointers, use POINTER_PLUS_EXPR and sizetype
9399 * utils2.c (known_alignment): POINTER_PLUS_EXPR
9400 have the same semantics as PLUS_EXPR for alignment.
9401 (build_binary_op): Add support for the semantics of
9402 POINTER_PLUS_EXPR's operands.
9403 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9405 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
9407 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9408 of get_signed_or_unsigned_type.
9409 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9411 2007-06-11 Bob Duff <duff@adacore.com>
9412 Thomas Quinot <quinot@adacore.com>
9414 * g-stsifd-sockets.adb (Create): Work around strange behavior of
9415 'bind' on windows that causes 'connect' to fail intermittently, by
9416 retrying the 'bind'.
9417 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9419 2007-06-10 Duncan Sands <baldrick@free.fr>
9421 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9422 than to void, for the fields when making a new fat pointer type.
9423 (gnat_substitute_in_type): Now substitute_in_type.
9424 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
9425 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9426 * utils.c (update_pointer_to): Update fat pointers by updating the
9427 dummy node pointers used for the fields.
9429 2007-06-06 Thomas Quinot <quinot@adacore.com>
9430 Bob Duff <duff@adacore.com>
9432 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9433 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9434 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
9435 constant Thread_Blocking_IO, always True by default, set False
9436 on a per-runtime basis.
9437 (Need_Netdb_Buffer): New constant.
9439 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9440 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9443 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9444 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9445 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9446 child package Task_Safe_NetDB
9447 (Host_Error_Messages): Add stub body.
9448 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9450 * g-soccon-mingw.ads: Add Windows-specific constants.
9451 (Need_Netdb_Buffer): New constant.
9452 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9453 wrapper and import inet_addr(3) from the standard sockets library
9455 (In_Addr): Add alignment clause.
9456 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9458 2007-06-06 Robert Dewar <dewar@adacore.com>
9460 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9461 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9462 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9463 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9464 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9465 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9466 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9467 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9468 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9469 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9470 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9471 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9472 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9473 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9474 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9475 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9476 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9477 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9478 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9479 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9480 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9481 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9482 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9483 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9484 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9485 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9486 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9487 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9488 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9489 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9490 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9491 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9492 Unchecked_* by Ada.Unchecked_*
9494 2007-06-06 Robert Dewar <dewar@adacore.com>
9496 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9497 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9498 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9499 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9500 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9501 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9503 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9504 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9505 s-tasloc.adb, s-tasloc.ads: New files.
9507 2007-06-06 Bob Duff <duff@adacore.com>
9510 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9511 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9512 (Send_Signal, Close): Raise Invalid_Process if the process id is
9514 (Pattern_Matcher_Access): Is now a general access type to be able to
9517 2007-06-06 Thomas Quinot <quinot@adacore.com>
9518 Arnaud Charlet <charlet@adacore.com>
9520 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9521 (SIGEMT is now used instead of SIGTERM on AIX).
9523 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9524 (Time_Slice_Supported): Set to True.
9525 Use SIGEMT instead of SIGTERM as SIGADAABORT.
9527 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9529 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9530 (Time, Time)): Use To_Relative_Time rather than manual calculation to
9531 express the bounds of Duration as Time. Raise Time_Error when the
9532 result is greater or equal to the higher bound of Duration (on the
9534 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9536 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9538 ("-" (Time, Time)): Reorder code.
9539 (All_Leap_Seconds): Removed.
9540 (Arithmetic_Operations.Add): Remove sign related kludge.
9541 (Arithmetic_Operations.Difference): Control the leaps seconds processing
9542 with flag Leap_Support.
9543 (Arithmetic_Operations.Subtract): Remove sign related kludge.
9544 (Check_Within_Time_Bounds): New procedure.
9545 (Clock): Control the leap seconds processing with flag Leap_Support.
9546 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9547 (Formatting_Operations.Split): Control the leap seconds processing with
9549 (Formatting_Operations.Time_Of): Control the leaps seconds processing
9550 with flag Leap_Support. Adjust the year, month and day (if applicable)
9551 when the value of day seconds designates a new day.
9552 (Split): Use parameter associations for better readability. Integrate
9554 (Time_Of): Use parameter associations for better readability. Integrate
9557 * a-calfor.adb (Split): Use parameter associations for better
9558 readability. Integrate flag Is_Ada_05.
9559 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9560 better readability. Integrate flag Is_Ada_05.
9562 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9564 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
9565 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
9566 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
9567 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
9568 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
9569 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
9570 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
9571 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
9572 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
9573 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9574 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9575 time when entering this routine to detect a backward clock setting
9576 (manual setting or DST adjustment), to avoid waiting for a longer delay
9578 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9579 Remove handling of deferred priority change, and replace by setting the
9580 task priority directly, as required by AI-188.
9582 (Max_Task_Image_Length): New constant.
9583 Replace Warnings (Off) by Unreferenced pragma, cleaner.
9584 (Dynamic_Priority_Support): Removed, no longer needed.
9585 (Poll_Base_Priority_Change): Ditto.
9586 (Set_Ceiling): Add this procedure to change the ceiling priority
9587 associated to a lock. This is a dummy implementation because dynamic
9588 priority ceilings are not supported by the underlying system.
9590 * a-dynpri.adb (Set_Priority): Take into account case where Target is
9591 accepting a RV with its priority boosted.
9592 Remove handling of deferred priority change, and replace by setting the
9593 task priority directly, as required by AI-188.
9595 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9597 Remove handling of deferred priority change, and replace by setting the
9598 task priority directly, as required by AI-188.
9599 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9602 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9603 (Poll_Base_Priority_Change): Removed.
9604 Code clean up: use SSL.Current_Target_Exception.
9606 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9607 to run as this is a potentially dispatching point.
9608 (Call_Synchronous): Use Local_Defer_Abort.
9609 (Callable): Relax assertion.
9610 (Selective_Wait): Relax assertion in case abort is not allowed.
9611 Remove handling of deferred priority change, and replace by setting the
9612 task priority directly, as required by AI-188.
9614 * s-tasuti.adb (Make_Passive): Adjust assertions.
9615 Remove handling of deferred priority change, and replace by setting the
9616 task priority directly, as required by AI-188.
9618 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9620 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9621 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
9622 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9623 system-vxworks-mips.ads, system-vxworks-alpha.ads,
9624 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
9625 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
9626 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
9627 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
9628 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9629 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9630 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9631 This patch changes the largest non-binary modulus from 2**31-1 to
9633 (Compiler_System_Version): Removed, no longer used.
9634 Clean up system files by removing flags only used on a single target.
9635 Also remove obsolete flags, only used during bootstrap from system.ads
9636 (Address): Add a pragma Preelaborable_Initialization.
9638 * system-aix.ads: Ditto.
9639 (GCC_ZCX_Support): Set to true.
9640 Update priority range on AIX and map Ada priorities to target
9641 priorities appropriately for different scheduling policies.
9643 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9645 2007-06-06 Vincent Celier <celier@adacore.com>
9647 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9648 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9650 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
9651 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
9652 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
9653 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9654 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9655 MLib.Tgt, containing the default versions of the exported subprograms.
9656 For each platform, create a specific version of the body of new child
9657 package MLib.Tgt.Specific that contains only the body of subprograms
9658 that are different from the default.
9659 (Archive_Builder_Append_Options): New function.
9661 2007-06-06 Matthew Gingell <gingell@adacore.com>
9663 * s-osinte-aix.adb: Map Ada priorities to target priorities
9664 appropriately for different scheduling policies.
9666 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9668 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9670 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9671 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
9673 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9675 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9676 Noop on VMS, added for interface commonality.
9678 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9679 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9680 Olivier Hainque <hainque@adacore.com>
9682 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9683 renamed expression of a full renaming at toplevel.
9684 (gnat_to_gnu_entity, case object): If not defining, do not look inside
9685 the values the constant is initialized to if it is an N_Allocator.
9686 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9687 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9688 (make_aligning_type): Accept an extra ROOM argument for storage to be
9689 made available before the aligned field, and an extra BASE_ALIGN
9690 argument for callers to pass the alignment guaranteed to be honored for
9691 the whole aligning object. Avoid call to finish_record_type, which only
9692 interferes with the sizes we want to set.
9693 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9694 make_aligning_type for super-aligned objects on stack.
9695 (components_to_record): Pass the adjusted size of the type when creating
9696 fields in the qualified union for the variant part.
9697 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9698 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9700 (maybe_pad_type): Set TYPE_USER_ALIGN.
9701 (make_aligning_type): Likewise.
9702 ALIGN argument is unsigned int.
9703 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9704 (gnat_to_gnu_param): Likewise, for parameters.
9705 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9706 if it is constant and stems from a function call.
9707 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9708 of the record is specified. Adjust accordingly.
9709 (adjust_packed): New static function.
9710 (gnat_to_gnu_field): Use it to adjust the packedness setting.
9711 (components_to_record): Likewise.
9712 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9713 side-effects if the object is deemed constant.
9714 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9715 type instead of merely finalizing it. Tidy.
9716 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9717 <E_Access_Type>: Likewise.
9718 (defer_debug_incomplete_list): Rename to defer_finalize_list.
9719 (defer_debug_level): Delete.
9720 (gnat_to_gnu_entity) <debug_deferred>: Likewise
9721 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9723 <E_Record_Type>: Do not explicitly defer finalizing the type.
9724 Adjust for write_record_type_debug_info renaming.
9725 <E_Subprogram_Type>: Likewise.
9726 Finalize deferred types right after deferred incomplete types are
9728 (rest_of_type_decl_compilation): New global function.
9729 (components_to_record): Rename defer_debug parameter to do_not_finalize.
9730 (components_to_record): Propagate the packedness to the fields of the
9731 qualified union type if there is a variant part.
9732 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9733 instead of inline code to adjust the XUT field offsets.
9734 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9735 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9736 and write the debug info if the type derives from a discriminated one.
9737 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9738 <E_Array_Subtype>: Likewise.
9739 <E_String_Literal_Subtype>: Likewise.
9740 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9741 an alignment clause.
9742 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9743 before giving warning.
9744 (prepend_one_attribute_to): New function, helper to prepend an attribute
9745 to an attribute list.
9746 (gnat_to_gnu_entity) <E_Procedure>: Use it.
9747 (prepend_attributes): Likewise.
9748 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9749 <E_Array_Type>: Declare the padding type for the element type, if any.
9750 <E_Array_Subtype>: Likewise.
9751 (defer_limited_with): New variable.
9752 (Gigi_Equivalent_Type): New function.
9753 (gnat_to_gnu_entity): Use it at start and use result throughout.
9754 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9755 Gigi_Equivalent_Type, support Limited_With, allow two levels of
9756 indirection, precompute if unconstrained array to simplify logic, and
9757 use defer_limited_with to defer elaboration of some types from limited
9759 (finalize_from_with_types): New function.
9761 2007-06-06 Gary Dismukes <dismukes@adacore.com>
9762 Eric Botcazou <ebotcazou@adacore.com>
9763 Tristan Gingold <gingold@adacore.com>
9764 Olivier Hainque <hainque@adacore.com>
9766 * trans.c (Identifier_to_gnu): Change test for deferred constant by
9767 adding guard that the entity is an E_Constant before testing presence
9768 of Full_view (and remove unnecessary test that entity is not a type).
9769 For a CONST_DECL used by reference, manually retrieve
9770 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
9771 (struct language_function): Move from utils.c to here.
9772 (struct parm_attr): New structure.
9773 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9774 (f_parm_attr_cache): New macro.
9775 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9776 expressions for the 'First, 'Last and 'Length attributes of the
9777 unconstrained array IN parameters.
9778 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9779 Allocate the information structure for the function earlier, as well
9780 as the language-specific part.
9781 If the parameter attributes cache has been populated, evaluate the
9782 cached expressions on entry.
9783 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
9784 N_Procedure_Call_Statement and N_Indexed_Component.
9785 (Pragma_to_gnu): Translate inspection_point to an asm statement
9786 containaing a comment and a reference to the object (either its address
9787 for BLKmode or its value).
9788 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9789 to go to DECL_INITIAL. Together with the size constraint relaxation
9790 in create_var_decl, enlarges the set of situations in which an
9791 identifier may be used as an initializer without implying elaboration
9793 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9794 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9796 (maybe_stabilize_reference): Remove lvalues_only parameter.
9797 (gnat_stabilize_reference): Adjust for above change.
9798 (gnat_to_gnu): Do not set location information on the result
9799 if it is a reference.
9800 (add_cleanup): Add gnat_node parameter and set the location of the
9802 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9803 (Exception_Handler_to_gnu_zcx): Likewise.
9804 (gigi): Remove the cgraph node if the elaboration procedure is empty.
9805 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9806 the former right after the latter.
9807 (start_stmt_group): Make global.
9808 (end_stmt_group): Likewise.
9809 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9811 (gnu_program_error_label_stack): Likewise.
9812 (gigi): Initialize them.
9813 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9814 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9816 (push_exception_label_stack): New function.
9817 (takes_address): New function.
9819 * utils.c (struct language_function): Move to trans.c from here.
9820 (unchecked_convert): Do not wrap up integer constants in
9822 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9823 the latter for aggregate types, unexpected by later passes, and relax an
9824 arbitrary size constraint on the former.
9825 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9826 to compare the sizes.
9827 (convert_vms_descriptor): When converting to a fat pointer type, be
9828 prepared for a S descriptor at runtime in spite of a SB specification.
9829 (shift_unc_components_for_thin_pointers): New function.
9830 (write_record_type_debug_info): For variable-sized fields, cap the
9831 alignment of the pointer to the computed alignment.
9832 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9833 If REP_LEVEL is 2, do not compute the sizes.
9834 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9835 (build_unc_object_type): Likewise.
9836 (declare_debug_type): New function.
9838 * ada-tree.def: USE_STMT: removed (not emitted anymore).
9840 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9841 no statement is expandable anymore.
9842 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9843 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9844 when the user requested it explicitely.
9845 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9847 (get_alias_set): Return alias set 0 for a type if
9848 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9850 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9851 (DECL_FUNCTION_STUB): New accessor macro.
9852 (SET_DECL_FUNCTION_STUB): New setter macro.
9854 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9856 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9859 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9861 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9862 Rename to Abort_Task_Interrupt to be able to keep the same interface
9863 as the rest of the targets.
9865 * s-osinte-vxworks.ads s-osinte-vxworks.adb
9866 (To_VxWorks_Priority): Remove explicit "in" mode indicator
9868 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9871 2007-06-06 Robert Dewar <dewar@adacore.com>
9873 * a-chahan.ads: Remove obsolescent pragmas
9875 * a-chlat1.ads: Minor reformatting
9877 2007-06-06 Robert Dewar <dewar@adacore.com>
9879 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9882 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9885 * errout.ads (Finalize): Changed interface
9886 (Output_Messages): New procedure
9887 (Compilation_Errors): New Interface
9889 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9890 Finalize/Output_Messages interface for Errout
9891 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9894 2007-06-06 Thomas Quinot <quinot@adacore.com>
9895 Olivier Hainque <hainque@adacore.com>
9896 Robert Dewar <dewar@adacore.com>
9898 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9900 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9901 propagation starts, to let debuggers know about the event in a reliable
9903 (Local_Raise): Moved to System.Exceptions
9904 More convenient to have this as a separate unit
9906 * s-except.adb, s-except.ads: New files.
9908 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9909 Debug_Unhandled_Exception in System.Exceptions where it belongs
9910 together with a couple of other debug helpers.
9911 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9912 the former Unhandled_Exception.
9914 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9915 (Warn_No_Exception_Propagation): New procedure
9916 (Warn_If_No_Propagation): Rewritten for new warning generation
9917 (Expand_Exception_Handlers): New warning generation
9918 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9919 (Add_Exception_Label): Use Special_Exception_Package_Used for test
9920 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9921 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9922 even if restriction is set (makes life easier in Check_Returns)
9923 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9924 checking exception identities.
9925 (Expand_Local_Exception_Handlers): Do not optimize when all others case
9926 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9927 block for handler (used by Check_Returns)
9928 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9929 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9930 remove all exception handlers when optimizing local raise statements.
9931 (Find_Local_Handler): Use Get_Renamed_Entity
9932 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9933 marked analyzed after expanding exception handlers, do not generate
9934 redundant cleanup actions, because they have been constructed already.
9936 2007-06-06 Thomas Quinot <quinot@adacore.com>
9938 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9939 presence of this categorization pragma is mandated by the language.
9940 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9943 2007-06-06 Vincent Celier <celier@adacore.com>
9944 Robert Dewar <dewar@adacore.com>
9946 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
9947 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9948 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
9949 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
9950 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
9951 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
9952 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
9953 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
9954 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
9955 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
9956 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9958 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9959 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9960 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9961 Use variables of types File_Name_Type and Unit_Name_Type in error
9963 (Get_Name): Add parameter Ignore_Special, and set it reading file name
9964 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9966 Define flags Flag217-Flag230 with associated subprograms
9967 (Flag_Word5): New record type.
9968 (Flag_Word5_Ptr): New access type.
9969 (To_Flag_Word5): New unchecked conversion.
9970 (To_Flag_Word5_Ptr): Likewise.
9971 (Flag216): New function.
9972 (Set_Flag216): New procedure.
9974 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9976 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9979 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9981 2007-06-06 Javier Miranda <miranda@adacore.com>
9983 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9985 (Object_Specific_Data_Array): This is now internal to the package.
9986 (Object_Specific_Data): This is now internal to the package.
9987 (Select_Specific_Data_Element): This is now internal to the package.
9988 (Select_Specific_Data_Array): This is now internal to the package.
9989 (Select_Specific_Data): This is now internal to the package.
9990 (Offset_To_Top_Function_Ptr): This is now public.
9991 (To_Offset_To_Top_Function_Ptr): Removed.
9992 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9993 local to subprogram Offset_To_Top.
9994 (Predefined_DT): Removed.
9995 (Typeinfo_Ptr): Removed.
9996 (OSD): This function is now internal to this package.
9997 (SSD): This function is now internal to this package.
9998 (DT): New function that displaces the pointer to the table of primitives
9999 to get access to the enclosing wrapper record.
10000 (IW_Membership): Code cleanup.
10001 (Offset_To_Top): Code cleanup.
10002 (Predefined_DT): Removed.
10003 (Register_Interface_Tag): Removed.
10004 (Set_Interface_Table): Removed.
10005 (Set_Offset_Index): Removed.
10006 (Set_Offset_To_Top): Code cleanup.
10007 (Set_OSD): Removed.
10008 (Set_Signature): Removed.
10009 (Set_SSD): Removed.
10010 (Set_Tagged_Kind): Removed.
10011 (Typeinfo_Ptr): Removed.
10013 (Displace): Add missing check on null actual.
10015 * exp_disp.ads, exp_disp.adb
10016 (Select_Expansion_Utilities): Removed.
10017 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10018 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10019 the interface requires a new parameter.
10020 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10021 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10022 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10023 Done to remove package Select_Expansion_Utilities.
10024 (Make_DT): New implementation for statically allocated dispatch tables.
10025 (Make_Secondary_DT): Moved to the scope of Make_DT.
10026 (Register_Primitive): Code cleanup plus incoporate the use of the new
10027 function DT_Address_Attribute.
10028 (Expand_Interface_Thunk): The profile of this subprogram has been
10029 changed to return the Thunk_Id and the corresponding code.
10030 (Fill_DT_Entry): Removed. Its functionality is now provided by
10031 subprogram Register_Primitive.
10032 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10033 subprogram Register_Primitive.
10034 (Register_Primitive): New subprogram that incorporates the previous
10035 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10036 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10037 was only required to call Make_DT_Access_Action, which is now removed.
10038 (Ada_Actions): Removed
10039 (Action_Is_Proc): Removed
10040 (Action_Nb_Arg): Removed
10041 Replace all the calls to Make_DT_Access_Action by direct calls to
10042 Make_Procedure_Call_Statement or Make_Function_Call.
10043 (Set_DTC_Entity_Value): New subprogram.
10044 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10045 (Expand_Interface_Thunk): Add missing support for primitives that are
10046 functions with a controlling result (case in which there is no need
10047 to generate the thunk).
10049 * exp_atag.ads, exp_atag.adb
10050 (Build_DT): New subprogram that displaces the pointer to reference the
10051 base of the wrapper record.
10052 (Build_Typeinfo_Offset): Removed.
10053 (RTE_Tag_Node): Removed.
10054 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10055 (Build_Get_RC_Offset): Removed.
10056 (Build_Inherit_Predefined_Prims): Removed.
10057 (Build_Inherit_TSD: Removed.
10058 (Build_New_TSD): Removed.
10059 (Build_Set_External_Tag): Removed.
10060 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10061 (Build_Set_Prim_Op_Address): Add documentation.
10062 (Build_Set_TSD): Removed.
10064 * rtsfind.ads, rtsfind.adb
10065 (Load_Fail): If load fails and we are not in configurable run-time
10066 mode, then raise Unrecoverable_Error.
10067 (Text_IO_Kludge): Generate an error message if a run-time library is
10068 not available in a given run-time (ie. zfp run-time).
10069 (RTE_Record_Component): Add code to check that the component we search
10070 for is not found in two records in the given run-time package.
10071 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10072 (RE_DT_Predef_Prims_Offset): New entity
10073 (RE_Static_Offset_To_Top): New entity
10074 (RE_HT_Link): New entity.
10075 (System_Address_Image): Addition of this run-time package.
10076 (RE_Address_Image): New entity.
10077 (RE_Abstract_Interface): Removed.
10078 (RE_Default_Prim_Op_Count): Removed.
10079 (RE_DT_Entry_Size): Removed.
10080 (RE_DT_Min_Prologue_Size): Removed.
10081 (RE_DT_Prologue_Size): Removed.
10082 (RE_Ifaces_Table_Ptr): Removed.
10083 (RE_Interface_Data_Ptr): Removed.
10084 (RE_Type_Specific_Data): Removed.
10085 (RE_Primary_DT): Removed.
10086 (RE_Register_Interface_Tag): Removed.
10087 (RE_Set_Offset_Index): Removed.
10088 (RE_Set_OSD): Removed.
10089 (RE_Set_SSD): Removed.
10090 (RE_Set_Signature): Removed.
10091 (RE_Set_Tagged_Kind): Removed.
10092 (RE_Address_Array): New entity.
10093 (RE_DT): New entity.
10094 (RE_Iface_Tag): New entity.
10095 (RE_Interfaces_Table): New entity.
10096 (RE_No_Dispatch_Table): New entity.
10097 (RE_NDT_Prims_Ptr): New entity.
10098 (RE_NDT_TSD): New entity.
10099 (RE_Num_Prims): New entity.
10100 (RE_Offset_To_Top_Function_Ptr): New entity.
10101 (RE_OSD_Table): New entity.
10102 (RE_OSD_Num_Prims): New entity.
10103 (RE_Predef_Prims): New entity
10104 (RE_Predef_Prims_Table_Ptr): New entity.
10105 (RE_Primary_DT): New entity.
10106 (RE_Signature): New entity.
10107 (RE_SSD): New entity.
10108 (RE_TSD): New entity.
10109 (RE_Type_Specific_Data): New entity.
10110 (RE_Tag_Kind): New entity.
10112 2007-06-06 Thomas Quinot <quinot@adacore.com>
10114 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10115 C imported variable.
10116 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10119 2007-06-06 Robert Dewar <dewar@adacore.com>
10121 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10124 2007-06-06 Vincent Celier <celier@adacore.com>
10126 * a-tifiio.adb (Put, internal): For negative numbers, check that there
10127 is room for at least one digit and the minus sign.
10128 (Put.Put_Character): Never put a character outside of the range of
10131 2007-06-06 Olivier Hainque <hainque@adacore.com>
10132 Eric Botcazou <ebotcazou@adacore.com>
10134 * utils2.c (build_allocator): Provide the extra arguments to
10135 make_aligning_type for super-aligned objects allocated from the default
10136 pool. Leave enough room for a pointer before the aligning field, and
10137 store the system's allocator return value there.
10138 (build_call_alloc_dealloc): When releasing a super-aligned object,
10139 retrieve the system's allocator return value from where build_allocator
10140 has stored it, just ahead of the adjusted address we are passed.
10141 (build_call_raise): Handle properly the generation of line numbers when
10142 the node is marked No_Location.
10143 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
10144 by using DECL_UID on ties.
10145 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10147 (build_call_raise): Handle converting exception into goto; support new
10149 (build_component_ref): Add new arg to build_call_raise.
10151 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10153 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10154 "." in the case of nnn.xxx when nnn terminates with an underscore.
10155 Parse the remaining "#" or ":" in the case of nnn#.xxx#
10157 2007-06-06 Robert Dewar <dewar@adacore.com>
10159 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10161 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10162 Vincent Celier <celier@adacore.com>
10163 Robert Dewar <dewar@adacore.com>
10165 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10167 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10168 ((destructor)) for adafinal, even when switch -a is used.
10169 Do not issue pragma Linker_Destructor for adafinal when switch -a is
10171 (Gen_Object_Files_Options): Add formatting of Linker Options, when
10172 Output_Linker_Option_List is set. Suppress this formatting when
10173 Zero_Formatting is set.
10174 Add case for CLI_Target.
10175 (System_Restrictions_Used): New flag, used to avoid generating with of
10176 System_Restrictions and initialization of the data unless there is
10177 some use of System.Restrictions in the partition.
10178 (Check_System_Restrictions_Used): New procedure
10180 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10181 since we only with this unit in the binder file if it is used elsewhere
10184 2007-06-06 Vincent Celier <celier@adacore.com>
10186 * bindusg.adb: Add line for @<response file>
10187 Add lines for new switches -R and -Z
10189 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10190 hierarchy in the list of files of the closure when -R is used
10191 (Gnatbind): Accept arguments starting with '@' to indicate response
10192 files and take the arguments from the response files.
10193 If List_Closure is set, display the referenced files
10195 2007-06-06 Javier Miranda <miranda@adacore.com>
10196 Robert Dewar <dewar@adacore.com>
10197 Ed Schonberg <schonberg@adacore.com>
10199 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10200 which the address-clause is applied to in-mode actuals (allowed by
10202 (Apply_Discriminant_Check): Do not generate a check if the type is
10203 constrained by a current instance.
10204 (Activate_Division_Check): New procedure
10205 (Activate_Overflow_Check): New procedure
10206 (Activate_Range_Check): New procedure
10207 Call these new Activate procedures instead of setting flags directly
10208 (Apply_Array_Size_Check): Removed, no longer needed.
10209 Code clean up: remove obsolete code related to GCC 2.
10210 (Get_E_Length): Protect against bomb in case scope is standard
10211 (Selected_Range_Checks): If the node to be checked is a conversion to
10212 an unconstrained array type, and the expression is a slice, use the
10213 bounds of the slice to construct the required constraint checks.
10214 Improve NOT NULL error messages
10215 (Apply_Constraint_Check): If the context is a null-excluding access
10216 type, diagnose properly the literal null.
10218 2007-06-06 Pascal Obry <obry@adacore.com>
10220 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10221 and the corresponding .deps file.
10222 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10223 src directory. Minor code-clean-up. Use untouched casing for files
10224 read into the library src dir.
10225 (Clean_Library_Directory): Idem.
10226 (Parse_Cmd_Line): Accept new switch -aP
10228 2007-06-06 Javier Miranda <miranda@adacore.com>
10229 Ed Schonberg <schonberg@adacore.com>
10230 Robert Dewar <dewar@adacore.com>
10231 Eric Botcazou <ebotcazou@adacore.com>
10232 Arnaud Charlet <charlet@adacore.com>
10234 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10235 applicable to types that have the With_Type flag set. Returns the
10236 non-limited view of the type, if available, otherwise the type itself.
10237 For class-wide types, there is no direct link in the tree, so we have
10238 to retrieve the class-wide type of the non-limited view of the Etype.
10239 New attributes Static_Initialization and Static_Elaboration_Desired.
10240 Remove the pragma Thread_Body, and the associated flag
10241 Is_Thread_Body in entities, and all related code.
10242 (Suppress_Value_Tracking_On_Call): New flag
10243 E_Exception has Esize and Alignment fields
10244 (Universal_Aliasing): New function.
10245 (Set_Universal_Aliasing): New procedure.
10246 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10247 (Check_Nested_Access): New procedure.
10248 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10249 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10250 (Related_Interface): New attribute. Present in dispatch table pointer
10251 components of records. Set to point to the entity of the corresponding
10253 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10254 (Original_Access_Type): Remove, not needed.
10255 (Root_Type): Handle properly subtypes of class-wide-types.
10258 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10259 class-wide types visible through limited-with clauses.
10260 (Try_Primitive_Operation): When examining all primitive operations of a
10261 tagged type, do not consider subprograms labeled as hidden unless they
10262 belong to a private generic type with a tagged parent.
10263 (Try_Object_Operation): Extensive rewriting, to handle properly various
10264 overloading cases, when several ancestors may have class-wide operations
10265 that are possible candidates, and when the overloaded functions return
10266 array types and have defaulted parameters so that the call may be
10267 interpreted as an indexing.
10268 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10269 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10270 successive actuals before analyzing the call itself.
10271 (Try_Primitive_Operation): A primitive operation is compatible with the
10272 prefix if the prefix has a synchronized type and the type of the formal
10273 is its corresponding record, as can be the case when the primitive
10274 operation is declared outside of the body of the type.
10275 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10276 perform homonym traversal, looking for class-wide operation matches
10277 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10278 access parameters are now restricted to anonymous access types.
10279 (Mark_Allocator): An allocator with a discriminant association parent is
10281 (Try_One_Prefix_Interpretation): If the type of the object is
10282 incomplete, as can be happen when it is a limited view obtained through
10283 a limited_with_clause, the selected component is not part of a prefixed
10285 (Complete_Object_Operation): Diagnose properly an object that is not
10286 aliased when the corresponding controlling formal is an access
10288 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10289 ambiguous calls in prefixed notation, where two primitives differ only
10290 in that the controlling argument of one is an access parameter.
10292 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10293 whether a function that returns an unconstrained type can be inlined.
10294 (Process_Formals): Diagnose properly the illegal use of an incomplete
10295 type in the profile of an access_to_subprogram declaration.
10296 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10297 operations are attached to the corresponding record.
10298 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10299 When processing a primitive of a concurrent type which implements an
10300 interface change the type of all controlling formals to that of the
10301 corresponding record type.
10302 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10303 to determine the tagged type to which a primitive belongs.
10304 (Check_Conventions): Capture condition to ignore a primitive operation
10305 (which is shared between the loop in Check_Conventions and the one in
10306 Check_Convention) in a new local function Skip_Check.
10307 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10308 confusion with Check_Conventions' own Prim_Op local variable.
10309 (Create_Extra_Formals): Test for a tagged result type rather than a
10310 controlling result when determining whether to add a BIP_Alloc_Form
10311 formal and a BIP_Final_List formal to the function.
10312 (Check_Conformance); For parameters that are anonymous access types,
10313 subtype conformance requires that the not null and the constant
10314 indicators must match
10315 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10316 to retrieve the appropriate type when processing a concurrent type
10317 declared within a generic. Minor comment reformatting. Change invocation
10318 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10320 (Analyze_Subprogram_Body): If the return type of a function is an
10321 anonymous access to the limited view of a class-wide type, and the
10322 non-limited view of the type is available, update the type of the
10323 function so that code can be generated.
10324 (Process_Formals): In case of access-subtype itype whose designated
10325 type is also an itype (situation that happens now with access to
10326 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10327 attribute to avoid backend problems.
10328 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10329 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10330 anonymous types' designated types are same before testing
10331 Subtypes_Statically_Match.
10332 (Create_Extra_Formals): Test for a named access parameter that is a
10333 controlling formal as an additional condition for adding an
10334 accessibility level formal. This can occur in the subp type created for
10335 dispatching calls in Expand_Dispatching_Call, and allows calling
10336 Create_Extra_Formals from that procedure rather than special-casing the
10337 extra formals there.
10338 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10339 when the function has a controlling result.
10340 (Check_Returns): Add much more knowledge of the optimization of local
10341 raise statements to gotos, to retain proper warnings in this case.
10342 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10343 nodes when looking for last statement.
10345 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10346 class-wide types visible through limited with clauses.
10347 (Add_One_Interp): If the operands are anonymous access types, the
10348 predefined operator on universal_access is immediately visibles
10349 (Find_Unique_Type): Handle anonymous access to subprogram types just as
10350 other anonymous access types.
10351 (Disambiguate): Take into account CIL convention.
10352 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10354 2007-06-06 Robert Dewar <dewar@adacore.com>
10356 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10357 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10358 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10359 Fix lower bound of tables.
10362 * nlists.adb: Ditto.
10363 (Prev_Node, Next_Node): Change index type to Int so that it properly
10364 covers the range First_Node_Id - 1 up.
10366 2007-06-06 Javier Miranda <miranda@adacore.com>
10367 Ed Schonberg <schonberg@adacore.com>
10368 Bob Duff <duff@adacore.com>
10369 Hristian Kirtchev <kirtchev@adacore.com>
10371 * exp_aggr.ads, exp_aggr.adb:
10372 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10373 in extension aggregates.
10374 (Flatten): Other conditions being met, an aggregate is static if the
10375 low bound given by component associations is different from the low
10376 bound of the base index type.
10377 (Packed_Array_Aggregate_Handled): If the component type is itself a
10378 packed array or record, the front-end must expand into assignments.
10379 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10380 Init_Pr, instead of Ancestor_Is_Expression.
10381 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10382 coextension chain root, either generate a list controller or use the
10383 already existing one.
10384 (Static_Array_Aggregate): New procedure to construct a positional
10385 aggregate that can be handled by the backend, when all bounds and
10386 components are compile-time known constants.
10387 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10388 types covering interface types into assignments.
10389 (Replace_Type): move to Build_Record_Aggr_Code.
10390 (Expand_Record_Aggr_Code): if the target of the aggregate is an
10391 interface type, convert to the definite type of the aggregate itself,
10392 so that needed components are visible.
10393 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10394 components and the context is an extended return statement do not
10395 create a transient block for it, to prevent premature finalization
10396 before the return is executed.
10397 (Gen_Assign): Do not generate a call to deep adjust routine if the
10398 component type is itself an array of controlled (sub)-components
10399 initialized with an inner aggregate.
10400 (Component_Check): New name for Static_Check. This name is now more
10401 appropriate, and documentation is added which was missing.
10402 (Component_Check): Add test for bit aligned component value
10403 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10404 Tagged_Comps, name is more appropriate given added function below.
10405 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10407 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10408 Javier Miranda <miranda@adacore.com>
10409 Robert Dewar <dewar@adacore.com>
10411 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10412 Terminated: Add unchecked type conversion from System.Address to
10413 System.Tasking.Task_Id when calling the predefined primitive
10415 Disable new Ada 05 accessibility check for JVM.NET targets, which
10416 cannot be implemented in a practical way.
10417 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10418 the sources always references the tag of the actual object. Therefore,
10419 if 'Tag is applied in the sources to class-wide interface objects we
10420 generate code that displaces "this" to reference the base of the object.
10421 (Expand_N_Attribute_Reference, case Size): Return specified size if
10422 known to front end.
10423 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10424 has code that displaces the pointer of the object to manage interface
10425 types. However this code must not be executed when the prefix is a
10426 subprogram. This bug caused the wrong expansion of the internally
10427 generated assignment that fills the dispatch table when the primitive
10428 is a function returning a class-wide interface type.
10429 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10430 Set_Attribute_Name for Name_Unaligned_Valid.
10432 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10433 Gary Dismukes <dismukes@adacore.com>
10435 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10436 If the initialization is the equivalent aggregate of the initialization
10437 procedure of the type, do not remove it.
10438 (Expand_N_Attribute_Definition_Clause): Exclude access variables
10439 initialized to null from having their expression reset to empty and
10440 note this exception in the comment.
10442 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10443 Robert Dewar <dewar@adacore.com>
10444 Ed Schonberg <schonberg@adacore.com>
10445 Gary Dismukes <dismukes@adacore.com>
10447 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10448 Add "with" and "use" clauses for Sem_Attr.
10449 (Expand_Current_Value): Do not replace occurences of attribute
10450 references where the prefix must be a simple name.
10452 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10453 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10454 Attribute_Requires_Simple_Name_Prefix.
10455 (Name_Modifies_Prefix): Body of new function.
10456 (Requires_Simple_Name_Prefix): Body of new function.
10457 (Resolve_Attribute, case Access): Improve error message for case of
10458 mismatched conventions.
10459 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10461 (Analyze_Attribute, case 'Access): If the type of the prefix is a
10462 constrained subtype for a nominal unconstrained type, use its base type
10463 to check for conformance with the context.
10464 (Resolve_Attribute): Remove test of the access type being associated
10465 with a return statement from condition for performing accessibility
10466 checks on access attributes, since this case is now captured by
10467 Is_Local_Anonymous_Access.
10468 (Analyze_Access_Attribute): Set Address_Taken on entity
10469 (Analyze_Attribute, case Address): Set Address_Taken on entity
10470 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10471 validating an access attribute whose prefix is a current instance.
10472 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10473 applied to dispatching operations, if freezing is required then we set
10474 the attribute Has_Delayed_Freeze in the prefix's entity.
10475 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10476 current scope if access of local subprogram taken
10477 (Analyze_Access_Attribute): Check legality of self-reference even if the
10478 expression comes from source, as when a single component association in
10479 an aggregate has a box association.
10480 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10481 the prefix if it is a protected operation and the attribute is
10482 Unrestricted_Access.
10483 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10484 reference to the base type of the context, to force a constraint check
10485 when the context is an access subtype with an explicit constraint.
10486 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10487 node is rewritten as an interface conversion. leave unanalyzed after
10488 resolution, to ensure that type checking against the context will take
10491 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10492 Javier Miranda <miranda@adacore.com>
10493 Robert Dewar <dewar@adacore.com>
10495 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10496 wrapper when the full view of the controlling type of an inherited
10497 function that dispatches on result implements interfaces.
10498 (Expand_N_Object_Declaration): In cases where the type of the
10499 declaration is anonymous access, create finalization list for it.
10500 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10501 if the object has no explicit initialization, to match description of
10502 functionality of pragam Persistent_BSS.
10503 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10504 new function to build static aggregates, to replace initialization call
10505 when static initialization is desired.
10506 (Freeze_Type): Generate a list controller for an access type whenever
10507 its designated type has controlled anonymous access discriminants.
10508 (Build_Equivalent_Aggregate): New procedure to compute a static
10509 aggregate to be used as default initialization for composite types,
10510 instead of a generating a call to the initialization procedure for the
10512 (Build_Initialization_Call): When available, replace a call to the
10513 initialization procedure with a copy of the equivalent static aggregate
10515 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
10516 declarations for objects of a class-wide interface type, rather than
10517 just identifiers, to prevent visibility problems.
10518 (Expand_N_Object_Declaration): When expanding the declaration for an
10519 object of a class-wide interface type, preserve the homonym chain of
10520 the original entity before exchanging it with that of the generated
10521 renaming declaration.
10522 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10523 active, because there is no way to handle the exception.
10524 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10525 to do a minimum decoration of the Access_Disp_Table list.
10526 (Expand_Record_Controller): Avoid the addition of the controller between
10527 the component containing the tag of a secondary dispatch table and its
10528 adjacent component that stores the offset to the base of the object.
10529 This latter component is only generated when the parent type has
10530 discriminants ---documented in Add_Interface_Tag_Components).
10531 (Apply_Array_Size_Check): Removed, no longer needed.
10532 (Expand_N_Full_Type_Declaration): If the type has anonymous access
10533 components, create a Master_Entity for it only if it contains tasks.
10534 (Build_Init_Procedure): Suppress the tag assignment compiling under
10536 (Freeze_Record_Type): Remove code associated with creation of dispatch
10538 (Init_Secondary_Tags): Update type of actuals when generating calls to
10539 Ada.Tags.Set_Offset_To_Top
10540 (Stream_Operation_OK): Disable use of streams compiling under no
10542 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10543 if Has_Init_Expression set.
10544 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10545 Register_Primitive, which provides the same functionality.
10546 (Requires_Init_Proc): Return false in case of interface types.
10547 (Add_Secondary_Tables): Use the new attribute Related_Interface to
10549 (Predefined_Primitive_Freeze): Do not assume that an internal entity
10550 is always associated with a predefined primitive because the internal
10551 entities associated with interface types are not predefined primitives.
10552 Therefore, the call to Is_Internal is replaced by a call to the
10553 function Is_Predefined_Dispatching_Operation.
10554 (Make_Eq_If): When generating the list of comparisons for the
10555 components of a given variant, omit the controller component that is
10556 present if the variant has controlled components.
10558 2007-06-06 Javier Miranda <miranda@adacore.com>
10559 Hristian Kirtchev <kirtchev@adacore.com>
10560 Bob Duff <duff@adacore.com>
10562 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10563 handle the creation of finalization lists and calls for nested
10564 coextensions when the root of the chains is part of a return statement.
10565 (Inside_A_Return_Statement): New function inside Complete_Coextension_
10567 (Expand_Record_Equality): Skip components that are interface types.
10568 (Displace_Allocator_Pointer): Add missing support for interface subtypes
10569 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10570 with Rewrite_Coextension. Change the condition for detecting coextension
10572 (Is_Local_Access_Discriminant): Removed.
10573 (Rewrite_Coextension): New routine which rewrites a static coextension
10574 as a temporary and uses its unrestricted access in the construction of
10576 (Complete_Coextension_Finalization): New routine. Generate finalization
10577 attachment calls to all delayed coextensions.
10578 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10579 the allocator is not a coextension itself and has delayed coextensions.
10580 If the current allocator is controlled, but also a coextension, delay
10581 the generation of the finalization attachment call.
10582 Rename local variable "Node" to "Nod" in order to avoid confusion with
10584 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10585 limited types that are not inherently limited. Such an allocator is
10586 illegal, but is generated by the expander for a return statement, to
10587 copy the result onto the secondary stack. This is the only case where a
10588 limited object can be copied. Generate code to displace the pointer
10589 to the object if the qualified expression is a class-wide interface
10590 object. Such displacement was missing and hence the copy of the object
10592 (Apply_Accessibility_Check): Handle allocated objects initialized in
10594 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10595 and Expand_Allocator_Expression. Allocating class-wide interface objects
10596 this routine displaces the pointer to the allocated object to reference
10597 the component referencing the corresponding secondary dispatch table.
10598 Expand_Allocator_Expression): Add missing support to allocate class-wide
10599 interface objects initialized with a qualified expression.
10600 (Get_Allocator_Final_List): Test for an anonymous access type that is a
10601 function result type, and use the finalization list associated with the
10602 function scope in that case (such an anonymous type should not be
10603 treated like an access parameter's type).
10605 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10606 Gary Dismukes <dismukes@adacore.com>
10607 Javier Miranda <miranda@adacore.com>
10609 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10610 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10611 required exception handler.
10612 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10613 properly the case of a function whose return type is a limited
10614 class-wide interface type. Modify the code of the accessibility
10615 check to handle class-wide interface objects. In this case we need to
10616 displace "this" to reference the primary dispatch table to get access
10617 to the TSD of the object (to evaluate its accessibility level).
10618 (Expand_N_Extended_Return_Statement): Test for a tagged result type
10619 rather than a controlling result as one of the conditions for
10620 generating tests of the implicit BIP_Alloc_Form formal. The
10621 initialization assignment is also handled according to whether the
10622 result is tagged instead of controlling.
10623 In the case where the init assignment is inserted in the "then" part of
10624 the allocation conditional, rewrite the target to be a dereference of
10625 the implicit BIP_Object_Access formal.
10626 If the returned value is unconstrained and created on the secondary
10627 stack, mark the enclosing block and function so that the secondary
10628 stack is not reclaimed on return.
10629 Treat returns from functions with controlling results similarly to
10630 returns from functions with unconstrained result subtypes.
10631 If the object returned is unconstrained, and an allocator must be
10632 created for it, analyze the allocator once the block for the extended
10633 return is installed, to ensure that finalizable components
10634 of the expression use the proper finalization list. Guard the call to
10635 Move_Final_List with a check that there is something to finalize.
10636 (Make_Tag_Ctrl_Assignment): Use "old" handling
10637 of controlled type assignment for virtual machines, since new code uses
10638 unsupported features (such as direct access to bytes in memory).
10640 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10641 Ed Schonberg <schonberg@adacore.com>
10643 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10644 accessibility actual, check for the case of an aliased object that has
10645 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10646 we fall into processing for the attribute rather than the name of the
10648 (Expand_Inline_Call): If an actual is a literal, and the corresponding
10649 formal has its address taken in the body, create a temporary to capture
10650 value. If the return type is a limited interface, do not treat the
10651 return value as Controlled.
10652 (Is_In_Place_Function): If the return type is a limited interface,
10653 treat as returning in place. The actual returned object may not always
10654 be limited, but the caller has to assume that it is returned in place.
10655 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10656 context of an allocator, use the correct finalization chain (that is,
10657 the chain belonging to the access type, rather than the chain belonging
10658 to the current scope).
10659 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10660 result type rather than a controlling result as a precondition for
10661 adding an allocation form actual to a build-in-place call.
10662 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10663 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10664 primitive in the dispatch tables. This work is now done by Make_DT when
10665 the type is frozen.
10666 (Register_Predefined_DT_Entry): Removed.
10667 (Add_Return): If end label is not present, use sloc of last statement
10668 for generated return statement in procedure, for better gdb behavior
10670 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10671 object address nodes to ensure proper processing by routines like
10673 (Expand_Call): Fix generation of validity check for parameter
10674 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10675 the allocation form parameter if the result subtype is constrained,
10676 except when the function has a controlling result.
10677 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10678 rather than Is_Controlled and Has_Controlled_Component, since we want to
10679 include class-wide result types in this treatment. Also test for a
10680 controlling result, since that also requires passing a finalization
10682 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10683 even when the result subtype is constrained, to handle calls involving
10684 controlling results.
10685 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10686 is now called even when the result subtype is constrained, to handle
10687 calls involving controlling results.
10688 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10689 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10690 now performs the test).
10691 (Make_Build_In_Place_Call_In_Object_Declaration):
10692 Add_Alloc_Form_Actual_* is now called even when the result subtype is
10693 constrained, to handle calls involving controlling results.
10694 (Add_Return): Accomodate rewritten pattern from local raise to goto
10695 transformation, so that we still recognize an transfer statement
10696 and do the right thing here in that case.
10697 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10698 and end of subprogram code.
10699 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10700 support for primitives that are functions (without formals) with a
10701 controlling result.
10702 (Inherited_From_Formal): If the actual subtype has not generic parent
10703 type, it is not an actual for a formal derived type, and there is no
10704 operation to inherit from the formal.
10706 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10707 Thomas Quinot <quinot@adacore.com>
10709 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10710 inserted cleanup code appropriately for GDB use.
10711 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10712 exception handler for Deep_Adjust or Deep_Finalize.
10713 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10714 Raise_From_Controlled_Operation is available, use a call to that
10715 subprogram instead of a plain "raise Program_Error" node to raise
10716 Program_Error if an exception is propagated from an Adjust or Finalize
10718 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10719 appears in the optional statement list of a triggering alternative, the
10720 scope actions can be inserted directly there, and not in the list that
10721 includes the asynchronous select itself.
10723 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10724 Robert Dewar <dewar@adacore.com>
10725 Hristian Kirtchev <kirtchev@adacore.com>
10727 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10728 generated exception handler appropriately when debugging generated code.
10729 Deal properly with No_Exception_Propagation restriction mode.
10730 (Expand_N_Abort_Statement): Add an unchecked type conversion from
10731 System.Address to System.Tasking.Task_Id when processing the result of
10732 the predefined primitive _disp_get_task_id.
10733 (Expand_N_Asynchronous_Select): Clarify comment.
10734 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10735 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10736 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10737 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10738 privals and for generated call to Complete_Entry_Body, for better gdb
10740 (Copy_Result_Type): Utility to construct a parameter and result profile
10741 for protected functions whose return type is an anonymous access to
10743 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10745 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10746 point when the local-raise-to-goto transformation has taken place.
10748 2007-06-06 Javier Miranda <miranda@adacore.com>
10749 Nicolas Setton <setton@adacore.com>
10751 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10752 functionality when the backend is generating code.
10753 Otherwise any serious error
10754 reported by the backend calling the frontend routine Error_Msg
10755 changes the Compilation_Mode to Check_Semantics, disables the
10756 functionality of this routine and causes the generation of
10757 spureous additional errors.
10759 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10760 debugging information now generated by the compiler for fat-pointer
10762 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10764 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10766 2007-06-06 Thomas Quinot <quinot@adacore.com>
10768 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10769 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10770 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10771 For a remote call to a function with a classwide return type, apply an
10772 E.4(18) check to the returned value.
10773 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10774 stream attributes of the designated type of an RACW, as they are not
10775 dispatching primitive operations.
10777 2007-06-06 Geert Bosch <bosch@adacore.com>
10779 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10781 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10783 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10784 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10786 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10788 2007-06-06 Javier Miranda <miranda@adacore.com>
10790 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10791 attribute compiling package Ada.Tags under No_Run_Time_Mode.
10793 2007-06-06 Javier Miranda <miranda@adacore.com>
10795 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10796 deallocation of class-wide interface objects.
10797 (Expand_Dispatching_Constructor_Call): Take into account that if the
10798 result of the dispatching constructor is an interface type, the
10799 function returns a class-wide interface type; otherwise the returned
10800 object would be actual. The frontend previously accepted returning
10801 interface types because Expand_Interface_Actuals silently performed
10802 the management of the returned type "as if" it were a class-wide
10804 (Expand_Dispatching_Constructor_Call): Replace call to
10805 Make_DT_Access_Action by direct call to Make_Function_Call.
10807 2007-06-06 Robert Dewar <dewar@adacore.com>
10808 Ed Schonberg <schonberg@adacore.com>
10810 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10811 compute masking constant, since we now set Esize properly to the
10813 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10814 to match the alignment.
10815 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10816 packed arrays of 8 bits or less.
10818 * freeze.adb (Freeze_Entity): When freezing the formals of a
10819 subprogram, freeze the designated type of a parameter of an access type
10820 only if it is an access parameter.
10821 Increase size of C convention enumeration object
10822 (Freeze_Entity, array type case): Make sure Esize value is properly
10823 adjusted for the alignment if it is known.
10824 (Freeze_Entity, array type case): When checking bit packed arrays for
10825 the size being incorrect, check RM_Size, not Esize.
10826 (Freeze_Record_Type): Check for bad discriminated record convention
10827 (In_Exp_Body): Return true if the body is generated for a subprogram
10828 renaming, either an attribute renaming or a renaming as body.
10829 (Check_Itype): If the designated type of an anonymous access component
10830 is a non-protected subprogram type, indicate that it is frozen, to
10831 prevent out-of-scope freeze node at some subsequent call.
10832 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10833 only if the subprogram is neither imported nor exported, as well as the
10834 NCA descriptor class if the subprogram is exported.
10836 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10837 Arnaud Charlet <charlet@adacore.com>
10838 Robert Dewar <dewar@adacore.com>
10839 Gary Dismukes <dismukes@adacore.com>
10841 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10842 default initialization on an imported object, when there is no
10843 initialization call generated for it.
10844 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10847 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10848 Static_Elaboration_Desired.
10849 Remove pragma Thread_Body.
10850 Implement a new pragma No_Body
10851 Removes the Explicit_Overriding pragma
10852 Remove Optional_Overriding pragma
10853 (Prag): Deal with Universal_Aliasing.
10854 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10855 Pragma_CIL_Constructor): New names.
10857 * sem_cat.adb (Validate_Object_Declaration): An initialization that
10858 uses the equivalent aggregate of a type must be treated as an implicit
10860 (Get_Categorization): Check a unit for pragma Preelaborate only if it
10861 has none of the other categories.
10862 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10863 to apply Import to an object renaming declaration.
10865 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10866 from a C++ class should be declared as limited and that it will be
10867 considererd limited.
10868 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10869 should be declared as limited and that it will be considererd limited.
10870 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10871 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10872 (Analyze_Pragma): Deal with Universal_Aliasing.
10873 (Sig_Flags): Likewise.
10874 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10875 (Overflow_Checks_Unsuppressed): New flag.
10876 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10877 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10878 case of JVM or .NET targets, and compiling user code.
10879 Add debugging convenience routine rv
10881 2007-06-06 Robert Dewar <dewar@adacore.com>
10883 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10884 are interface type.
10885 (Build_Elementary_Input_Call): For floating-point use right type in the
10886 absence of strange size or stream size clauses.
10887 (Build_Elementary_Write_Call): Same fix
10888 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10889 set to value that does not match base type size.
10891 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10893 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10894 object of a limited type can be initialized with a call to a function
10895 that returns in place. If the limited type has unknown discriminants,
10896 and the underlying type is a constrained composite type, build an actual
10897 subtype from the function call, as is done for private types.
10898 (Side_Effect_Free): An expression that is the renaming of an object or
10899 whose prefix is the renaming of a object, is not side-effect free
10900 because it may be assigned through the renaming and its value must be
10901 captured in a temporary.
10902 (Has_Controlled_Coextensions): New routine.
10903 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10904 as is done for other limited types.
10905 (Non_Limited_Designated_Type): new predicate.
10906 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10908 Remove all handling of with_type clauses.
10910 * par-ch10.adb: Remove all handling of with_type clauses.
10912 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10913 checksum if the main source could not be parsed.
10914 (Loat_Unit): When processing a child unit, determine properly whether
10915 the parent unit is a renaming when the parent is itself a child unit.
10916 Remove handling of with_type clauses.
10918 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10919 (Set_Is_Static_Coextension): New procedure.
10920 (Has_Local_Raise): New function
10921 (Set_Has_Local_Raise): New procedure
10922 (Renaming_Exception): New field
10923 (Has_Init_Expression): New flag
10924 (Delay_Finalize_Attach): Remove because flag is obsolete.
10925 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10926 Remove all handling of with_type clauses.
10927 (Exception_Junk): Can now be set in N_Block_Statement
10929 2007-06-06 Vincent Celier <celier@adacore.com>
10930 Robert Dewar <dewar@adacore.com>
10932 * frontend.adb (Frontend): Return immediately if the main source could
10933 not be parsed, because of preprocessing errors.
10935 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10936 (Gnat1drv): Exit with errors if the main source could not be parsed,
10937 because of preprocessing errors.
10938 (Check_Rep_Info): New procedure
10940 2007-06-06 Robert Dewar <dewar@adacore.com>
10942 * g-hesorg.ads, g-heasor.ads,
10943 g-busorg.ads, g-bubsor.ads: Update documentation
10944 GNAT.Heap/Bubble_Sort_G is now pure
10946 2007-06-06 Robert Dewar <dewar@adacore.com>
10948 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10950 2007-06-06 Robert Dewar <dewar@adacore.com>
10951 Ed Schonberg <schonberg@adacore.com>
10953 * g-comlin.ads, g-comlin.adb:
10954 Add new warning for renaming of function return objects
10956 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10957 (Tree_Read): Use size of object instead of type'object_size, since the
10958 latter is incorrect for packed array types.
10959 (Tree_Write): Same fix
10961 * opt.ads: Add new warning for renaming of function return objects
10962 (Generating_Code): New boolean variable used to indicate that the
10963 frontend as finished its work and has called the backend to process
10964 the tree and generate the object file.
10965 (GCC_Version): Is now private
10966 (Static_Dispatch_Tables): New constant declaration.
10967 (Overflow_Checks_Unsuppressed): New flag.
10968 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10969 (List_Closure): New flag for gnatbind (-R)
10970 Zero_Formatting: New flag for gnatbind (-Z)
10971 (Special_Exception_Package_Used): New flag.
10972 (Warn_On_Unrepped_Components): New flag.
10974 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10975 unit is a compilation unit, rather than relying on its scope, so that
10976 Standard can be renamed.
10977 (Analyze_Object_Renaming): Add new warning for renaming of function
10979 Also reject attempt to rename function return object in Ada 83 mode.
10980 (Attribute_Renaming): In case of tagged types, add the body of the
10981 generated function to the freezing actions of the type.
10982 (Find_Type): A protected type is visible right after the reserved word
10983 "is" is encountered in its type declaration. Set the entity and type
10984 rather than emitting an error message.
10985 (New_Scope): Properly propagate Discard_Names to inner scopes
10986 (Check_Nested_Access): New procedure.
10987 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10988 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10990 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10991 Add new warning for renaming of function return objects
10992 (Check_References): Suppress warnings for objects whose type or
10993 base type has Warnings suppressed.
10994 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10995 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10997 2007-06-06 Vincent Celier <celier@adacore.com>
10998 Emmanuel Briot <briot@adacore.com>
10999 Olivier Hainque <hainque@adacore.com>
11001 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11002 absolute value of Header.Block_Size when displaying the freed physical
11004 (Allocate): Compute Storage_Address using Integer_Address, not
11005 Storage_Offset, because the range of Storage_Offset may not be large
11007 (Configure): New parameter Low_Level_Traces
11008 (Allocate, Deallocation, Free_Physically): Added low-level traces
11009 (Configure): new parameter Errors_To_Stdout.
11010 (Output_File): new subprogram
11011 (Deallocate, Dereference): Send error messages to the proper stream
11012 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11013 documented. Previous code would send it to the current output file
11014 defined in GNAT.IO, which might not be stdout
11015 (Is_Valid): Adjust comment to mention that a positive reply means that
11016 Header_Of may be used to retrieve the allocation header associated with
11017 the subprogram Storage address argument. Return False early if this
11018 address argument is misaligned.
11020 2007-06-06 Vincent Celier <celier@adacore.com>
11022 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11024 (ASIS_Main): New global variable
11025 (Get_Closure): New procedure
11026 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11027 check, metric or pretty. Call Get_Closure in this case.
11028 (Check_Files): For GNAT LIST, check all sources of all projects when
11029 All_Projects is True.
11030 (GNATCmd): Accept -U for GNAT LIST
11032 2007-06-06 Vincent Celier <celier@adacore.com>
11034 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11036 Correct error message when invocation of the linker fails
11037 Add explicit size clause for the C imported variables
11038 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11039 we expect char size.
11040 Read target parameters earlier, since this is needed to set
11041 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11044 2007-06-06 Vincent Celier <celier@adacore.com>
11047 Add 3 spaces before the default project directory when displaying
11048 the project search path.
11049 Add new command line switch '-l' to display license information.
11051 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11053 * gmem.c: Add support for timestamps on memory operations.
11055 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11056 operations (not used currently, just foundation for future
11057 enhancements). Add possibility to perform full dump of gmem.out file.
11058 (Print_Back_Traces): Declare accesses to root arrays constants since
11059 they aren't modified.
11060 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11062 2007-06-06 Vincent Celier <celier@adacore.com>
11064 * gnatsym.adb: Update Copyright notice
11065 (Parse_Cmd_Line): Accept new switch -D
11066 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11069 * prj.ads (Policy): New policy Direct
11070 (Yes_No_Unknown): New enumeration type
11071 (Project_Data): New component Libgnarl_Needed
11073 * prj-nmsc.adb (Check_For_Source): When recording a source file make
11074 use the untouched pathname casing.
11075 (Get_Directories): Ensure that the Display_Exec_Directory is using the
11076 proper casing on non case-sensitive platforms like Windows.
11077 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11078 on all platforms, as it is not possible to know which one is allowed
11079 before processing the project files.
11080 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11081 specified when symbol policy is Direct. Check that when there is a
11082 symbol file defined (either by default or with attribute
11083 Library_Symbol_File) it is not the same as the reference symbol file.
11084 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11085 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11086 extending projects.
11087 (Record_Ada_Source): Record a source that has been locally removed in an
11090 * symbols.ads (Policy): New policy Direct
11092 * symbols-vms.adb (Initialize): Take new policy Direct in case
11095 2007-06-06 Vincent Celier <celier@adacore.com>
11097 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11098 Correct obvious bug (return Dir; instead of return Directory;).
11099 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11101 2007-06-06 Thomas Quinot <quinot@adacore.com>
11103 * g-pehage.adb (Produce): Open output files in Binary mode, so that
11104 they have UNIX line endings (LF only) even on Windows, and thus pass
11105 all GNAT style checks.
11107 2007-06-06 Emmanuel Briot <briot@adacore.com>
11109 * g-regpat.adb (Quote): Fix improper quoting of '.'
11111 2007-06-06 Thomas Quinot <quinot@adacore.com>
11113 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11114 default, set False on a per-runtime basis.
11115 (Need_Netdb_Buffer): New constant.
11117 * g-socket.ads, g-socket.adb: Import new package
11118 GNAT.Sockets.Thin.Task_Safe_NetDB.
11119 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11120 binding to obtain proper message.
11121 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11122 Replace various occurrences of Arry (Arry'First)'Address with the
11123 equivalent Arry'Address (GNAT always follows implementation advice from
11125 (Get_Host_By_Address, Get_Host_By_Name,
11126 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11127 instead, rely on platform-specific task safe netdb operations provided
11130 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11131 parameter Process_Blocking_IO.
11132 (Host_Error_Messages): Add stub body.
11133 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11134 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11135 Safe_Getservbyport): Move functions into new child package
11137 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11138 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11139 (In_Addr): Add alignment clause.
11141 2007-06-06 Robert Dewar <dewar@adacore.com>
11143 * g-trasym.ads, g-traceb.ads: Update list of supported targets
11144 Add note about symbolic traceback
11146 2007-06-06 Pascal Obry <obry@adacore.com>
11148 * hostparm.ads (Normalized_CWD): Use the host directory separator
11149 instead of the hardcoded forward slash which is not the proper
11150 character on Windows for example.
11151 (Java_VM): Removed.
11153 2007-06-06 Vincent Celier <celier@adacore.com>
11154 Arnaud Charlet <charlet@adacore.com>
11156 * a-clrefi.adb, a-clrefi.ads: New files
11158 * impunit.adb: Add s-os_lib in the list of user visible units.
11159 (Non_Imp_File_Names_95): Add a-clrefi to this list
11160 Remove obsolete run-time entries.
11161 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11162 "a-exetim" -- Ada.Execution_Time
11163 "a-extiti" -- Ada.Execution_Time.Timers
11165 * mlib-prj.ads, mlib-prj.adb
11166 (Build_Library): Use untouched object dir and library dir. At the
11167 same time makes sure that the checks are done using the canonical
11168 form. Removes hard-coded directory separator and use the proper host
11170 (Process_Project): Do not look in object directory to check if libgnarl
11171 is needed for a library, if there is no object directory.
11172 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11174 (Build_Library): When invoking gnatbind, use a response file if the
11175 total size of the arguments is too large.
11177 * Makefile.rtl: (g-sttsne): New object file.
11178 Add entry for a-clrefi, s-utf_32, System.Exceptions
11180 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11181 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11182 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11183 Change g-string to s-string, g-os_lib to s-os_lib
11184 Change all g-utf_32 references to s-utf_32
11186 2007-06-06 Tristan Gingold <gingold@adacore.com>
11187 Olivier Hainque <hainque@adacore.com>
11189 * init.c: Do not adjust IP of an imported VMS exception of ia64.
11190 LIB$STOP is called to raise an exception and the IP of the exception
11191 is the instruction right after the call.
11192 (__gnat_adjust_context_for_raise, AIX): Implement.
11193 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11194 adjust_context_for_raise before Raise_From_Signal_Hanler.
11195 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11196 siginfo is passed to the handler, necessary to let the zcx propagation
11197 engine unwind past it.
11199 2007-06-06 Olivier Hainque <hainque@adacore.com>
11201 * initialize.c (__gnat_initialize for vxworks): Update documentation
11202 on the ZCX support, using different sets of crtstuff objects than with
11205 2007-06-06 Robert Dewar <dewar@adacore.com>
11207 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11209 (Layout_Type): Fix recomputation of size from alignment.
11211 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11212 Javier Miranda <miranda@adacore.com>
11214 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11215 association in an instance.
11216 (Copy_Generic_Node): If the node is a string literal, no need to copy
11218 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11219 grandparent of the entity.
11220 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11221 to simplify handling of formal interfaces that derive from other formal
11223 (Instantiate_Subprogram_Body): The defining unit name of the body of
11224 the instance should be a defining identifier.
11225 (Install_Formal_Packages): make global to the package, for use in
11226 instantiations of child units.
11227 (Analyze_Package_Instantiation): Do not attempt to set information on an
11228 enclosing master of an entry when expansion is disabled.
11229 (Instantiate_Type): If the actual is a tagged synchronized type and the
11230 generic ancestor is an interface, create a generic actual for the
11231 corresponding record.
11232 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11233 declaration, to ensure that the interface list is processed correctly.
11234 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11235 its entities from visibiility as well.
11236 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11237 given with a named association, analyze the expression only, not the
11238 discriminant association itself.
11239 (Reset_Entity): If the analysis of a selected component is transformed
11240 into an expanded name in the prefix of a call with parameters, do not
11241 transform the original node into an expanded name, to prevent visibility
11242 errors in the case of nested generics.
11243 (Check_Private_View): For an array type, check whether the index types
11244 may need exchanging.
11246 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11247 Vincent Celier <celier@adacore.com>
11249 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11250 since both are separated.
11251 Add support for imported CIL packages.
11252 Add further special handling of "value_type" for CIL.
11253 Add special handling of pragma Import for CIL.
11255 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11256 standard output instead of standard error, except errors.
11257 (Absolute_Path): Use untouched casing for the parent directory.
11258 (Add_Library_Search_Dir): Use the untouched directory name.
11259 (Add_Source_Search_Dir): Idem.
11260 (Change_To_Object_Directory): Update output to use proper casing.
11261 (Create_Binder_Mapping_File): Use the untouched filename to set
11263 (Gnatmake): Use untouched library and executable directory names.
11264 (Insert_Project_Sources): Use untouched filename for spec and body.
11265 (Is_In_Object_Directory): Use untouched object directory.
11266 (Mark_Directory): Idem.
11267 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11268 contains the non-canonical filename in all cases.
11269 (Change_To_Object_Directory): In verbose mode, display the name of the
11270 object directory we're changing to.
11271 (Compile_Sources): Make sure, when a project file is used, to compile
11272 the body of the unit, when there is one, even when only the spec is
11273 recorded in an ALI file.
11274 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11276 (Report_Compilation_Failed): New procedure
11277 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11278 procedures moved from the spec to the body.
11279 (Extract_Failure): Removed, not used
11280 Replace explicit raises of exception Bind_Failed and Link_Failed with
11281 calls to Make_Failed with the proper message.
11282 Replace explicit raises of exception Compilation_Failed with calls to
11283 procedure Report_Compilation_Failed.
11284 (Initialize): Create mapping files unconditionally when using project
11287 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11288 Pragma_CIL_Constructor): New names.
11290 * targparm.ads, targparm.adb
11291 (Compiler_System_Version): Removed, no longer used.
11292 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11293 handling of two new system flags: JVM and CLI.
11295 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11296 Arnaud Charlet <charlet@adacore.com>
11298 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11299 time, use the default s-interr body that provides interrupt support
11301 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11302 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11303 g-soccon.ads, and s-taprop.adb for the marte run time.
11304 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11305 timers are supported on marte.
11306 (EH_MECHANISM for marte): Do not use ZCX.
11307 (THREADSLIB for marte): Use -lmarte.
11308 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11309 Add mlib-tgt-specific.o to gnatmake objects
11310 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11311 longer of MLib.Tgt.
11312 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11313 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11315 2007-06-06 Pascal Obry <obry@adacore.com>
11317 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11319 2007-06-06 Vincent Celier <celier@adacore.com>
11321 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11322 separator, use instead the proper host directory separator.
11323 (Copy_ALI_Files): Make sure that an already existing ALI file in the
11324 ALI copy dir is writable, before doing the copy.
11326 * mlib-utl.ads, mlib-utl.adb:
11327 (Gcc): If length of command line is too long, put the list of object
11328 files in a response file, if this is supported by the platform.
11329 (Ar): If invocation of the archive builder is allowed to be done in
11330 chunks and building it in one shot would go above an OS dependent
11331 limit on the number of characters on the command line, build the archive
11334 2007-06-06 Vincent Celier <celier@adacore.com>
11336 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11337 of specified object file is not equal to base name of source.
11339 2007-06-06 Javier Miranda <miranda@adacore.com>
11340 Hristian Kirtchev <kirtchev@adacore.com>
11341 Ed Schonberg <schonberg@adacore.com>
11343 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11344 the full type declaration.
11345 (Analyze_Component_Declaration): Add local variable E to capture the
11346 initialization expression of the declaration. Replace the occurences of
11347 Expression (N) with E.
11348 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11349 limited interface object with a function call.
11350 (Array_Type_Declaration): If the declaration lacks subtype marks for
11351 indices, create a simple index list to prevent cascaded errors.
11352 (Is_Null_Extension): Ignore internal components created for secondary
11353 tags when checking whether a record extension is a null extension.
11354 (Check_Abstract_Interfaces): Add missing support for interface subtypes
11355 and generic formals.
11356 (Derived_Type_Declaration): Add missing support for interface subtypes
11357 and generic formals.
11358 (Analyze_Object_Declaration): If an initialization expression is
11359 present, traverse its subtree and mark all allocators as static
11361 (Add_Interface_Tag_Component): When looking for components that may be
11362 secondary tags, ignore pragmas that can appear within a record
11364 (Check_Abstract_Overriding): an inherited function that dispatches on
11365 result does not need to be overriden if the controlling type is a null
11367 (Mentions_T): Handle properly a 'class attribute in an anonymous access
11368 component declaration, when the prefix is an expanded name.
11369 (Inherit_Component): If the derivation is for a private extension,
11370 inherited components remain visible and their ekind should not be set
11372 (Find_Type_Of_Object): In the case of an access definition, always set
11373 Is_Local_Anonymous_Access. We were previously not marking the anonymous
11374 access type of a return object as a local anonymous type.
11375 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11376 range with character literal bounds.
11377 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11378 (Access_Subprogram_Declaration): Indicate that the type declaration
11379 depends on an incomplete type only if the incomplete type is declared
11381 (Analyze_Subtype_Declaration): Handle properly subtypes of
11382 synchronized types that are tagged, and that may appear as generic
11384 (Access_Subprogram_Declaration): An anonymous access to subprogram can
11385 appear as an access discriminant in a private type declaration.
11386 (Add_Interface_Tag_Components): Complete decoration of the component
11387 containing the tag of a secondary dispatch table and the component
11388 containing the offset to the base of the object (this latter component
11389 is only generated when the parent type has discriminants --as documented
11391 (Inherit_Components): Use the new decoration of the tag components to
11392 improve the condition that avoids inheriting the components associated
11393 with secondary tags of the parent.
11394 (Build_Discriminanted_Subtype): Indicate to the backend that the
11395 size of record types associated with dispatch tables is known at
11397 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11398 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11399 to include task, protected, and synchronized interfaces as limited
11401 (Process_Discriminants): Remove the setting of
11402 Is_Local_Anonymous_Access on the type of (anonymous) access
11403 discriminants of nonlimited types.
11404 (Analyze_Interface_Type_Declaration): Complete the decoration of the
11405 class-wide entity it is is already present. This situation occurs if
11406 the limited-view has been previously built.
11407 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11409 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11412 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11414 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11415 of the type that specify the position of interface tags when the type
11416 inherits discriminated array components from the parent type.
11417 If a component is initialized with a box, check for the presence of a
11418 default expression in its declaration before using its default
11419 initialization procedure.
11420 (Resolve_Record_Aggregate): If a component is box-initialized, and the
11421 component type has a discriminants, create a partial aggregate for it
11422 by copying the discriminants of the component subtype.
11423 Reject attempt to initialize a discriminant with a box.
11424 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11425 associated with dispatch tables is known at compile time.
11426 (Get_Value): If an association in a record aggregate has a box
11427 association, and the corresponding record component has a default
11428 expression, always copy the default expression, even when the
11429 association has a single choice, in order to create a proper
11430 association for the expanded aggregate.
11432 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11433 Robert Dewar <dewar@adacore.com>
11435 * par-ch12.adb (P_Generic_Associations): The source position of an
11436 Others association is that of the others keyword, not that of the token
11437 that follows the box.
11438 (P_Formal_Type_Definition): Handle formal access types that carry a
11439 not null indicator.
11441 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11442 multiple identifier are present, save Scan_State before scanning the
11443 colon, to ensure that separate trees are constructed for each
11445 (P_Identifier_Declarations): For object declaration, set new flag
11446 Has_Init_Expression if initialization expression present.
11447 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11448 Improve NOT NULL error messages
11450 2007-06-06 Robert Dewar <dewar@adacore.com>
11452 * par-ch4.adb: (P_Name): Recover from literal used as name
11454 2007-06-06 Vincent Celier <celier@adacore.com>
11456 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11457 defaulted to False.
11458 In the "not" case, recursive call with Complemented set to True.
11459 Do not allow "or" or "and" operators when Complemented is True.
11461 2007-06-06 Vincent Celier <celier@adacore.com>
11463 * prj.adb (Project_Empty): Gives default value for new component
11466 * prj-attr.ads: Minor reformatting
11468 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11469 directory using the untouched casing.
11470 (For_All_Source_Dirs): Idem.
11472 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11473 directories specified with switches -aP.
11474 (Add_Search_Project_Directory): New procedure
11475 (Initialize_Project_Path): Put the directories in table
11476 Search_Directories in the project search path.
11477 (Initialize_Project_Path): For VMS, transform into canonical form the
11480 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11482 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11483 true if configurable run-time or No_Run_Time is set.
11484 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11485 processing an unit which is not the one being compiled.
11487 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11489 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11490 Replace UC by Ada.UC
11492 * s-bitops.adb: Get rid of System.Pure_Exceptions.
11493 Replace UC by Ada.UC
11495 2007-06-06 Robert Dewar <dewar@adacore.com>
11497 * scng.adb: (Check_End_Of_Line): Deal with very long lines
11499 2007-06-06 Robert Dewar <dewar@adacore.com>
11501 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11502 Remove no longer used nodes.
11504 2007-06-06 Javier Miranda <miranda@adacore.com>
11505 Ed Schonberg <schonberg@adacore.com>
11506 Robert Dewar <dewar@adacore.com>
11508 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11509 on obsolescent withed unit in case of limited-withed units.
11510 (Analyze_Compilation_Unit): Add guard to code that removed an
11511 instantiation from visibility, to prevent compiler aborts when
11512 instantiation is abandoned early on.
11513 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11514 current unit being analyzed, and Distinguish local incomplete types
11515 from limited views of types declared elsewhere.
11516 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11517 to state that the class-wide entity is shared by the limited-view
11519 (Analyze_With_Clause): Improve placement of flag for case of
11520 unimplemented unit.
11521 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11522 manner similar to GNAT.Current_Exception. This is a violation of
11523 restriction (No_Exception_Propagation), and also inhibits the
11524 optimization of local raise to goto.
11525 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11526 and if so set Most_Recent_Exception_Used flag in Opt, and also check
11527 for violation of restriction No_Exception_Propagation.
11529 2007-06-06 Javier Miranda <miranda@adacore.com>
11530 Hristian Kirtchev <kirtchev@adacore.com>
11531 Gary Dismukes <dismukes@adacore.com>
11533 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11534 use of entity Exception_Occurrence if it is not available in the
11537 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11538 concurrent types are declared within an Ada 2005 generic, build their
11539 corresponding record types since they are needed for overriding-related
11541 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11542 protected type does not implement a task interface or a nonlimited
11544 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11545 type does not implement a protected interface or a nonlimited interface.
11546 (Single_Task_Declaration, Single_Protected_Declaration): use original
11547 entity for variable declaration, to ensure that debugging information
11548 is correcty generated.
11549 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11550 routines if the expander is not active.
11551 (Analyze_Task_Body): Mark all handlers to stop optimization of local
11552 raise, since special things happen for task exception handlers.
11554 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11555 concurrent types declared within a generic.
11556 (Check_Dispatching_Operation): Do not emit warning about late interface
11557 operations in the context of an instance.
11558 (Check_Dispatching_Call): Remove restriction against calling a
11559 dispatching operation with a limited controlling result.
11560 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11561 Register_Interface_DT_Entry by calls to Register_Primitive.
11562 (Check_Dispatching_Formals): Handle properly a function with a
11563 controlling access result.
11565 2007-06-06 Robert Dewar <dewar@adacore.com>
11566 Arnaud Charlet <charlet@adacore.com>
11568 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11569 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11570 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11571 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11572 message when using a VM, since this attribute is not supported.
11573 (Analyze_Record_Representation_Clause): Give unrepped component warnings
11575 * usage.adb: Add new warning for renaming of function return objects
11576 Indicate that -gnatwp and -gnatwP concern front-end inlining
11577 Add line for -gnatyg
11578 Add usage information for -gnatw.c/C
11580 2007-06-06 Robert Dewar <dewar@adacore.com>
11581 Ed Schonberg <schonberg@adacore.com>
11584 (Find_Var): Do not consider function call in test for infinite loop
11585 warning if warnings set off for function entity.
11586 (One_Bound): Do not create a temporary for a loop bound if it is a
11588 (Analyze_Assignment): Traverse the right hand side of an assignment and
11589 mark all allocators as static coextensions.
11590 (Analyze_Assignment): Exempt assignments involving a dispatching call
11591 to a function with a controlling access result from the check requiring
11592 the target to be class-wide.
11594 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11595 Ed Schonberg <schonberg@adacore.com>
11596 Robert Dewar <dewar@adacore.com>
11597 Javier Miranda <miranda@adacore.com>
11599 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11600 chain of coextensions when an allocator serves as the root of such a
11602 (Propagate_Coextensions): Remove the test for the root being an
11604 (Resolve_Allocator): Add condition to ensure that all future decoration
11605 occurs on an allocator node. Add processing and cleanup for static
11607 (Valid_Conversion): If the operand type is the limited view of a
11608 class-wide type, use the non-limited view is available to determine
11609 legality of operation.
11610 (Ambiguous_Character): move to spec, for use elsewhere.
11611 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11612 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11613 character literals.
11614 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11615 Do_Division_Check flag explicitly.
11616 (Resolve_Actuals): If the actual is of a synchronized type, and the
11617 formal is of the corresponding record type, this is a call to a
11618 primitive operation of the type, that is declared outside of the type;
11619 the actual must be unchecked-converted to the type of the actual
11620 (Resolve_Call): Kill all current values for any subprogram call if
11621 flag Suppress_Value_Tracking_On_Call is set.
11622 (Resolve_Type_Conversion): Generate error message the the operand
11623 or target of interface conversions come from a limited view.
11624 (Check_Infinite_Recursion): Ignore generated calls
11625 (Check_Allocator_Discrim_Accessibility): New procedure for checking
11626 that an expression that constrains an access discriminant in an
11627 allocator does not denote an object with a deeper level than the
11628 allocator's access type.
11629 (Resolve_Allocator): In the case of an allocator initialized by an
11630 aggregate of a discriminated type, check that associations for any
11631 access discriminants satisfy accessibility requirements by calling
11632 Check_Allocator_Discrim_Accessibility.
11633 (Resolve_Equality_Op): Handle comparisons of anonymous access to
11634 subprogram types in the same fashion as other anonymous access types.
11635 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11636 message that is not a continuation message.
11637 (Resolve_Type_Conversion): Add missing support for conversion to
11639 (Resolve_Actuals): Introduce a transient scope around the call if an
11640 actual is a call to a function returning a limited type, because the
11641 resulting value must be finalized after the call.
11642 (Resolve_Actuals): If the call was given in prefix notations, check
11643 whether an implicit 'Access reference or implicit dereference must be
11644 added to make the actual conform to the controlling formal.
11646 2007-06-06 Robert Dewar <dewar@adacore.com>
11647 Javier Miranda <miranda@adacore.com>
11649 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11650 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11651 overriding of an inherited private subprogram now there is no need to
11652 inherit its dispatching slot and reduce the size of the dispatch table.
11653 Set_All_DT_Position now ensures that the same slot is now assigned to
11654 both entities. This is required to statically build the dispatch table.
11655 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11656 of calling Set_All_DT_Position to re-evaluate the position of the
11657 entries in the dispatch table. Such reevaluation is not desired if
11658 the tagged type is already frozen.
11660 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11661 Gary Dismukes <dismukes@adacore.com>
11662 Robert Dewar <dewar@adacore.com>
11663 Javier Miranda <miranda@adacore.com>
11665 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11666 reference acts as an lvalue when the attribute name modifies the prefix
11667 (Is_Coextension_Root): New routine.
11668 (Mark_Static_Coextensions): New routine.
11669 (Type_Access_Level): Revise code for checking the level of the
11670 anonymous access type of a return object.
11671 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11672 (Matches_Prefixed_View_Profile): Remove the no longer necessary
11673 retrieval of the corresponding controlling record type.
11674 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11675 concurrent types declared within a generic as well as class wide types.
11676 Emit a mode incompatibility error whenever a protected entry or routine
11677 override an interface routine whose first parameter is not of mode
11678 "out", "in out" or access to variable.
11679 (Overrides_Synchronized_Primitive): Rename to
11680 Find_Overridden_Synchronized_Primitive.
11681 (Collect_Interface_Components): New subprogram that collects all the
11682 components of a tagged record containing tags of secondary dispatch
11684 (Add_Global_Declaration): New procedure
11685 (Abstract_Interface_List): Handle properly the case of a subtype of a
11687 (Type_Access_Level): In the case of a type whose parent scope is a
11688 return statement, call Type_Access_Level recursively on the enclosing
11689 function's result type to determine the level of the return object's
11691 (Build_Elaboration_Entity): Build name of elaboration entity from the
11692 scope chain of the entity, rather than the unit name of the file name.
11693 (Check_Nested_Access): New procedure.
11694 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11695 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11696 (Get_Renamed_Entity): Utility routine for performing common operation
11697 of chasing the Renamed_Entity field of an entity.
11699 2007-06-06 Robert Dewar <dewar@adacore.com>
11701 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11703 (Check_A_Call): Add check for entry call which was causing blowup
11705 2007-06-06 Olivier Hainque <hainque@adacore.com>
11707 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11708 special code on ia64-vms to handle major incompatibilities between the
11709 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11710 this routine with a very different set of arguments and expectations on
11713 2007-06-06 Thomas Quinot <quinot@adacore.com>
11715 * socket.c (__gnat_close_signalling_fd): New function.
11716 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11717 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11718 New supporting functions for task safe Netdb operations.
11720 2007-06-06 Thomas Quinot <quinot@adacore.com>
11721 Olivier Hainque <hainque@adacore.com>
11723 * a-except-2005.ads, a-except-2005.adb
11724 (Raise_From_Controlled_Operation): New procedure in
11725 (private part of) Ada.Exceptions (standard runtime version). Used to
11726 provide informational exception message when Program_Error is raised as
11727 a result of an Adjust or Finalize operation propagating an exception.
11728 (Rmsg_28): Fix description for E.4(18) check.
11729 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11730 propagation starts, to let debuggers know about the event in a reliable
11732 Take the address of E and dereference to make sure it is homed on stack
11733 and prevent the stores from being deleted, necessary for proper
11734 debugger behavior on "break exception" hits.
11735 (Local_Raise): Moved to System.Exceptions
11737 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11738 exception message from the current occurrence and raise Program_Error
11739 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11741 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11742 Arnaud Charlet <charlet@adacore.com>
11744 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11747 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11748 priority associated to a lock.
11750 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11751 assertion to take into account case of no abort restriction.
11752 (Initialize_Protection_Entries): Add initialization for the field
11753 New_Ceiling associated to the protected object.
11754 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11757 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11758 since this function needs to be set consistently with Update_Exception.
11760 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11761 since this function needs to be set consistently with Update_Exception.
11763 * s-taskin.ads: Update comments on
11764 Interrupt_Server_Blocked_On_Event_Flag.
11765 (Unbind_Handler): Fix handling of server_task wakeup
11766 (Server_Task): Set self's state so that Unbind_Handler can take
11767 appropriate actions.
11768 (Common_ATCB): Now use a constant from System.Parameters to determine
11769 the max size of the Task_Image field.
11771 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11772 Initialize_Analyzer function.
11773 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11774 take into account case of no abort restriction.
11775 ([Vulnerable_]Complete_Master): Modify assertion.
11777 * s-tataat.adb (Finalize): Use the nestable versions of
11778 Defer/Undefer_Abort.
11780 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11782 * s-tpobop.ads: Update comments.
11784 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11785 of locking the object manually, to avoid inconsistencies between
11786 Lock/Unlock_Entry assertions.
11788 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11790 application and System.Parameters.No_Abort is True.
11791 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11792 (Unbind_Handler): Fix handling of server_task wakeup
11793 (Server_Task): Set self's state so that Unbind_Handler can take
11794 appropriate actions.
11796 2007-06-06 Thomas Quinot <quinot@adacore.com>
11798 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11799 declarations instead of an explicit null body, for conciseness.
11801 2007-06-06 Robert Dewar <dewar@adacore.com>
11803 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11804 illegal aggregate and the type is still Any_Composite.
11805 (Subtypes_Statically_Match): Fix problem of empty discriminant list
11807 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11809 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11810 to prevent subsequent expansion.
11812 2007-06-06 Robert Dewar <dewar@adacore.com>
11814 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11816 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11817 Robert Dewar <dewar@adacore.com>
11819 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11821 (Write_Itype): Handle case of string literal subtype, which
11822 comes up in this context.
11823 (Update_Itype): when debugging expanded code, update sloc of itypes
11824 associated with defining_identifiers and ranges, for gdb use.
11825 (Sprint_Node_Actual): Add static keyword to object or exception
11826 declaration output if Is_Statically_Allocated is True.
11827 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11828 or task body, so that the tree carries the proper Sloc information for
11830 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11832 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11834 * s-secsta.adb (Chunk): Ensure this object has a static size known at
11835 compile time, to avoid dynamic memory allocation
11836 (Elaboration code): Only use dynamic memory allocation when needed.
11838 2007-06-06 Quentin Ochem <ochem@adacore.com>
11840 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11842 (Stack_Analyzer): Added field "Overflow_Guard"
11843 (Task_Result): Added field "Overflow_Guard".
11844 (Index_Str): New constant.
11845 (Task_Name_Str): New constant.
11846 (Actual_Size_Str): New constant.
11847 (Pattern_Array_Element_Size): New constant.
11848 (Get_Usage_Range): New subprogram.
11849 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11850 Now align the output.
11852 (Initialize): Added value for Overflow_Guard.
11853 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11854 Update the value of the overflow guard according to the actual
11855 beginning of the pattern array.
11856 (Initialize_Analyzer): Added parameter Overflow_Guard.
11857 Take this parameter into accound when computing the max size.
11858 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11859 (Report_Result): Removed extra useless procedure.
11860 Updated call to Output_Result.
11861 Moved full computation of the Task_Result here.
11863 2007-06-06 Thomas Quinot <quinot@adacore.com>
11865 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11866 Thread_Blocking_IO, always True by default, set False on a per-runtime
11868 Add Windows-specific constants
11869 Add new constant Need_Netdb_Buffer.
11870 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11871 not, whether to use getXXXbyYYY_r.
11873 * gsocket.h: Add new constant Need_Netdb_Buffer.
11874 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11875 not, whether to use getXXXbyYYY_r.
11877 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11879 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11880 than their first call.
11881 Add type Dummy_Communication_Block used in the generation of the pre-
11882 defined dispatching primitive _disp_asynchronous_select.
11883 (Storage_Element): Put Pragma Universal_Aliasing on it.
11885 2007-06-06 Vincent Celier <celier@adacore.com>
11887 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11890 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11891 letter if it is not followed by a '/' or a '\'.
11892 (Windows): New Boolean function
11894 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11896 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11898 (Containing_Directory): Raise Use_Error when the directory is a root
11900 (Extension): When returning the result, use a conversion to Result_Type,
11901 not a qualification.
11903 2007-06-06 Robert Dewar <dewar@adacore.com>
11905 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11906 (Set_Style_Check_Options): Recognize new -gnatyg style switch
11908 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11909 Warn_On_Non_Local_Exception to False, to turn off warnings for
11910 No_Exception_Propagation in ZFP runtime.
11911 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11913 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11915 2007-06-06 Vincent Celier <celier@adacore.com>
11917 * switch-b.adb (Scan_Binder_Switches): Add processing for new
11920 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11921 (Scan_Make_Switches): Recognize new switch -aP
11923 2007-06-06 Matthew Gingell <gingell@adacore.com>
11924 Jose Ruiz <ruiz@adacore.com>
11926 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11927 VxWorks task descriptor in the Ada run time, call a C subprogram
11928 (__gnat_get_stack_info) that extracts the required information.
11930 * sysdep.c: Back out temporary lynxos workaround.
11931 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11932 time the stack information associated to the currently executing task.
11933 Only VxWorks systems require this function.
11935 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11937 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11938 add the stack bias if the offset is computed from a frame address.
11939 (__gnat_backtrace): Adjust for above change.
11941 2007-06-06 Thomas Quinot <quinot@adacore.com>
11943 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11944 PE_Non_Transportable_Actual.
11945 (By_Descriptor_Last): New constant.
11946 (By_Copy_Return): Likewise.
11948 2007-06-06 Vincent Celier <celier@adacore.com>
11950 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11953 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11954 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11955 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11956 Add missing comment for /OPTIMIZE=SPACE
11957 Add entry for OPTIMIZE=SPACE
11958 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11959 Add documentation for new qualifiers corresponding to -gnatw.c/.C
11961 2007-06-06 Vincent Celier <celier@adacore.com>
11962 Robert Dewar <dewar@adacore.com>
11964 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11967 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11968 Document gnatbind switch -a
11969 (case Constructions): Document that variables declarations are allowed
11970 for previously declared variables.
11971 Fix external lib project example
11972 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11973 Indicate that "#if not X or Y then" is not allowed in input files to
11975 Document gnatw.x and gnatw.X warning flags
11976 Mention -Winline switch to activate warnings when back-end inlining is
11978 Add gnatcheck rule descriptions
11979 Describe how to use the GNAT driver to call a tool on a closure.
11980 Describe how to run project-wide checks or metrics.
11981 Document gnatbind's -R option
11982 Updated to account for Ada 2005 support
11984 * gnat_rm.texi (Case Construction): Allow variable declarations for
11985 previously declared variables.
11986 (Representation Clauses and Pragmas): Lift restriction on alignment
11987 clauses for record types.
11988 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11989 Document No_Exception_Propagation restriction
11990 Document No_Body pragma
11991 Updated to account for Ada 2005 support; corrected some typos
11992 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11994 * gnat-style.texi: Make it clear that we never use mode IN for
11995 procedures or functions
11997 * ug_words: Add entries for -gnatw.x and -gnatw.X
11998 Add entries for -gnatw.c/.C
12000 2007-06-06 Pascal Obry <obry@adacore.com>
12001 Vincent Celier <celier@adacore.com>
12003 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12004 dirs and library name.
12005 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12007 (Build_Library): Idem.
12008 (Compile_Individual_Sources): Idem.
12009 (Compile_Link_With_Gnatmake): Idem.
12010 (Compile_Sources): Idem.
12011 (Get_Imported_Directories): Idem.
12012 (Link_Executables): Idem. Same change for the executable dir.
12013 (Check_Compilation_Needed): C_Source_Path new variable containing
12014 the canonical form of Source_Path to check against the source names
12015 in the dependency file.
12016 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12017 verbose mode, display the name of the object directory we're changing
12019 (Saved_Switches): New name of table X_Switches
12020 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12021 (Usage): New line for switch -aP
12022 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12023 testing if a directory should be added to the search path.
12025 2007-06-06 Javier Miranda <miranda@adacore.com>
12027 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12028 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12029 declaration after freezing point of all its associated tagged types;
12030 otherwise such types are frozen too early.
12032 2007-06-06 Robert Dewar <dewar@adacore.com>
12034 * a-reatim.adb: Documentation addition
12036 * g-cgideb.adb: Minor code reorganization
12038 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12039 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12040 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12042 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12043 function. Change name New_Scope to Push_Scope
12044 (Get_Debug_Flag_K): Remove unused obsolete function.
12046 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12049 * makeusg.adb: Update Copyright notice
12050 Add line for switch -aP
12052 * makeusg.adb: Fix wording of some usage messages
12054 * s-assert.adb (Raise_Assert_Failure): Add call to
12055 Debug_Raise_Assert_Failure.
12057 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12058 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12059 is restricted to 1).
12061 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12063 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12064 node location to No_Location when we're not debugging the expanded
12067 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
12069 * misc.c (enumerate_modes): Consider log2_b to always be one.
12071 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
12073 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12075 2007-05-02 Pascal Obry <obry@adacore.com>
12077 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12078 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12079 encoding support of Stream_IO.
12080 (Write_Unit): Idem.
12082 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12083 filename and corresponding encoding to match the OS requirement.
12084 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12085 routine will fail on specific devices like CON: AUX: ...
12087 PR ada/29856: Add missing braces
12089 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12092 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12094 2007-04-21 Jan Hubicka <jh@suse.cz>
12096 * misc.c (gnat_expand_body): Don't call target for destructors,
12097 avoid redundant check on syntax errors.
12099 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12101 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12102 instead of checking GIMPLE_STMT_P in chain_next.
12104 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
12107 * system-linux-alpha.ads: Disable constant condition warning for the
12108 Default_Bit_Order variable.
12109 * system-linux-s390.ads: Likewise.
12110 * system-linux-s390x.ads: Likewise.
12111 * system-linux-sparc.ads: Likewise.
12113 2007-04-06 Javier Miranda <miranda@adacore.com>
12114 Matt Heaney <heaney@adacore.com>
12115 Robert Dewar <dewar@adacore.com>
12117 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12118 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12119 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12120 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12121 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12122 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12123 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12124 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12125 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12126 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12127 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12128 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12129 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12130 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12131 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12132 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12133 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12134 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12135 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12136 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12137 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12138 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12139 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12140 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12141 s-taprop-tru64.adb, s-taprop-irix.adb,
12142 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12143 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12144 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12145 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
12146 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
12147 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
12148 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
12149 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
12150 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
12151 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
12152 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
12153 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12154 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
12155 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
12156 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
12157 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
12158 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
12159 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12160 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
12161 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12163 Update documentation.
12166 2007-04-06 Robert Dewar <dewar@adacore.com>
12168 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12169 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12170 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12171 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12172 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12173 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12174 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12175 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12176 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12177 system-hpux-ia64.ads, targparm.adb,
12178 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12180 * system.ads: Move Functions_Return_By_DSP to obsolete section,
12181 kept for bootstrap purposes only.
12183 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12185 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12186 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12187 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12188 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12190 2007-04-06 Robert Dewar <dewar@adacore.com>
12192 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12193 (Local_Raise): New dummy procedure called when a raise is converted
12194 to a local goto. Used for debugger to detect that the exception
12197 * debug.adb: Document new d.g flag (expand local raise statements to
12198 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12200 * exp_sel.adb: Use Make_Implicit_Exception_Handler
12202 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12203 suppress warnings for unused handlers.
12204 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
12205 warnings for raise statements not handled locally.
12206 (Get_RT_Exception_Entity): New function
12207 (Get_Local_Call_Entity): New function
12208 (Find_Local_Handler): New function
12209 (Warn_If_No_Propagation): New procedure
12210 (Expand_At_End_Handler): Call Make_Implicit_Handler
12211 (Expand_Exception_Handlers): Major additions to deal with local handlers
12212 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12213 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12216 * exp_ch11.ads (Get_RT_Exception_Entity): New function
12217 (Get_Local_Call_Entity): New function
12219 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12220 of restrictions that the binder will never suggest adding.
12222 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12225 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12226 be with'ed in the presence of pragma Restriction
12227 (No_Exception_Propagation).
12229 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12231 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12232 parameter, then the handler is not a suitable target for a local raise,
12233 and this is a violation of restriction No_Exception_Propagation.
12234 (Analyze_Handled_Statements): Analyze choice parameters in exception
12235 handlers before analyzing statement sequence (needed for proper
12236 detection of local raise statements).
12237 (Analyze_Raise_Statement): Reraise statement is a violation of the
12238 No_Exception_Propagation restriction.
12240 * s-rident.ads: Add new restriction No_Exception_Propagation
12242 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12243 function, like Make_Exception_Handler but sets Local_Raise_Statements
12245 (Add_Unique_Serial_Number): Deal with case where this is called during
12246 processing of configuration pragmas.
12248 2007-04-06 Thomas Quinot <quinot@adacore.com>
12249 Pat Rogers <rogers@adacore.com>
12250 Pascal Obry <obry@adacore.com>
12252 * g-stsifd-sockets.adb: New file.
12254 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12255 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12256 g-socthi-vms.adb: Move signalling
12257 fd management to a nested package, so that they can conveniently be
12258 moved to a subunit that is shared across Windows, VMS, and VxWorks
12259 (Ada implementation) or completed with imported bodies from socket.c
12261 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12263 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12264 the signalling file descriptor.
12265 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12266 signalling file descriptor.
12267 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12268 instead of creating a pair of sockets for signalling here.
12270 * g-socthi.adb: Ditto.
12271 Set the runtime process to ignore SIGPIPEs on platforms that support
12272 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12274 * g-socthi-mingw.adb: Ditto.
12275 (WS_Version): Use Windows 2.2.
12276 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12278 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12279 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12281 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12282 added GNAT byte swapping facility
12283 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12285 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12287 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12289 (__gnat_create_signalling_fds): New subprogram.
12290 Set the runtime process to ignore SIGPIPEs on platforms that support
12291 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12293 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12294 Vincent Celier <celier@adacore.com>
12296 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12297 New version of Ada.Calendar which supports the new upper bound of Ada
12298 time (2399-12-31 86_399.999999999).
12299 The following modifications have been made to the package:
12300 - New representation of time as count of nanoseconds since the start of
12301 Ada time (1901-1-1 0.0).
12302 - Target independent Split and Time_Of routines which service both
12303 Ada 95 and Ada 2005 code.
12304 - Target independent interface to the Ada 2005 children of Calendar.
12305 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12306 - Handling of non-leap centenial years.
12307 - Updated clock function.
12308 - Updated arithmetic and comparison operators.
12310 * a-caldel.adb (To_Duration): Add call to target independent routine in
12311 Ada.Calendar to handle the conversion of time to duration.
12313 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12315 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12317 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12318 targets do not have a natural time zone, GMT is used as a default.
12319 (__gnat_get_task_options): New.
12321 * a-direct.adb (Modification_Time): Add with and use clauses for
12322 Ada.Calendar and Ada.
12323 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12324 since it is no longer needed.
12325 (Duration_To_Time): Removed.
12326 (OS_Time_To_Long_Integer): Removed.
12327 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12328 Formatting Time_Of routines which automatically handle time zones,
12329 buffer periods and leap seconds.
12331 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12332 target independent routines in Ada.Calendar.
12334 * a-calfor.ads, a-calfor.adb:
12335 Code cleanup and addition of validity checks in various routines.
12336 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12339 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12340 independent routine in Ada.Calendar.
12342 2007-04-06 Olivier Hainque <hainque@adacore.com>
12345 (convert_addresses): Adjust prototype and dummy definition to expect an
12346 extra file_name argument.
12348 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12349 filling the now expected file_name argument with the appropriate
12351 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12352 (tracebk): Array of void * instead of char *, corresponding to what
12353 convert_addresses expects.
12354 (exename): New static global, to hold the executable file name to be
12355 used in all convert_addresses invocations.
12356 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12358 (__gnat_gmem_a2l_initialize): Resolve exename.
12359 (__gnat_convert_addresses): Use exename as the convert_addresses
12360 file_name argument.
12362 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12363 "convert_addresses", now expecting a filename argument. Import the
12364 necessary entities to compute the filename to use and pass it to
12367 2007-04-06 Matt Gingell <gingell@adacore.com>
12369 * system-aix.ads: Back out previous change.
12370 (Functions_Return_By_DSP): Removed
12372 2007-04-06 Pascal Obry <obry@adacore.com>
12374 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12375 or the monotonic used by Ada.Real_Time) to compute the sleep duration
12378 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12380 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12381 function. Its value changes in different VxWorks versions, and it is
12382 now handled by the function __gnat_get_task_options.
12384 * s-taprop-vxworks.adb (Create_Task): Call the function
12385 __gnat_get_task_options to get the required options for creating a task.
12387 2007-04-06 Pascal Obry <obry@adacore.com>
12388 Thomas Quinot <quinot@adacore.com>
12390 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12391 dealing with filename.
12392 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12393 filename from a standard string to a wide-string depending on the
12395 (__gnat_freopen): Idem.
12396 (__gnat_current_time): New function (wrapper for time(3) standard C
12399 * g-os_lib.ads (Current_Time): New function. Returns the current
12400 system time as an OS_Time value.
12402 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12403 (Monotonic_Clock): Same.
12405 2007-04-06 Quentin Ochem <ochem@adacore.com>
12407 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12409 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12411 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12413 * a-retide.adb: Add elaboration code to ensure that the tasking run
12414 time is initialized when using delay operations even when no task is
12417 2007-04-06 Javier Miranda <miranda@adacore.com>
12419 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12420 component Num_Prim_Ops.
12421 (Set_Num_Prim_Ops): Removed.
12422 Remove all the assertions because all the routines of this
12423 package are inline always.
12424 (Get_Offset_Index): Add support to primary dispatch tables.
12425 Move the documentation about the dispatch table to a-tags.ads
12426 (Set_External_Tag): Removed
12427 (Inherit_TSD): Removed.
12428 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12429 moved to a-tags.ads
12430 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12431 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12432 of the TSD field "Table" because this field has been renamed to
12434 (Inherit_CPP_DT): Removed.
12435 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12436 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12437 declarations have been moved to a-tags.ads
12438 (Check_Size): Removed.
12439 (Expanded_Name): Updated to get access to the new field of TSD
12440 containing the address of the expanded name.
12441 (Get_Access_Level/Set_Access_Level): Removed.
12442 (Get_Predefined_Prim_Op_Address): Removed.
12443 (Set_Predefined_Prim_Op_Address): Removed.
12444 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12445 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12446 (Set_Expanded_Name): Removed.
12447 (Inherit_DT): Removed.
12448 (Inherit_CPP_DT): Removed.
12449 (Set_RC_Offset): Removed.
12450 (Set_TSD): Removed.
12451 (Base_Address): New function that displaces "this" to point to the base
12452 of the object (that is, to point to the primary tag of the object).
12454 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12455 Javier Miranda <miranda@adacore.com>
12457 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12458 anonymous access component, do not create a master_id if type already
12459 has one, as may happen if the type is a subcomponent of a packed array
12461 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12462 Initialize_Tag): Remove code associated with the old CPP pragmas.
12463 CPP_Virtual and CPP_Vtable are no longer supported.
12464 (Build_Offset_To_Top_Internal): Add support for concurrent record types
12465 (Build_Offset_To_Top_Functions): Add support for concurrent record types
12466 (Freeze_Record_Type): Remove call to
12467 Init_Predefined_Interface_Primitives.
12468 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12469 code required to initialize the tags of the secondary dispatch tables.
12470 This leaves the algoritm more clear.
12471 (Init_Secondary_Tags): Add support for concurrent record types
12472 (Make_Predefined_Primitive_Specs): Code cleanup.
12473 (Predefined_Primitive_Bodies): Code cleanup.
12474 (Build_Master_Renaming): New local subprogram.
12475 (Expand_N_Full_Type_Declaration): Build the master_id associated with
12476 anonymous access to task type components.
12477 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12478 subtype indication are resolved during analysis, and must not be done
12480 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12482 2007-04-06 Geert Bosch <bosch@adacore.com>
12483 Ed Schonberg <schonberg@adacore.com>
12484 Javier Miranda <miranda@adacore.com>
12485 Bob Duff <duff@adacore.com>
12487 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12488 for conversion of a Float_Type'Truncation to integer.
12490 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12491 check if a node is an attribute that can be handled directly by the
12493 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12494 attributes that can be handled directly by the back end.
12495 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12496 use new predicate Is_Access_Protected_Subprogram_Type.
12497 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12498 and Unchecked_Union if it is generated as part of the default Output
12499 procedure for a type with default discriminants.
12500 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12501 if we are compiling under restriction No_Dispatching_Calls.
12502 (Constrained): Use Underlying_Type, in case the type is private without
12503 discriminants, but the full type has discriminants.
12504 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12505 call to Build_Get_Access_Level.
12506 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12507 interface objects requires a call to the run-time subprogram that
12508 returns the base address of the object.
12509 (Valid_Conversion): Improve error message on illegal attempt to store
12510 an anonymous access to subprogram value into a record component.
12512 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12514 (Simplify_Type_Conversion): New procedure that performs simplification
12515 of Int_Type (Float_Type'Truncation (X)).
12516 (Resolve_Type_Conversion): Call above procedure after resolving operand
12517 and before performing checks. This replaces the existing ineffective
12519 (Set_String_Literal_Subtype): When creating the internal static lower
12520 bound subtype for a string literal, use a newly created copy of the
12521 subtree representing the lower bound.
12522 (Resolve_Call): Exclude build-in-place function calls from transient
12523 scope treatment. Update comments to describe this exception.
12524 (Resolve_Equality_Op): In case of dispatching call check violation of
12525 restriction No_Dispatching_Calls.
12526 (Resolve_Call): If the call returns an array, the context imposes the
12527 component type of the array, and the function has one non-defaulted
12528 parameter, rewrite the call as the indexing of a call with a single
12529 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12531 (Resolve_Actuals): If an actual is an allocator for an access parameter,
12532 the master of the created object is the innermost enclosing statement.
12533 (Remove_Conversions): For a binary operator, check if type of second
12534 formal is numeric, to check if an abstract interpretation is present
12535 in the case of exponentiation as well.
12537 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12538 Bob Duff <duff@adacore.com>
12540 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12541 copying a parameter list in a call, set properly the First_Named_Formal
12542 and Next_Named_Formal fields in the new list and in the enclosing call.
12543 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12544 names, to ease typing in the debugger. Improve comments.
12545 (Watch_Node): New variable, intended to be set in the debugger.
12546 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12547 called when the watched node is created.
12548 (New_Node_Debugging_Output): Combined version of local procedures
12549 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12550 with a parameter so that conditional breakpoints like "if Node = 12345"
12552 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12553 Add Elist1 function
12555 2007-04-06 Thomas Quinot <quinot@adacore.com>
12556 Ed Schonberg <schonberg@adacore.com>
12557 Gary Dismukes <dismukes@adacore.com>
12559 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12560 required for a conversion between two access-to-unconstrained-array
12562 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12563 to discriminant constraints on discriminant objects. This rule must
12564 apply as well to discriminants of protected types in private components.
12565 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12566 object of a null-excluding access type then don't require the
12567 the object declaration to have an expression and don't emit a
12570 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12571 Eric Botcazou <botcazou@adacore.com>
12573 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12576 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12577 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12580 * fe.h (Compiler_Abort): Add third parameter.
12582 * misc.c (internal_error_function): Build third argument from current
12583 input location and pass it to Compiler_Abort.
12585 2007-04-06 Gary Dismukes <dismukes@adacore.com>
12587 * cstand.adb (Create_Standard): When the target's storage unit size is
12588 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12591 2007-04-06 Nicolas Roche <roche@adacore.com>
12593 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12594 absolute path can have the following form: device:/a/b. In this case
12595 '/' should be inserted between the path and the filename.
12597 2007-04-06 Olivier Hainque <hainque@adacore.com>
12598 Eric Botcazou <botcazou@adacore.com>
12600 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12601 VAR_DECL to a CONST_DECL we make for a public constant when we know the
12602 corresponding definition has created the so made visible variable.
12603 Handle anonymous access to protected subprogram.
12604 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12605 object with an address clause volatile. Re-enable original fix.
12606 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12608 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12609 associated with either the Equivalent or Root type, instead of the
12611 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12612 subtree for every field of a global record type.
12613 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12614 discriminants, invoke again variable_size on its newly computed sizes.
12616 2007-04-06 Robert Dewar <dewar@adacore.com>
12617 Thomas Quinot <quinot@adacore.com>
12618 Ed Schonberg <schonberg@adacore.com>
12619 Bob Duff <duff@adacore.com>
12621 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12622 (Next_Component_Or_Discriminant): New function and procedure
12623 (First_Index, First_Literal, Master_Id,
12624 Set_First_Index, Set_First_Literal, Set_Master_Id):
12625 Add missing Ekind assertions.
12626 (Is_Access_Protected_Subprogram_Type): New predicate.
12627 (Has_RACW): New entity flag, set on package entities to indicate that
12628 the package contains the declaration of a remote accecss-to-classwide
12630 (E_Return_Statement): This node type has the Finalization_Chain_Entity
12631 attribute, in case the result type has controlled parts.
12632 (Requires_Overriding): Add this new flag, because "requires
12633 overriding" is subtly different from "is abstract" (see AI-228).
12634 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12635 Is_Abstract_Type. Make sure these are called only when appropriate.
12636 (Has_Pragma_Unreferenced_Objects): New flag
12638 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12639 class-wide, the tag of the right-hand side must be an exact match, not
12640 an ancestor of that of the object on left-hand side.
12641 (Move_Activation_Chain): New procedure to create the call to
12642 System.Tasking.Stages.Move_Activation_Chain.
12643 (Expand_N_Extended_Return_Statement): Generate code to call
12644 System.Finalization_Implementation.Move_Final_List at the end of a
12645 return statement if the function's result type has controlled parts.
12646 Move asserts to Build_In_Place_Formal.
12647 (Move_Final_List): New function to create the call statement.
12648 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12649 tagged type, replace generation of call to the run-time subprogram
12650 CW_Membership by call to Build_CW_Membership.
12651 (Expand_N_Return_Statement): Replace generation of call to the run-time
12652 subprogram Get_Access_Level by call to Build_Get_Access_Level.
12653 (Expand_N_Simple_Function_Return): Replace generation of call to the
12654 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12656 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12657 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12658 access to protected operations.
12659 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12660 master and chain actual parameters to a build-in-place function call
12662 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12664 (Make_Build_In_Place_Call_In_Allocator,
12665 Make_Build_In_Place_Call_In_Anonymous_Context,
12666 Make_Build_In_Place_Call_In_Assignment,
12667 Make_Build_In_Place_Call_In_Object_Declaration): Call
12668 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12669 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12670 stubbed procedure with a null body, replace the call with a null
12671 statement without using the full inlining machinery, for efficiency
12672 and to avoid invalid values in source file table entries.
12674 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12675 renamings of calls to build-in-place functions.
12677 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12678 provides the functionality of RTE_Available to record components.
12679 (RTU_Entity): The function Entity has been renamed to RTU_Entity
12680 to avoid undesired overloading.
12681 (Entity): New subprogram that returns the entity for the referened
12682 unit. If this unit has not been loaded, it returns Empty.
12683 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12684 Remove no longer used entities.
12685 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12686 (RE_Type_Specific_Data): New entity.
12687 (RE_Move_Any_Value): New entity.
12688 (RE_TA_A, RE_Get_Any_Type): New entities.
12689 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12690 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12691 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12692 (Entity): New subprogram that returns the entity for the referened
12693 unit. If this unit has not been loaded, it returns Empty.
12694 (RTE): Addition of a new formal that extends the search to the scopes
12695 of the record types found in the chain of the package.
12697 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12698 "abstract subprograms must be visible" message, whether or not the type
12699 is an interface; that is, remove the special case for interface types.
12700 (Analyze_Function_Return): Remove error message "return of task objects
12701 is not yet implemented" because this is now implemented.
12702 (Create_Extra_Formals): Add the extra master and activation chain
12703 formals in case the result type has tasks.
12704 Remove error message "return of limited controlled objects is not yet
12706 (Create_Extra_Formals): Add the extra caller's finalization list formal
12707 in case the result type has controlled parts.
12708 (Process_Formals): In case of access formal types there is no need
12709 to continue with the analysis of the formals if we already notified
12711 (Check_Overriding_Indicator): Add code to check overriding of predefined
12713 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12714 flags for formals that do not require them,.
12715 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12716 hidden entity is use visible or directly visible.
12717 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12718 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12719 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12720 New_Overloaded_Entity): Split Is_Abstract flag into
12721 Is_Abstract_Subprogram and Is_Abstract_Type.
12723 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12724 a return statement's finalization list to the caller's list, used for
12725 build-in-place functions with result type with controlled parts.
12726 Remove no longer used entities.
12728 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12729 longer needed, because the full type is now limited, and therefore a
12730 pass-by-reference type.
12731 (Foreign_Task_Level): New constant.
12733 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12734 move tasks from the activation chain belonging to a return statement to
12735 the one passed in by the caller, and update the master to the one
12736 passed in by the caller.
12737 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12738 of unactivated tasks, so we don't kill the ones that are being returned
12739 by a build-in-place function.
12740 (Create_Task): Ignore AI-280 for foreign threads.
12742 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12743 Robert Dewar <dewar@adacore.com>
12744 Bob Duff <duff@adacore.com>
12745 Gary Dismukes <dismukes@adacore.com>
12747 * errout.adb (Unwind_Internal_Type): Use predicate
12748 Is_Access__Protected_Subprogram_Type.
12750 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12751 (Freeze_Entity, packed array case): Do not override explicitly set
12752 alignment and size clauses.
12753 (Freeze_Entity): An entity declared in an outer scope can be frozen if
12754 the enclosing subprogram is a child unit body that acts as a spec.
12755 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12756 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12757 Remove all code for DSP option
12759 * layout.adb (Layout_Record_Type): Use First/
12760 Next_Component_Or_Discriminant
12761 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12762 to handle properly the anonymous access case.
12764 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12765 for all access attributes, because overload resolution should work the
12766 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12767 causes the error message for the ambiguous "X'Access = Y'Access" and
12768 "X'Unrestricted_Access = Y'Access" and so forth to match.
12769 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12770 now that anonymous access to protected operations have their own kind.
12771 (Resolve_Attribute): In case of dispatching call check the violation of
12772 restriction No_Dispatching_Calls.
12773 (Check_Array_Type): Check new -gnatyA array index style option
12775 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12776 attempt to derive from a synchronized tagged type.
12777 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12778 type, inherit the class-wide type already created, because it may
12779 already have been used in a self-referential anonymous access component.
12780 (Mentions_T): Recognize self-referential anonymous access components
12781 that use (a subtype of) the class-wide type of the enclosing type.
12782 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12783 Derived_Type for Prev formal on call to
12784 Check_Anonymous_Access_Components rather than Empty.
12785 (Make_Incomplete_Type_Declaration): Add test for case where the type has
12786 a record extension in deciding whether to create a class-wide type,
12787 rather than just checking Tagged_Present.
12788 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12789 to stand-alone object declarations as well as component declarations.
12790 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12791 prevent accidental overwriting when enclosing package appears in
12792 a limited_with_clause.
12793 (Array_Type_Declaration): If the component type is an anonymous access,
12794 the associated_node for the itype is the type declaration itself.
12795 (Add_Interface_Tag_Components): Modified to support concurrent
12796 types with abstract interfaces.
12797 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12798 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12799 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12800 to complete the decoration of synchronized interface types. Add also
12801 a call to Check_Abstract_Interfaces to verify the ARM rules.
12802 (Derive_Interface_Subprograms): Modified to support concurrent types
12803 with abstract interfaces.
12804 (Analyze_Subtype_Indication): Resolve the range with the given subtype
12805 mark, rather than delaying the full resolution depending on context.
12806 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12807 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12808 Array_Type_Declaration,Build_Derived_Record_Type,
12809 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12810 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12811 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12812 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12813 called only when appropriate.
12814 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12816 (Analyze_Subtype_Declaration): For an access subtype declaration, create
12817 an itype reference for the anonymous designated subtype, to prevent
12818 scope anonmalies in gigi.
12819 (Build_Itype_Reference): New utility, to simplify construction of such
12822 2007-04-06 Vincent Celier <celier@adacore.com>
12824 * errutil.adb (Initialize): Initialize warnings table, if all warnings
12825 are suppressed, supply an initial dummy entry covering all possible
12828 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12829 and start with only one, such as "-RTS=none".
12830 (Collect_Arguments): Do not check for sources outside of projects.
12831 Do not collect arguments if project is externally built.
12832 (Compile_Sources): Do nothing, not even check if the source is up to
12833 date, if its project is externally built.
12834 (Compile): When compiling a predefined source, add -gnatpg
12835 as the second switch, after -c.
12836 (Compile_Sources): Allow compilation of Annex J renames without -a
12837 (Is_In_Object_Directory): Check if the ALI file is in the object
12838 even if there is no project extension.
12839 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12840 gnatbind if the ALI file effectively exists.
12841 (Initialize): Add the directory where gnatmake is invoked in front of
12842 the path if it is invoked from a bin directory, even without directory
12843 information, so that the correct GNAT tools will be used when spawned
12844 without directory information.
12846 * makeusg.adb: Change switch -S to -eS
12847 Add lines for new switches -we, -wn and -ws
12848 Add line for new switch -p
12850 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12851 Treat_As_Error and there are warnings.
12853 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12854 -gnatww Change gnatmake switch -S to -eS
12855 (Scan_Make_Switches): Code reorganisation. Process separately multi
12856 character switches and single character switches.
12857 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12858 False when switch is not recognized by gnatmake.
12859 (Scan_Make_Switches): Set Setup_Projects True when -p or
12860 --create-missing-dirs is specified.
12862 * fname.adb (Is_Predefined_File_Name): Return True for annex J
12863 renamings Calendar, Machine_Code, Unchecked_Conversion and
12864 Unchecked_Deallocation only when Renamings_Included is True.
12866 * par.adb: Allow library units Calendar, Machine_Code,
12867 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12868 when -gnatg is not specified.
12869 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12870 there is no need to generate always a record_definition_node in case
12871 of synchronized interface types.
12872 (SIS_Entry_Active): Initialize global variable to False
12873 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12874 indicate cases where AI-447 says "not null" is legal.
12876 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12878 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12879 files with with several lines starting with the object fileb name.
12880 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12882 (Initialize): Add the directory where gprmake is invoked in front of the
12883 path, if it is invoked from a bin directory or with directory
12884 information, so that the correct GNAT tools will be used when invoked
12886 (Check_Compilation_Needed): Process correctly backslashes on Windows.
12888 * vms_data.ads: Update switches/qualifiers
12890 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12891 Thomas Quinot <quinot@adacore.com>
12894 If the array component is a discriminated record, the array aggregate
12895 is non-static even if the component is given by an aggregate with
12897 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12898 (Convert_Aggr_In_Allocator): If the allocator is for an access
12899 discriminant and the type is controlled. do not place on a finalization
12900 list at this point. The proper list will be determined from the
12902 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12903 initialize record controller if needed, before the components, to ensure
12904 that they are properly finalized.
12905 (Build_Record_Aggr_Code): For the case of an array component that has a
12906 corresponding array aggregate in the record aggregate, perform sliding
12909 2007-04-06 Javier Miranda <miranda@adacore.com>
12910 Gary Dismukes <dismukes@adacore.com>
12911 Ed Schonberg <schonberg@adacore.com>
12913 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12914 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12916 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12917 accessibility on class-wide allocators if the allocator occurs at the
12918 same scope level as the allocator's type. The check is guaranteed to
12919 succeed in that case, even when the expression originates from a
12920 parameter of the containing subprogram.
12921 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12922 under No_Dispatching_Calls restriction. During the semantic analysis
12923 we already notified such violation.
12924 (Tagged_Membership): Constant folding. There is no need to check
12925 the tag at run-time if the type of the right operand is non
12926 class-wide abstract.
12927 Replace call to Is_Ancestor by call to Is_Parent
12928 to support concurrent types with interface types.
12929 (Expand_N_Allocator): Add an assertion associated with the generation
12931 (Expand_N_Slice): Do not enable range check to nodes associated
12932 with the frontend expansion of the dispatch table.
12933 (Is_Local_Access_Discriminant): Subsidiary function to
12934 Expand_N_Allocator.
12935 (Tagged_Membership): Replace generation of call to the run-time
12936 subprogram CW_Membership by call to Build_CW_Membership.
12937 (Expand_Allocator_Expression): Replace generation of call to the
12938 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12940 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12941 initialize most the TSD components by means of an aggregate.
12942 Modify the declaration of the object containing the TSD
12943 because we now expand code that has a higher level of abstraction.
12944 The TSD has a discriminant containing the Inheritance Depth Level,
12945 value that is used in the membership test but also to fix the size
12946 of the table of ancestors.
12947 (Expand_Interface_Conversion): Insert function body at the closest place
12948 to the conversion expression, to prevent access-before-elaboration
12949 errors in the backend.
12950 Code improved to reduce the size of the dispatch table if
12951 compiling under restriction No_Dispatching_Calls plus code cleanup.
12952 Code reorganization plus removal of calls to Set_Num_Prim_Ops
12953 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12954 (Expand_Dispatching_Call): Minor code reorganization plus addition of
12955 code to return immediately if compiling under No_Dispatching_Calls
12957 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12958 CPP_Virtual and CPP_Vtable are no longer supported.
12959 (Expand_Interface_Conversion): Add missing support for interface type
12961 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12962 Is_Parent to support concurrent types with interfaces.
12963 (Init_Predefined_Interface_Primitives): Removed.
12964 (Make_Secondary_DT): Modified to support concurrent record types.
12965 (Set_All_DT_Position): Modified to support concurrent record types.
12966 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12967 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12968 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12969 with CW_Membership.
12970 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12971 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12972 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12973 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12974 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12975 (Expand_Dispatching_Call): Replace generation of call to the run-time
12976 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12977 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12979 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12980 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12981 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12982 Build_Set_Prim_Op_Address.
12983 (Get_Remotely_Callable): Subprogram removed.
12984 (Init_Predefined_Interface_Primitives): Replace generation of call to
12985 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12988 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12989 First (Parameter_Associations ()) with the call to First_Actual that
12990 returns an actual parameter expression for both named and positional
12993 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12994 check violation of restriction No_Dispatching_Calls.
12995 (Check_Controlling_Type): A formal of a tagged incomplete type is a
12996 controlling argument.
12998 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12999 First/Next_Component_Or_Discriminant
13000 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13001 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13002 specify Any_Limited_Interface, and this functionality is already
13003 provided by the function Has_Abstract_Interfaces.
13004 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13005 support concurrent types implementing interfaces.
13006 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13007 specify kind Any_Limited_Interface, and this functionality is already
13008 provided by the function Has_Abstract_Interfaces.
13009 (Remove_Side_Effects): replace Controlled_Type by
13010 CW_Or_Controlled_Type whenever the issue is related to
13011 using or not the secondary stack.
13013 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13014 P_Interface_Type_Definition to fulfill the new interface (the formal
13015 Is_Synchronized is no longer required).
13017 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13018 Update dependencies.
13020 * exp_atag.ads, exp_atag.adb: New file
13022 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13023 Bob Duff <duff@adacore.com>
13024 Cyrille Comar <comar@adacore.com>
13026 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13027 anonymous, use finalization list of enclosing dynamic scope.
13028 (Expand_N_Package_Declaration): For a library package declaration
13029 without a corresponding body, generate RACW subprogram bodies in the
13030 spec (just as we do for the task activation call).
13031 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13032 Is_Abstract_Type. Make sure these are called only when appropriate.
13033 Remove all code for DSP option
13034 (CW_Or_Controlled_Type): new subprogram.
13036 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13037 Ed Schonberg <schonberg@adacore.com>
13038 Gary Dismukes <dismukes@adacore.com>
13040 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13041 parameter. If it is set to true, return a result capped according to
13042 the global upper bound for the index of an entry family.
13043 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13044 (Build_Find_Body_Index): Adjust for above change.
13045 (Entry_Index_Expression): Likewise.
13046 (Is_Potentially_Large_Family): New function extracted from...
13047 (Collect_Entry_Families): ...here. Call it to detect whether the family
13048 is potentially large.
13049 (Build_Entry_Count_Expression): If the family is potentially large, call
13050 Family_Size with 'Cap' set to true.
13051 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13052 a protected version of an operation declared in the private part of
13053 a protected object, because they may be invoked through a callback.
13054 (Set_Privals): If the type of a private component is an anonymous access
13055 type, do not create a new itype for each protected body.
13056 If the body of a protected operation creates
13057 controlled types (including allocators for class-widetypes), the
13058 body of the corresponding protected subprogram must include a
13060 (Build_Activation_Chain_Entity): Build the chain entity for extended
13062 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13063 to determine whether operation overrides an inherited primitive.
13064 (Build_Wrapper_Spec): Add code to examine the parents while looking
13065 for a possible overriding candidate.
13066 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13067 hold an actual parameter value since its initialization is separated
13068 from the the declaration. Prevents errors on null-excluding access
13071 2007-04-06 Thomas Quinot <quinot@adacore.com>
13072 Pablo Oliveira <oliveira@adacore.com>
13074 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13075 Do an Unchecked_Conversion to handle the passage from the Underlying
13076 Type to the Base Type when calling Build_To_Any_Call and
13077 Build_From_Any_Call.
13078 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13079 E_Constant, depending upon Variable formal.
13080 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13081 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13082 parameter that requires an extra constrained parameter, declare
13083 temporary for actual as a variable, not a constant.
13084 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13085 the unit being compiled is the one that contains the stub type.
13086 Change primitive operation name for the RACW associated with a RAS
13087 from Call to _Call so it cannot clash with any legal identifier.
13088 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13090 (Append_RACW_Bodies): New subprogram.
13091 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13092 Add_Receiving_Stubs_To_Declarations functions.
13093 When expanding a package body, this list correspond to the
13094 statements in the HSS at the end of the pacakge.
13095 When expanding a package spec, this list correspond to the
13097 (Add_Receiving_Stubs_To_Declarations): Append the function
13098 registering the receiving stubs at the end of the 'Stmts' list.
13099 (RCI_Package_Locator): Pass the new Version generic formal when
13100 instantiating a RCI_Locator package.
13101 (Build_From_Any_Function): To compute the High bound for an
13102 unconstrained array actual, we add the Low bound with the length.
13103 Thus we must convert the low bound and the length to an appropriate
13104 type before doing the sum.
13105 (Build_Subprogram_Receiving_Stubs, PolyORB):
13106 * Retrieve the extra formals parameters at the
13107 end of the parameter stream.
13108 * Use Move_Any_Value to write back out parameters
13109 after executing the request as it is more efficient
13110 than Copy_Any_Value.
13111 * Build the any containing Extra Formals with the
13112 appropriate typecode.
13113 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13114 empty Component_List.
13115 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13116 the tree the declaration for an object that serves as actual parameter
13117 in server-side stubs.
13118 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13119 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13120 Use Build_Actual_Object_Declaration to prepare the actuals.
13121 (Add_Parameter_To_NVList): Set the parameter mode to In for
13122 Extra Constrained Parameters.
13123 (Build_General_Calling_Stubs): Set the parameter type to boolean for
13124 Extra Constrained parameters.
13125 (Build_To_Any_Function, Build_From_Any_Function,
13126 Built_TypeCode_Function): When Typ is implicit, call the correct
13127 function with the first not implicit parent type.
13128 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13129 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13130 typecode from the Etype. Therefore we retrieve the correct typecode
13131 with a call to Get_Any_Type.
13132 (Copy_Specification): Do controlling formal type substitution based on
13133 Is_Controlling_Formal flag, instead of caller-provided object type.
13134 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13135 a RACW primitive operation, we might get a subprogram declaration for an
13136 ancestor of the RACW designated type (not for the designated type
13137 itself), in the case where this operation is inherited. In this case we
13138 have no easy means of determining the original tagged type for which
13139 the primitive was declared, so instead we now rely on
13140 Copy_Specification to use the Is_Controlling_Formal flag to determine
13141 which formals require type substitution.
13143 2007-04-06 Robert Dewar <dewar@adacore.com>
13144 Ed Schonberg <schonberg@adacore.com>
13146 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13147 GNAT.Current_Exception are not allowed if pragma Restrictions
13148 (No_Exception_Propagation) is set and in any case make the associated
13149 handler unsuitable as a target for a local raise statement.
13150 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13151 run-time subprogram CW_Membership by call to Build_CW_Membership.
13152 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13153 by a function call, a temporary must be created before expanding the
13154 Constructor_Call itself, to prevent out-of-order elaboration in the
13155 back-end when stack checking is enabled..
13157 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13159 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13160 result are the bounds of the left operand, not the right.
13162 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13165 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13166 discriminant defaults.
13167 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13168 (Make_Component_List_Attributes): Ditto.
13170 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13171 Bob Duff <duff@adacore.com>
13173 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13174 an association with a box as providing a value even though the
13175 initialization procedure for the type is not available.
13176 (Resolve_Record_Aggregate): Check that a choice of an association with a
13177 box corresponds to a component of the type.
13178 (Resolve_Record_Aggregate): Split Is_Abstract flag into
13179 Is_Abstract_Subprogram and Is_Abstract_Type.
13181 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13184 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13185 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13186 called only when appropriate.
13188 2007-04-06 Olivier Hainque <hainque@adacore.com>
13190 * g-alleve.ads (Low Level Vector type definitions): Map each to the
13191 associated vector view instead of all to the unsigned char view.
13193 * g-altcon.adb (Generic_Conversions): New internal generic package,
13194 offering facilities for all the Vector/View conversion routines
13195 implemented by this unit.
13196 (To_View/To_Vector - all versions): Reimplemented in a systematic
13197 manner, using the internal Generic_Conversions facilities.
13199 2007-04-06 Pascal Obry <obry@adacore.com>
13201 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13203 (Create): Free the source string before storing the new one.
13205 2007-04-06 Vincent Celier <celier@adacore.com>
13207 * g-debpoo.adb (Validity): New package with a complete new
13208 implementation of subprograms Is_Valid and Set_Valid.
13209 (Is_Valid): Move to local package Validity
13210 (Set_Valid): Move to local package Validity
13212 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13213 Pablo Oliveira <oliveira@adacore.com>
13215 * g-expect.adb (Get_Command_Output): When expanding the output buffer
13216 we must ensure that there is enough place for the new data we are going
13219 2007-04-06 Thomas Quinot <quinot@adacore.com>
13221 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13224 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13225 Vincent Celier <celier@adacore.com>
13227 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13228 (Stack_String): Add this String that contains the name of the Stack
13229 package in the project file.
13230 (Packages_To_Check_By_Stack): Add this list that contains the packages
13231 to be checked by gnatstack, which are the naming and the stack packages.
13232 (Check_Files): If no .ci files were specified for gnatstack we add all
13233 the .ci files belonging to the projects, including binder generated
13235 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13236 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13237 Add gnatstack to the list of commands that use project file related
13238 switches, and get the single attribute Switches from the stack package
13239 in a project file when calling gnatstack. Parse the -U flag for
13240 processing files belonging to all projects in the project tree.
13241 Remove all processing for command Setup
13243 * prj-attr.adb: Add new package Stack with single attribute Switches
13245 * vms_conv.ads (Command_Type): Add command Stack.
13246 Move to body declarations that are only used in the body: types Item_Id,
13247 Translation_Type, Item_Ptr, Item and its subtypes.
13249 * vms_conv.adb: (Initialize): Add data for new command Stack.
13250 Add declarations moved from the spec: types Item_Id, Translation_Type,
13251 Item_Ptr, Item and its subtypes.
13252 (Cargs_Buffer): New table
13253 (Cargs): New Boolean global variable
13254 (Process_Buffer): New procedure to create arguments
13255 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13257 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13259 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13260 empty, for table Cargs_Buffer.
13261 (Initialize): Remove component Setup in Command_List
13263 2007-04-06 Vincent Celier <celier@adacore.com>
13265 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13266 issuing pragma Source_Reference.
13268 2007-04-06 Emmanuel Briot <briot@adacore.com>
13270 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13271 [[:xdigit:]] character class.
13272 Also raise an exception when an invalid character class is used.
13274 2007-04-06 Pascal Obry <obry@adacore.com>
13276 * i-cstrea.ads: (fopen): Add encoding parameter.
13278 Change reference from a-sysdep.c to sysdep.c in comment.
13279 Update copyright notice.
13280 This set of patch add support for the encoding form parameter.
13282 * mingw32.h (S2WSU): New macro to convert from a string to a
13283 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13284 standard 8bits encoding.
13285 (WS2SU): As above but converting from wide-sring to string.
13286 This is needed as it is necessary to have access to both versions in the
13287 runtime for the form parameter encoding support.
13288 This set of patch add support for the encoding form parameter.
13289 (S2WS): Improve implementation to handle cases where the filename is not
13290 UTF-8 encoded. In this case we default to using the current code page
13291 for the conversion.
13293 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13294 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13295 the constants defined in adaint.h.
13296 (fopen): Add encoding parameter.
13299 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13300 encoding. This is needed for the Reset routine (freopen low level-call).
13302 * s-fileio.adb (Open): Decode encoding form parameter and set the
13303 corresponding encoding value into AFCB structure.
13304 (Reset): Pass the encoding value to freopen.
13305 (Close): Move the call to Lock_Task to the beginning of the procedure.
13307 2007-04-06 Geert Bosch <bosch@adacore.com>
13308 Robert Dewar <dewar@adacore.com>
13310 * i-fortra.ads: Add Double_Complex type.
13312 * impunit.adb: (Is_Known_Unit): New function
13313 Add Gnat.Byte_Swapping
13315 Add new Ada 2005 units
13316 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13317 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13318 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13319 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13321 * impunit.ads (Is_Known_Unit): New function
13323 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13324 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13325 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13326 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13327 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13328 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13331 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13333 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13335 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13336 Arnaud Charlet <charlet@adacore.com>
13338 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13339 __gnat_adjust_context_for_raise.
13340 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13341 implementation of floating point operations as native x86 targets.
13342 So the FPU should be initialized in the same way using finit. Fix
13343 floating point operations accuracy issues.
13344 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13345 member in struct sigaction, so as to avoid warning for incompatible
13348 2007-04-06 Serguei Rybin <rybin@adacore.com>
13350 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13351 switches from previously loaded tree
13353 2007-04-06 Thomas Quinot <quinot@adacore.com>
13355 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13356 cases where a given dependency has a body or not.
13357 (Write_With_File_Names): New subprogram, common code for the two cases
13360 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13361 Javier Miranda <miranda@adacore.com>
13363 * lib-xref.ads, lib-xref.adb:
13364 Modify the loop that collects type references, to include interface
13365 types that the type implements. List each of these interfaces when
13366 building the entry for the type.
13367 (Generate_Definition): Initialize component Def and Typ of new entry
13368 in table Xrefs, to avoid to have these components unitialized.
13369 (Output_References): Split Is_Abstract flag into
13370 Is_Abstract_Subprogram and Is_Abstract_Type.
13371 (Generate_Reference): Add barrier to do not generate the warning
13372 associated with Ada 2005 entities with entities generated by the
13375 2007-04-06 Robert Dewar <dewar@adacore.com>
13376 Arnaud Charlet <charlet@adacore.com>
13377 Vincent Celier <celier@adacore.com>
13379 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13380 Update 'Exception Handling Control' chapter which was outdated.
13381 Minor fix to documentation of -gnatwq
13382 Remove section "Adapting the Run Time to a New C++ Compiler" because
13383 it is now obsolete.
13384 Add passage on need of -nostart-files in some non-ada-main cases.
13385 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13386 Update documentation about Interfacing with C++
13387 Add documentation for new gnatmake switch -p
13388 Add missing protocol part in URLs.
13390 Document pragma Compile_Time_Error
13391 Add documentation for Object_Size indicating that stand alone
13392 objects can have a larger size in some cases.
13393 Add node for GNAT.Byte_Swapping, GNAT.SHA1
13394 Update reference to the Ravenscar profile.
13395 Document pragma Unreferenced_Objects
13397 * gnat-style.texi: Fix typo
13399 2007-04-06 Vincent Celier <celier@adacore.com>
13401 * mlib.adb (Building_Library): Only output "building a library..." in
13404 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13405 files in verbose mode.
13407 * mlib-utl.adb (Ar): Only output the first object files when not in
13409 (Gcc): Do not display all the object files if not in verbose mode, only
13412 2007-04-06 Robert Dewar <dewar@adacore.com>
13414 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13415 it no longer destroys the contents of Name_Buffer or Name_Len and
13416 non-standard and invalid names are handled better.
13417 (Get_Decoded_Name_String): Improve performance by using
13418 Name_Has_No_Encodings flag in the name table.
13419 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13420 Used for debugging printouts.
13422 2007-04-06 Robert Dewar <dewar@adacore.com>
13423 Javier Miranda <miranda@adacore.com>
13424 Bob Duff <duff@adacore.com>
13426 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13427 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13428 there is no need to generate always a record_definition_node in case
13429 of synchronized interface types.
13430 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13431 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13432 illegal in Ada 95, in cases where it is legal. Change the warnings to
13433 errors in other cases. Don't give the error unless the "not null"
13434 parses properly. Correct the source position at which the error occurs.
13435 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13436 P_Null_Exclusion, to suppress "not null" warnings.
13437 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13438 associated goto statements.
13440 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13443 * scans.ads (Type_Token_Location): New flag
13445 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13446 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13447 P_Null_Exclusion, to suppress "not null" warnings.
13449 2007-04-06 Robert Dewar <dewar@adacore.com>
13450 Javier Miranda <miranda@adacore.com>
13451 Bob Duff <duff@adacore.com>
13452 Vincent Celier <celier@adacore.com>
13454 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13455 (Extensions_Allowed): No longer sets Ada_Version
13456 Entry for pragma Unreferenced_Objects
13458 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13459 system.tasking if pragma priority used in a procedure
13460 (Analyze_Pragma, case Warning): Handle dot warning switches
13461 (Process_Compile_Time_Warning_Or_Error): New procedure
13462 (Analyze_Pragma): Add processing for Compile_Time_Error
13463 Add support for extra arguments External_Name and Link_Name.
13464 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13465 (Process_Import_Or_Interface): Add support for the use of pragma Import
13467 (Extensions_Allowed): No longer affects Ada_Version
13468 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13469 Is_Abstract_Type. Make sure these are called only when appropriate.
13470 Add processing for pragma Unreferenced_Objects
13472 * snames.h, snames.ads, snames.adb: Add entry for pragma
13474 Add new standard name Minimum_Binder_Options for new gprmake
13475 Add new standard names for gprmake: Archive_Suffix,
13476 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13477 Library_Support, Library_Version_Options,
13478 Shared_Library_Minimum_Options,
13479 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13480 Change Name_Call to Name_uCall so that it cannot clash with a legal
13482 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13483 Append C_Plus_Plus to convention identifiers as synonym for CPP
13484 Add new standard names Stack and Builder_Switches
13485 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13486 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13487 Run_Path_Option, Toolchain_Version.
13488 Entry for pragma Unreferenced_Objects
13490 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13491 switches, without repetition of "eD". Make sure that last character of
13492 -gnatep= switch is not taken as -gnat switch character.
13493 Complete rewrite of circuit for handling saving compilation options
13494 Occasioned by need to support dot switchs for -gnatw, but cleans up
13496 -gnatX does not affect Ada_Version
13497 Include -gnatyA in -gnatg style switches
13499 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13500 warnings on return objects.
13501 (Warn_On_Useless_Assignment): Exclude warnings on return objects
13502 (Set_Dot_Warning_Switch): New procedure
13503 (Check_References): Add missing case of test for
13504 Has_Pragma_Unreferenced_Objects
13505 (Output_Unreferenced_Messages): Implement effect of new pragma
13506 Unreferenced_Objects, remove special casing of limited controlled
13509 2007-04-06 Vincent Celier <celier@adacore.com>
13511 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13512 the default project path, initially done during elaboration of the
13514 If the prefix returned by Sdefault is null, get the prefix from a call
13515 to Executable_Prefix_Path.
13516 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13519 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13520 canonical directory name to open the directory from which files are
13522 (Record_Other_Sources): Idem.
13523 (Locate_Directory): Add the possibility to create automatically missing
13524 directories when Setup_Projects is True.
13525 Call Locate_Directory so that the directory will be created when
13526 Setup_Projects is True, for object dir, library dir, library ALI dir,
13527 library source copy dir and exec dir.
13529 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13532 2007-04-06 Robert Dewar <dewar@adacore.com>
13534 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13535 Use First/Next_Component_Or_Discriminant
13536 (Analyze_Record_Representation_Clause):
13537 Use First/Next_Component_Or_Discriminant
13538 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13539 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13540 definition if type is unconstrained.
13541 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13542 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13543 Is_Abstract_Subprogram and Is_Abstract_Type.
13544 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13546 * repinfo.adb (List_Record_Info): Use First/
13547 Next_Component_Or_Discriminant.
13549 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13552 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13553 Include -gnatyA in default switches
13555 * opt.ads: (Warn_On_Non_Local_Exception): New flag
13556 (Warn_On_Reverse_Bit_Order): New flag
13557 (Extensions_Allowed): Update the documentation.
13558 (Warn_On_Questionable_Missing_Parens): Now on by default
13560 * usage.adb: Add documentation of -gnatw.x/X switches
13561 Document new -gnatyA style switch
13562 -gnatq warnings are on by default
13564 2007-04-06 Ed Falis <falis@adacore.com>
13566 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13567 full word is no longer compared twice.
13569 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13571 * sem_ch10.adb (Install_Limited_Context_Clauses.
13572 Expand_Limited_With_Clause): Use a new copy of selector name in the
13573 call to Make_With_Clause. This fixes the tree structure for ASIS
13574 purposes. Nothing is changed in the compiler behaviour.
13575 (Process_Body_Clauses): Handle properly use clauses whose prefix is
13576 a package renaming.
13577 (Install_Limited_With_Clauses): Do not install non-limited view when it
13578 is still incomplete.
13580 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13581 Gary Dismukes <dismukes@adacore.com>
13583 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13584 when capturing size information, instead of base type, which for a
13585 formal array type will be the unconstrained type.
13586 (Analyze_Formal_Object_Declaration): Add check for illegal default
13587 expressions for a formal in object of a limited type.
13588 (Instantiate_Object): Ditto.
13589 (Check_Formal_Package_Instance): Skip entities that are formal objects,
13590 because they were defaulted in the formal package and no check applies
13592 (Check_Formal_Package_Instance): Extend conformance check to other
13593 discrete types beyond Integer.
13594 (Process_Default): Copy directly the unmatched formal. A generic copy
13595 has already been performed in Analyze_Formal_Package.
13596 (Analyze_Associations): If a formal subprogram has no match, check for
13597 partial parametrization before looking for a default, to prevent
13599 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13600 not set the instantiation environment before analyzing the actuals.
13601 Fixes regression on 8515-003 with implementation of AI-133.
13602 Set_Instance_Env checks whether the generic unit is a predefined
13603 unit, in which case the instance must be analyzed with the latest Ada
13604 mode. This setting must take place after analysis of the actuals,
13605 because the actuals must be analyzed and frozen in the Ada mode extant
13606 outside of the current instantiation.
13607 (Save_Env, Restore_Env): Preserve and restore the configuration
13608 parameters so that predefined units can be compiled in the proper Ada
13610 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13611 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13612 and Is_Abstract_Type.
13613 (Analyze_Formal_Package): For better error recovery, Add exception
13614 handler to catch Instantion_Error, which can be raised in
13615 Analyze_Associations
13617 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13618 Bob Duff <duff@adacore.com>
13619 Gary Dismukes <dismukes@adacore.com>
13621 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13622 prefix type is a discriminated subtype of the type of the formal.
13623 (Analyze_Allocator): Collect all coextensions regardless of the context.
13624 Whether they can be allocated statically is determined in exp_ch4.
13625 (Analyze_Selected_Component): If the prefix is a limited view and the
13626 non-limited view is available, use the non-limited one.
13627 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13628 therefore illegal), suggest a qualified expression rather than a type
13629 conversion, because a type conversion would be illegal in this context.
13630 (Anayze_Allocator): Trace recursively all nested allocators so that all
13631 coextensions are on the corresponding list for the root. Do no mark
13632 coextensions if the root allocator is within a declaration for a stack-
13633 allocated object, because the access discriminants will be allocated on
13635 (Analyze_Call): Remove restriction on calls to limited functions for the
13636 cases of generic actuals for formal objects, defaults for formal objects
13637 and defaults for record components.
13638 (Analyze_Allocator): Before analysis, chain coextensions on the proper
13639 element list. Their expansion is delayed until the enclosing allocator
13640 is processed and its finalization list constructed.
13641 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13642 for an operation with the given name among the primitive operations of
13643 the corresponding record type.
13644 (Analyze_Selected_Component): If the prefix is a task type that
13645 implements an interface, and there is no entry with the given name,
13646 check whether there is another primitive operation (e.g. a function)
13648 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13649 properly the indexing of a function call written in prefix form, where
13650 the function returns an array type, and all parameters of the function
13651 except the first have defaults.
13652 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13653 the original operands, rather than relocating them, for efficiency and
13654 to work properly when an operand is overloaded.
13655 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13656 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13657 (Analyze_Selected_Component): If the prefix is a private extension, only
13658 scan the visible components, not those of the full view.
13659 (Try_Primitive_Operation): If the operation is a procedure, collect all
13660 possible interpretations, as for a function, because in the presence of
13661 classwide parameters several primitive operations of the type can match
13662 the given arguments.
13664 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13665 Robert Dewar <dewar@adacore.com>
13667 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13668 tag-indeterminate call to an abstract function, when the left-hand side
13670 (Analyze_Loop_Statement): Improve detection of infinite loops
13672 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13673 Thomas Quinot <quinot@adacore.com>
13675 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13676 out of Analyze_Package_Declaration, because processing must be applied
13677 to package bodies as well, for deferred constants completed by pragmas.
13678 (Analyze_Package_Declaration): When the package declaration being
13679 analyzed does not require an explicit body, call Check_Completion.
13680 (May_Need_Implicit_Body): An implicit body is required when a package
13681 spec contains the declaration of a remote access-to-classwide type.
13682 (Analyze_Package_Body): If the package contains RACWs, append the
13683 pending subprogram bodies generated by exp_dist at the end of the body.
13684 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13685 Is_Abstract_Subprogram and Is_Abstract_Type.
13686 (Preserve_Full_Attributes): The full entity list is not an attribute
13687 that must be preserved from full to partial view.
13689 * sem_dist.adb (Add_RAS_Dereference_TSS):
13690 Change primitive name to _Call so it cannot clash with any legal
13691 identifier, and be special-cased in Check_Completion.
13692 Mark the full view of the designated type for the RACW associated with
13693 a RAS as Comes_From_Source to get proper view switching when installing
13694 private declarations.
13695 Provite a placeholder nested package body along with the nested spec
13696 to have a place for Append_RACW_Bodies to generate the calling stubs
13697 and stream attributes.
13699 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13700 Robert Dewar <dewar@adacore.com>
13702 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13703 that is a limited view, check the non-limited view if available.
13704 (Undefined): Refine error message for missing with of Text_IO
13705 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13706 to distinguish real missing with cases.
13707 Fix format of all missing with messages
13708 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13709 renaming as body when renamed entity is abstract.
13711 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13712 Javier Miranda <miranda@adacore.com>
13714 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13715 predicate recursive, to handle complex expressions on literals whose
13716 spurious ambiguity comes from the abstract interpretation of some
13718 (Interface_Present_In_Ancestor): Add support to concurrent record
13720 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13721 Is_Abstract_Subprogram and Is_Abstract_Type.
13723 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13724 Javier Miranda <miranda@adacore.com>
13726 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13727 dereference of a local object R created as a reference to another
13728 object O, use the access level of O.
13729 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13730 rather than local Same_Formal_Type, to check whether protected operation
13731 overrides an inherited one.
13732 (Same_Formal_Type): New predicate, used when matching signatures of
13733 overriding synchronized operations, to handle the case when a formal
13734 has a type that is a generic actual.
13735 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13736 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13737 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13738 syntactic ambiguities involving indexing of function calls that return
13740 (Abstract_Interface_List): New subprogram that returns the list of
13741 abstract interfaces associated with a concurrent type or a
13742 concurrent record type.
13743 (Interface_Present_In_Parent): New subprogram used to check if a
13744 given type or some of its parents implement a given interface.
13745 (Collect_Abstract_Interfaces): Add support for concurrent types
13746 with interface types.
13747 (Has_Abstract_Interfaces): Add support for concurrent types with
13749 (Is_Parent): New subprogram that determines whether E1 is a parent
13750 of E2. For a concurrent type its parent is the first element of its
13751 list of interface types; for other types this function provides the
13752 same result than Is_Ancestor.
13753 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13754 (Collect_Synchronized_Interfaces): Removed because the subprogram
13755 Collect_Abstract_Interfaces provides this functionality.
13756 (Collect_Abstract_Interfaces): Minor update to give support to
13757 concurrent types and thus avoid undesired code duplication.
13758 (Get_Subprogram_Entity): Handle entry calls.
13759 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13761 (Enter_Name): Do not give -gnatwh hiding warning for record component
13762 entities, they never result in hiding.
13764 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13765 Robert Dewar <dewar@adacore.com>
13767 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13768 to chain nested components that are allocators for access discriminants
13769 of the enclosing object.
13770 Add N_Push and N_Pop nodes
13771 New field Exception_Label added
13772 (Local_Raise_Statements): New field in N_Exception_Handler_Node
13773 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13774 (Is_Coextension): New flag for allocators, to mark allocators that
13775 correspond to access discriminants of dynamically allocated objects.
13776 (N_Block_Statement): Document the fact that the corresponding entity
13777 can be an E_Return_Statement.
13778 (Is_Coextension): New flag for allocators.
13779 Remove all code for DSP option
13781 * sprint.ads, sprint.adb: Display basic information for class_wide
13782 subtypes. Add handling of N_Push and N_Pop nodes
13784 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13786 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13787 before propagating exception.
13789 2007-04-06 Olivier Hainque <hainque@adacore.com>
13791 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13792 an address always within the call instruction from a return address.
13794 2007-04-06 Olivier Hainque <hainque@adacore.com>
13795 Eric Botcazou <botcazou@adacore.com>
13797 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13798 expression with a COMPOUND_EXPR including the call instead of emitting
13799 the call directly here.
13800 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13801 high bound is constant and the slice is empty. Tidy.
13802 (tree_transform, case N_Op_Not): Handle properly the case where the
13803 operation applies to a private type whose full view is a modular type.
13804 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13805 Address_Clause, use the associated Expression as the GNAT tree
13806 representing the choice value to ensure the corresponding GCC tree is
13807 of the proper kind.
13808 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13809 instead of just the operands, as the base GCC stabilize_reference does.
13810 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13811 requested; otherwise fail.
13812 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13814 2007-04-06 Thomas Quinot <quinot@adacore.com>
13816 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13817 implementation of UI_Div.
13818 (UI_Div): Reimplement as a call to UI_Div_Rem.
13819 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13820 remainder, avoiding the cost of a multiplication and a subtraction.
13821 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13822 provides both quotient and remainder in a single computation.
13823 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13824 functions for uint.
13825 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13826 is undefined if the given n is not inversible.
13828 2007-04-06 Olivier Hainque <hainque@adacore.com>
13830 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13831 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13834 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13835 Olivier Hainque <hainque@adacore.com>
13837 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13838 when updating the contents of the old pointer to an unconstrained array.
13839 (end_subprog_body): Set error_gnat_node to Empty.
13840 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13841 (unchecked_convert): For subtype to base type conversions, require that
13842 the source be a subtype if it is an integer type.
13843 (builtin_decls): New global, vector of available builtin functions.
13844 (gnat_pushdecl): Add global builtin function declaration nodes to the
13845 builtin_decls list.
13846 (gnat_install_builtins): Adjust comments.
13847 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13848 calling gnat_pushdecl, so that it knows when it handed a builtin
13849 function declaration node.
13850 (builtin_decl_for): Search the builtin_decls list.
13852 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13854 * s-stchop-vxworks.adb:
13855 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13857 2007-04-06 Robert Dewar <dewar@adacore.com>
13858 Arnaud Charlet <charlet@adacore.com>
13860 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13862 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13864 Add mention of -Sev (set initialize_scalars option from environment
13865 variable at run time) in gnatbind usage message.
13867 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13869 * fname-uf.ads: Minor comment fix
13871 * osint.ads: Change pragma Elaborate to Elaborate_All
13873 * par-load.adb: Add documentation.
13875 * sem_cat.ads, sem_cat.adb: Minor code reorganization
13877 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13879 * s-secsta.ads: Extra comments
13881 * s-soflin.ads: Minor comment fixes
13883 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13885 * s-wchcon.ads: Minor comment addition
13887 * treepr.adb: Minor change in message
13888 (Print_Name,Print_Node): Make these debug printouts more robust: print
13889 "no such..." instead of crashing on bad input.
13891 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
13893 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13894 instead of gnat_signed_or_unsigned_type.
13895 * utils.c (gnat_signed_or_unsigned_type): Remove.
13896 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13897 * gigi.h (gnat_signed_or_unsigned_type): Remove
13899 2007-03-09 Roger Sayle <roger@eyesopen.com>
13901 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13902 fold with the result of buildN.
13903 * decl.c (gnat_to_gnu_entity): Likewise.
13904 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13905 * utils.c (finish_record_type, merge_sizes, max_size, convert):
13907 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13908 nonbinary_modular_operation, build_binary_op, build_unary_op,
13909 build_cond_expr): Likewise.
13911 * utils.c (convert): Use fold_build1 when casting values to void.
13912 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13913 fold_convert instead of convert when appropriate.
13915 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13917 * Make-lang.in: Add install-pdf target as copied from
13918 automake v1.10 rules.
13920 2007-02-28 Andreas Schwab <schwab@suse.de>
13922 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13923 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13924 (doc/gnat-style.info): Likewise.
13926 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
13928 * gnat-style.texi: Standardize title page.
13929 * gnat_rm.texi: Likewise.
13930 * gnat_ugn.texi: Likewise.
13932 2007-02-25 Mark Mitchell <mark@codesourcery.com>
13934 * decl.c (annotate_value): Adjust for refactoring of tree_map
13937 2007-02-24 Mark Mitchell <mark@codesourcery.com>
13939 * decl.c (annotate_value): Adjust for refactoring of tree_map
13942 2007-02-21 Ed Schonberg <schonberg@adacore.com>
13945 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13946 untagged derived type, add hidden components to keep discriminant
13947 layout consistent, when a given discriminant of the derived type
13948 constraints several discriminants of the parent type.
13950 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
13951 Sandra Loosemore <sandra@codesourcery.com>
13953 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
13954 build the call expression.
13955 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13956 * utils.c (max_size) <tcc_exceptional>: Delete.
13957 <tcc_vl_exp>: New case.
13958 <tcc_expression>: Delete CALL_EXPR subcase.
13959 (build_global_cdtor): Use build_call_nary instead of build3.
13960 * utils2.c (build_call_1_expr): Likewise.
13961 (build_call_2_expr): Likewise.
13962 (build_call_0_expr): Likewise.
13963 (build_call_alloc_dealloc): Likewise.
13965 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13967 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13968 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13969 and _Unwind_SWord with _sleb128_t.
13971 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
13973 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13974 * decl.c: Include gt-ada-decl.h.
13975 (annotate_value_cache): New.
13976 (annotate_value): Use it instead of TREE_COMPLEXITY.
13978 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
13980 * misc.c, utils2.c: Fix comment typos.
13982 2007-01-24 Roger Sayle <roger@eyesopen.com>
13984 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13985 TREE_CONSTANT_OVERFLOW.
13986 (allocatable_size_p, annotate_value): Likewise.
13987 * trans.c (gnat_to_gnu): Likewise.
13988 * utils.c (unchecked_convert): Likewise.
13989 * utils2.c (build_simple_component_ref): Likewise.
13991 2007-01-23 Richard Guenther <rguenther@suse.de>
13994 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13995 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13996 (gnatboot3): Likewise.
13997 (GNATBIND): Do not define.
13998 * Makefile.in (GNATBIND): Do not define.
14000 2007-01-08 Richard Guenther <rguenther@suse.de>
14002 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14003 * trans.c (gnat_to_gnu): Likewise.
14005 2006-12-07 Geoffrey Keating <geoffk@apple.com>
14007 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14008 * adaint.c: Likewise.
14010 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
14012 Merge from gimple-tuples-branch:
14013 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
14015 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14016 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14017 GIMPLE_MODIFY_STMT.
14019 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
14021 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14022 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14025 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14028 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14029 if the initializer takes into account the padding.
14031 2006-11-11 Richard Guenther <rguenther@suse.de>
14033 * trans.c (maybe_stabilize_reference): Remove handling of
14034 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14036 2006-11-05 Arnaud Charlet <charlet@adacore.com>
14039 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14040 (To_Target_Priority): New function.
14042 2006-10-31 Robert Dewar <dewar@adacore.com>
14044 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14045 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14046 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14047 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14048 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14049 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14050 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14051 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14052 a-szbzha.adb: Minor reformatting. Fix header.
14054 * a-numaux-x86.adb: Add parentheses for use of unary minus
14055 * a-ngcefu.adb: Supply missing parentheses for unary minus
14056 * a-ngcoty.adb: Add parens for use of unary minus
14057 * a-ngelfu.adb: Add missing parens for unary minus
14058 * a-tifiio.adb: Add parentheses for uses of unary minus
14060 2006-10-31 Robert Dewar <dewar@adacore.com>
14061 Bob Duff <duff@adacore.com>
14062 Ed Schonberg <schonberg@adacore.com>
14064 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14065 with multiplying operator.
14066 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14067 pointer whether the context expects "any real type".
14068 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14069 universal_fixed "*" and "/" operators when they are used in a context
14070 that expects any real type. Also set the type of the node to
14071 Universal_Real in this case, because downstream processing requires it
14072 (mainly static expression evaluation).
14073 Reword some continuation messages
14074 Add some \\ sequences to continuation messages
14075 (Resolve_Call): Refine infinite recursion case. The test has been
14076 sharpened to eliminate some false positives.
14077 Check for Current_Task usage now includes entry barrier, and is now a
14078 warning, not an error.
14079 (Resolve): If the call is ambiguous, indicate whether an interpretation
14080 is an inherited operation.
14081 (Check_Aggr): When resolving aggregates, skip associations with a box,
14082 which are priori correct, and will be replaced by an actual default
14083 expression in the course of expansion.
14084 (Resolve_Type_Conversion): Add missing support for conversion from
14085 a class-wide interface to a tagged type. Minor code cleanup.
14086 (Valid_Tagged_Converion): Add support for abstact interface type
14088 (Resolve_Selected_Component): Call Generate_Reference here rather than
14089 during analysis, and use May_Be_Lvalue to distinguish read/write.
14090 (Valid_Array_Conversion): New procedure, abstracted from
14091 Valid_Conversion, to incorporate accessibility checks for arrays of
14092 anonymous access types.
14093 (Valid_Conversion): For a conversion to a numeric type occurring in an
14094 instance or inlined body, no need to check that the operand type is
14095 numeric, since this has been checked during analysis of the template.
14096 Remove legacy test for scope name Unchecked_Conversion.
14098 * sem_res.ads: Minor reformatting
14100 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14101 (PE_Current_Task_In_Entry_Body): New exception code
14102 (SE_Restriction_Violation): Removed, not used
14104 * a-except.ads: Update comments.
14106 * types.h, types.ads: Add definition for Validity_Check
14107 (PE_Current_Task_In_Entry_Body): New exception code
14108 (SE_Restriction_Violation): Removed, not used
14110 2006-10-31 Thomas Quinot <quinot@adacore.com>
14112 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14115 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14116 Jose Ruiz <ruiz@adacore.com>
14118 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14119 part of Ada.Calendar: all subprogram raise Unimplemented.
14120 (Split_W_Offset): Temp function body, raising Unimplemented
14122 * a-calend.ads, a-calend-vms.ads:
14123 Add imported variable Invalid_TZ_Offset used to designate targets unable
14124 to support time zones.
14125 (Unimplemented): Temporary function raised by the body of new
14127 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14128 unit provides handling of leap seconds and is used by the new Ada 2005
14129 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14130 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14131 version returns an extra value which is the offset to UTC.
14133 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14134 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14135 (Split_W_Offset): New function body.
14136 (Time_Of): When a date is close to UNIX epoch, compute the time for
14137 that date plus one day (that amount is later substracted after
14138 executing mktime) so there are no problems with time zone adjustments.
14140 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14142 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14143 a-catizo.ads, a-catizo.adb: New files.
14145 * impunit.adb: Add new Ada 2005 entries
14147 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14148 Rename all occurences of "__gnat_localtime_r" to
14149 "__gnat_localtime_tzoff".
14150 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14151 zone data and calculate the GMT offset.
14152 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14153 Use the field "tm_gmtoff" to extract the GMT offset.
14154 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14155 the external variable "timezone" to calculate the GMT offset.
14157 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14158 Jose Ruiz <ruiz@adacore.com>
14160 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
14161 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
14162 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14163 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14164 System.Any_Priority to a POSIX priority on the target.
14166 * system-linux-ia64.ads:
14167 Extend range of Priority types on Linux to use the whole range made
14168 available by the system.
14170 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14171 function maps from System.Any_Priority to a POSIX priority on the
14173 (PTHREAD_PRIO_PROTECT): Set real value.
14174 (PTHREAD_PRIO_INHERIT): Now a function.
14175 (SIGCPUFAIL): New signal.
14176 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14177 are documented as reserved by the OS.
14179 * system-aix.ads: Use the full range of priorities provided by the
14182 * s-taprop-posix.adb: Call new function To_Target_Priority.
14183 (Set_Priority): Take into account Task_Dispatching_Policy and
14184 Priority_Specific_Dispatching pragmas when determining if Round Robin
14185 must be used for scheduling the task.
14187 * system-linux-x86_64.ads, system-linux-x86.ads,
14188 system-linux-ppc.ads: Extend range of Priority types on Linux to use
14189 the whole range made available by the system.
14191 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
14192 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
14193 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14194 when deallocating the TCB in order to avoid potential references to
14196 (Set_Priority): Take into account Task_Dispatching_Policy and
14197 Priority_Specific_Dispatching pragmas when determining if Round Robin
14198 or FIFO within priorities must be used for scheduling the task.
14200 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14201 the Thread field (to be used internally by the run-time system) and the
14202 kernel-level task id in the LWP field (to be used by the debugger).
14203 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14204 instance, and propagate the current task options to the spawned task.
14205 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14206 (Initialize): Set Round Robin dispatching when the corresponding pragma
14209 2006-10-31 Robert Dewar <dewar@adacore.com>
14211 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14212 system-linux-hppa.ads, system-hpux-ia64.ads,
14213 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
14214 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14215 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
14216 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
14217 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14218 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14219 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14220 Default_Bit_Order) to kill constant condition warnings for references
14223 2006-10-31 Vincent Celier <celier@adacore.com>
14224 Eric Botcazou <ebotcazou@adacore.com>
14226 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14227 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14228 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14229 Ext_To, when building the library file name
14231 * mlib-tgt-vxworks.adb: ditto.
14232 (Get_Target_Suffix): Add support for x86 targets.
14234 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14236 * mlib-tgt-darwin.adb:
14237 Use Append_To, instead of Ext_To, when building the library file name
14238 (Flat_Namespace): New global variable.
14239 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14240 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14241 (Link_Shared_Libgcc): Delete.
14242 (Build_Dynamic_Library): Adjust for above changes.
14244 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14246 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14248 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14249 (Initialize): Add type conversions required by above change.
14251 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14253 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14254 (getpid): New body for this function that uses the underlying taskIdSelf
14255 function for VxWorks 5 and VxWorks 6 in kernel mode.
14256 (unsigned_int): New type, modular to allow logical bit operations.
14257 (taskOptionsGet): New imported function.
14259 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14260 field to be compliant with the type used by the corresponding operating
14263 2006-10-31 Pascal Obry <obry@adacore.com>
14264 Eric Botcazou <ebotcazou@adacore.com>
14265 Vincent Celier <celier@adacore.com>
14267 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14268 ASCII version of the registry API. This is needed as the GNAT runtime
14269 is now UNICODE by default.
14271 (get_gcc_version): Do not hardcode the return value.
14272 (__gnat_file_time_name): On Windows properly set the default returned
14273 value to -1 which corresponds to Invalid_Time.
14274 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14275 except on Windows where it does conversion for unicode support.
14276 (__gnat_freopen): Idem.
14277 (__gnat_locate_exec_on_path): If environment variable PATH does not
14278 exist, return a NULL pointer
14280 * adaint.h: (__gnat_fopen): Declare.
14281 (__gnat_freopen): Likewise.
14283 * mingw32.h (_tfreopen): Define this macro here for older MingW
14285 Activate the unicode support on platforms using a MingW runtime
14286 version 3.9 or newer.
14288 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14289 This is needed for proper unicode support on Windows.
14292 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14293 Nicolas Setton <setton@adacore.com>
14294 Olivier Hainque <hainque@adacore.com>
14295 Gary Dismukes <dismukes@adacore.com>
14297 * gigi.h: (tree_code_for_record_type): Declare.
14298 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14299 (get_global_renaming_pointers): Rename to
14300 invalidate_global_renaming_pointers.
14301 (static_ctors): Delete.
14302 (static_dtors): Likewise.
14303 (gnat_write_global_declarations): Declare.
14304 (create_var_decl): Adjust descriptive comment to indicate that the
14305 subprogram may return a CONST_DECL node.
14306 (create_true_var_decl): Declare new function, similar to
14307 create_var_decl but forcing the creation of a VAR_DECL node.
14308 (get_global_renaming_pointers): Declare.
14309 (add_global_renaming_pointer): Likewise.
14311 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14313 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14314 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14316 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14318 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14319 designated type if the pointer comes from a limited_with clause. Make
14320 incomplete designated type if it is in the main unit and has a freeze
14322 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14323 Underlying_Full_View similarly. Return earlier if the full view already
14324 has an associated tree.
14325 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14326 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14327 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14328 reference type built for objects with an address clause.
14329 Use create_true_var_decl with const_flag set for
14330 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14332 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14333 for Character and Wide_Character types. This info is read by the
14334 dwarf-2 writer, and is needed to be able to use the command "ptype
14335 character" in the debugger.
14336 (gnat_to_gnu_entity): When generating a type representing
14337 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14338 so that debug writers can distinguish it from ordinary integers.
14339 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14340 addition to TREE_READONLY to assert the constantness of variables for
14341 elaboration purposes.
14342 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14343 parameters to call new Einfo function First_Formal_With_Extras.
14344 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14345 protected type with its corresponding discriminant, to obtain a usable
14347 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14348 for a multiple elaboration of the "equivalent" type.
14349 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14350 into record_global_renaming_pointer.
14351 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14352 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14353 <E_Array_Subtype>: Likewise.
14354 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14355 incomplete subtypes and incomplete subtypes of incomplete types visible
14356 through a limited with clause.
14357 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14358 the base index type for the maximum size of the array only if they are
14360 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14361 expression into a SAVE_EXPR if stabilization failed.
14363 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14364 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14365 by lower level compilation passes.
14366 (gnat_genericize): New function, lowering a function body to GENERIC.
14367 Turn the type of RESULT_DECL into a real reference type if the decl
14368 has been marked DECL_BY_REFERENCE, and adjust references to the latter
14370 (gnat_genericize_r): New function. Tree walking callback for
14372 (convert_from_reference, is_byref_result): New functions. Helpers for
14374 (create_type_decl): Call gnat_pushdecl before calling
14375 rest_of_decl_compilation, to make sure that field TYPE_NAME of
14376 type_decl is properly set before calling the debug information writers.
14377 (write_record_type_debug_info): The heuristics which compute the
14378 alignment of a field in a variant record might not be accurate. Add a
14379 safety test to make sure no alignment is set to a smaller value than
14380 the alignment of the field type.
14381 (make_dummy_type): Use the Non_Limited_View as the underlying type if
14382 the type comes from a limited_with clause. Do not loop on the full view.
14383 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14384 (dummy_node_table): New global variable, moved from decl.c.
14385 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14386 (save_gnu_tree): Use above macros.
14387 (get_gnu_tree): Likewise.
14388 (present_gnu_tree): Likewise.
14389 (init_dummy_type): New function, moved from decl.c. Use above macros.
14390 (make_dummy_type): Likewise.
14391 (tree_code_for_record_type): New function extracted from make_dummy_type
14392 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14393 (static_ctors): Change it to a vector, make static.
14394 (static_dtors): Likewise.
14395 (end_subprog_body): Adjust for above change.
14396 (build_global_cdtor): Moved from trans.c.
14397 (gnat_write_global_declarations): Emit global constructor and
14398 destructor, and call cgraph_optimize before emitting debug info for
14399 global declarations.
14400 (global_decls): New global variable.
14401 (gnat_pushdecl): Store the global declarations in global_decls, for
14403 (gnat_write_global_declarations): Emit debug information for global
14405 (create_var_decl_1): Former create_var_decl, with an extra argument to
14406 state whether the creation of a CONST_DECL is allowed.
14407 (create_var_decl): Behavior unchanged. Now a wrapper around
14408 create_var_decl_1 allowing CONST_DECL creation.
14409 (create_true_var_decl): New function, similar to create_var_decl but
14410 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14411 (create_field_decl): Do not always mark the field as addressable
14412 if its type is an aggregate.
14413 (global_renaming_pointers): New static variable.
14414 (add_global_renaming_pointer): New function.
14415 (get_global_renaming_pointers): Likewise.
14417 * misc.c (gnat_dwarf_name): New function.
14418 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14419 (gnat_post_options): Add comment about structural alias analysis.
14420 (gnat_parse_file): Do not call cgraph_optimize here.
14421 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14423 * trans.c (process_freeze_entity): Don't abort if we already have a
14424 non dummy GCC tree for a Concurrent_Record_Type, as it might
14425 legitimately have been elaborated while processing the associated
14426 Concurrent_Type prior to this explicit freeze node.
14427 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14428 exception handler volatile if it is of variable size.
14429 (process_type): Remove bypass for types coming from a limited_with
14431 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14432 actual, convert the corresponding gnu_actual to the real destination
14433 type when necessary.
14434 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14435 originally TREE_READONLY but whose elaboration cannot be performed
14437 Part of fix for F504-021.
14438 (tree_transform, subprogram cases): Change loops on formal parameters to
14439 call new Einfo function First_Formal_With_Extras.
14440 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14441 stemming from type conversion for the lhs.
14442 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14443 number of bits per unit for components of records.
14444 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14445 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14446 with At_End_Proc after the SJLJ EH cleanup.
14447 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14449 (elaborate_all_entities): Do not retest type_annotate_only.
14450 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14451 result type of an abstract subprogram, which may be an itype associated
14452 with an anonymous access result (related to AI-318-02).
14453 (build_global_cdtor): Move to utils.c.
14454 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14455 this choice is not a null tree nor an integer constant.
14456 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14457 on the body of elaboration routines instead of mark_unvisited.
14458 (add_stmt): Do not mark the tree.
14459 (add_decl_expr): Tweak comment.
14460 (mark_unvisited): Delete.
14461 (unshare_save_expr): New static function.
14462 (call_to_gnu): Issue an error when making a temporary around a
14463 procedure call because of non-addressable actual parameter if the
14464 type of the formal is by_reference.
14465 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14466 after building the elaboration routine.
14468 2006-10-31 Bob Duff <duff@adacore.com>
14470 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14471 as finalization-started, so we can raise Program_Error on 'new'.
14473 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14474 collection has already started.
14476 * s-finimp.ads (Collection_Finalization_Started): Added new special
14477 flag value for indicating that a collection's finalization has started.
14479 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14480 create a task whose master has already waited for dependent tasks.
14482 2006-10-31 Robert Dewar <dewar@adacore.com>
14484 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14486 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
14487 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
14488 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
14489 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
14490 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
14491 a-except-2005.ads: Add pragma Preelaborable_Warning
14493 2006-10-31 Robert Dewar <dewar@adacore.com>
14494 Jose Ruiz <ruiz@adacore.com>
14496 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14498 * ali.adb (Get_Name): Properly handle scanning of wide character names
14499 encoded with brackets notation.
14500 (Known_ALI_Lines): Add S lines to this list.
14501 (Scan_ALI): Acquire S (priority specific dispatching) lines.
14502 New flag Elaborate_All_Desirable in unit table
14504 * ali.ads (Priority_Specific_Dispatching): Add this range of
14505 identifiers to be used for Priority_Specific_Dispatching table entries.
14506 (ALIs_Record): Add First_Specific_Dispatching and
14507 Last_Specific_Dispatching that point to the first and last entries
14508 respectively in the priority specific dispatching table for this unit.
14509 (Specific_Dispatching): Add this table for storing each S (priority
14510 specific dispatching) line encountered in the input ALI file.
14511 New flag Elaborate_All_Desirable in unit table
14513 * bcheck.adb: (Check_Configuration_Consistency): Add call to
14514 Check_Consistent_Dispatching_Policy.
14515 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14516 verifying that the use of Priority_Specific_Dispatching,
14517 Task_Dispatching_Policy, and Locking_Policy is consistent across the
14520 * bindgen.adb: (Public_Version_Warning): function removed.
14521 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14522 required information from ALI files in order to initialize the table
14523 containing the specific dispatching policy.
14524 (Gen_Adainit_Ada): Generate the variables required for priority specific
14525 dispatching entries (__gl_priority_specific_dispatching and
14526 __gl_num_specific_dispatching).
14527 (Gen_Adainit_C): Generate the variables required for priority specific
14528 dispatching entries (__gl_priority_specific_dispatching and
14529 __gl_num_specific_dispatching).
14530 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14532 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14533 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14535 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14536 a call to gnat_set_globals.
14537 Generate a string containing settings from
14538 Priority_Specific_Dispatching pragma entries.
14539 (Gen_Object_Files_Options): Do not include the runtime libraries when
14540 pragma No_Run_Time is specified.
14542 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14543 consistency with s-intman-posix.adb.
14544 (__gnat_error_handler, case FreeBSD): Account for the fact that the
14545 handler is installed with SA_SIGINFO.
14546 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14547 FreeBSD ZCX support, copied from Linux version.
14548 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14549 sigfillset, and sigemptyset so the routines defined by MaRTE.
14550 (__gl_priority_specific_dispatching): Add this variable that stores the
14551 string containing priority specific dispatching policies in the
14553 (__gl_num_specific_dispatching): Add this variable that indicates the
14554 highest priority for which a priority specific dispatching pragma
14556 (__gnat_get_specific_dispatching): Add this routine that returns the
14557 priority specific dispatching policy, as set by a
14558 Priority_Specific_Dispatching pragma appearing anywhere in the current
14559 partition. The input argument is the priority number, and the result
14560 is the upper case first character of the policy name.
14561 (__gnat_set_globals): Now a dummy function.
14562 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14563 mechargs instead of sigargs, as the latter can be retrieved from the
14564 former and sigargs is not what we want on ia64.
14565 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14567 (__gnat_adjust_context_for_raise, ia64-vms): New function.
14568 (tasking_error): Remove unused symbol.
14569 (_abort_signal): Move this symbol to the IRIX specific part since this
14570 is the only target that uses this definition.
14571 (Check_Abort_Status): Move this symbol to the IRIX specific part since
14572 this is the only target that uses this definition.
14573 (Lock_Task): Remove unused symbol.
14574 (Unlock_Task): Remove unused symbol.
14576 * lib-writ.adb (Write_ALI): Output new S lines for
14577 Priority_Specific_Dispatching pragmas.
14578 Implement new flag BD for elaborate body desirable
14580 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14581 (Specific_Dispatching): Add this table for storing the entries
14582 corresponding to Priority_Specific_Dispatching pragmas.
14583 Document new BD flag for elaborate body desirable
14585 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14588 2006-10-31 Javier Miranda <miranda@adacore.com>
14590 * a-tags.ads, a-tags.adb:
14591 (Predefined_DT): New function that improves readability of the code.
14592 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14593 Inherit_DT): Use the new function Predefined_DT to improve code
14595 (Register_Interface_Tag): Update assertion.
14596 (Set_Interface_Table): Update assertion.
14597 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14598 determining progenitor interfaces in Tags.
14599 (Inherit_CPP_DT): New subprogram.
14601 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14602 analysis of the thunk code.
14603 (Expand_Interface_Conversion): Handle run-time conversion of
14604 access to class wide types.
14605 (Expand_Dispatching_Call): When generating the profile for the
14606 subprogram itype for a dispatching operation, properly terminate the
14607 formal parameters chaind list (set the Next_Entity of the last formal
14609 (Collect_All_Interfaces): Removed. This routine has been moved to
14610 sem_util and renamed as Collect_All_Abstract_Interfaces.
14611 (Set_All_DT_Position): Hidden entities associated with abstract
14612 interface primitives are not taken into account in the check for
14613 3.9.3(10); this check is done with the aliased entity.
14614 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14615 interfacing with CPP by default.
14616 (Expand_Interface_Conversion): Add missing support for static conversion
14617 from an interface to a tagged type.
14618 (Collect_All_Interfaces): Add new out formal containing the list of
14619 abstract interface types to cleanup the subprogram Make_DT.
14620 (Make_DT): Update the code to generate the table of interfaces in case
14621 of abstract interface types.
14622 (Is_Predefined_Dispatching_Alias): New function that returns true if
14623 a primitive is not a predefined dispatching primitive but it is an
14624 alias of a predefined dispatching primitive.
14625 (Make_DT): If the ancestor of the type is a CPP_Class and we are
14626 compiling under full ABI compatibility mode we avoid the generation of
14627 calls to run-time services that fill the dispatch tables because under
14628 this mode we currently inherit the dispatch tables in the IP subprogram.
14629 (Write_DT): Emit an "is null" indication for a null procedure primitive.
14630 (Expand_Interface_Conversion): Use an address as the type of the formal
14631 of the internally built function that handles the case in which the
14632 target type is an access type.
14634 2006-10-31 Robert Dewar <dewar@adacore.com>
14636 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14638 2006-10-31 Robert Dewar <dewar@adacore.com>
14640 * bindusg.ads, bindusg.adb:
14641 Change to package and rename procedure as Display, which
14642 now ensures that it only outputs usage information once.
14644 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14646 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14649 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14652 2006-10-31 Robert Dewar <dewar@adacore.com>
14653 Ed Schonberg <schonberg@adacore.com>
14655 * treepr.adb: Use new subtype N_Membership_Test
14657 * checks.ads, checks.adb: Add definition for Validity_Check
14658 (Range_Or_Validity_Checks_Suppressed): New function
14659 (Ensure_Valid): Test Validity_Check suppressed
14660 (Insert_Valid_Check): Test Validity_Check suppressed
14661 (Insert_Valid_Check): Preserve Do_Range_Check flag
14662 (Validity_Check_Range): New procedure
14663 (Expr_Known_Valid): Result of membership test is always valid
14664 (Selected_Range_Checks): Range checks cannot be applied to discriminants
14665 by themselves. Disabling those checks must also be done for task types,
14666 where discriminants may be used for the bounds of entry families.
14667 (Apply_Address_Clause_Check): Remove side-effects if address expression
14668 is non-static and is not the name of a declared constant.
14669 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14670 Code cleanup and new error messages.
14671 (Enable_Range_Check): Test for some cases of suppressed checks
14672 (Generate_Index_Checks): Suppress index checks if index checks are
14673 suppressed for array object or array type.
14674 (Apply_Selected_Length_Checks): Give warning for compile-time detected
14675 length check failure, even if checks are off.
14676 (Ensure_Valid): Do not generate a check on an indexed component whose
14677 prefix is a packed boolean array.
14678 * checks.adb: (Alignment_Checks_Suppressed): New function
14679 (Apply_Address_Clause_Check): New procedure, this is a completely
14680 rewritten replacement for Apply_Alignment_Check
14681 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14682 we request a discriminal value only in case of discriminants.
14683 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14684 assignments where the target subtype is unconstrained and the target
14685 object is a parameter or dereference (other aliased cases are known
14686 to be unconstrained).
14688 2006-10-31 Robert Dewar <dewar@adacore.com>
14690 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14691 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14692 vms_conv.adb: Fix bad table increment values (much too small)
14694 * table.adb (Realloc): Make sure we get at least some new elements
14695 Defends against silly small values for table increment
14697 2006-10-31 Robert Dewar <dewar@adacore.com>
14698 Ed Schonberg <schonberg@adacore.com>
14699 Bob Duff <duff@adacore.com>
14701 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14702 entities. Move other fields around to make this possible
14703 (Is_Derived_Type): Add missing call to Is_Type.
14704 (Extra_Formals): New function for subprograms, entries, subprogram
14706 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14707 (First_Formal_With_Extras): New function for subprogs, entries, subp
14709 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14710 Add node information for E_Return_Statement.
14711 (Elaborate_Body_Desirable): New flag
14712 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14713 to be Is_Inherently_Limited_Type, because return-by-reference has
14714 no meaning in Ada 2005.
14715 (E_Return_Statement): New entity kind.
14716 (Return_Applies_To): Field of E_Return_Statement.
14717 (Is_Return_Object): New flag in object entities.
14718 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14719 (Must_Have_Preelab_Init): New flag
14720 (Known_To_Have_Preelab_Init): New flag
14721 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14722 (Is_Visible_Formal): New flag on entities in formal packages.
14723 (Low_Bound_Known): New flag
14724 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14726 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14727 output when Id is an incomplete subtype.
14729 2006-10-31 Robert Dewar <dewar@adacore.com>
14731 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14732 Avoid abbreviation Creat
14733 (Finalize): List all sources in extended mail source if -gnatl
14735 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14736 (Finalize): Implement new -gnatl=xxx switch to output listing to file
14737 (Set_Specific_Warning_On): New procedure
14738 (Set_Specific_Warning_Off): New procedure
14739 Add implementation of new insertion \\
14740 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14741 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14743 (Error_Msg_Internal): Make sure that we set Last_Killed to
14744 True when a message from another package is suppressed.
14745 Implement insertion character ~ (insert string)
14746 (First_Node): Minor adjustments to get better placement.
14749 Implement new -gnatl=xxx switch to output listing to file
14752 Implement new -gnatl=xxx switch to output listing to file
14754 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14755 (Commands_To_Stdout): New flag
14756 Implement new -gnatl=xxx switch to output listing to file
14757 New switch Dump_Source_Text
14758 (Warn_On_Deleted_Code): New warning flag for -gnatwt
14759 Define Error_Msg_Line_Length
14760 (Warn_On_Assumed_Low_Bound): New switch
14762 * osint.ads, osint.adb
14763 (Normalize_Directory_Name): Fix bug.
14764 Implement new -gnatl=xxx switch to output listing to file
14765 (Concat): Removed, replaced by real concatenation
14766 Make use of concatenation now allowed in compiler
14767 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14768 we find the 'lib' or 'bin' directory even when the tool has been
14769 invoked with a relative path.
14770 (Executable_Name): New function taking string parameters.
14772 * osint-c.ads, osint-c.adb:
14773 Implement new -gnatl=xxx switch to output listing to file
14775 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14778 Implement new -gnatl=xxx switch to output listing to file
14779 Recognize new -gnatL switch
14780 (no longer keep in old warning about old style usage)
14781 Use concatenation to simplify code
14782 Recognize -gnatjnn switch
14783 (Scan_Front_End_Switches): Clean up handling of -gnatW
14784 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14786 2006-10-31 Robert Dewar <dewar@adacore.com>
14788 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14789 (Set_Specific_Warning_Off): New procedure
14790 (Warning_Specifically_Suppressed): New function
14791 (Validate_Specific_Warnings): New procedure
14792 (Output_Msg_Text): Complete rewrite to support -gnatjnn
14794 * err_vars.ads: Implement insertion character ~ (insert string)
14796 2006-10-31 Bob Duff <duff@adacore.com>
14797 Ed Schonberg <schonberg@adacore.com>
14799 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14800 the parent part is a build-in-place function call, generate assignments.
14801 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14802 are build-in-place function calls.
14803 (Replace_Self_Reference): New subsidiary of
14804 Make_OK_Assignment_Statement, to replace an access attribute that is a
14805 self-reference into an access to the appropriate component of the
14806 target object. Generalizes previous mechanism to handle self-references
14807 nested at any level.
14808 (Is_Self_Referential_Init): Remove, not needed.
14809 (Is_Self_Referential_Init): New predicate to simplify handling of self
14810 referential components in record aggregates.
14811 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14812 check for presence of entity before checking for self-reference.
14813 (Has_Default_Init_Comps): Return True if a component association is a
14814 self-reference to the enclosing type, which can only come from a
14815 default initialization.
14816 (Make_OK_Assignment_Statement): If the expression is of the form
14817 Typ'Acc, where Acc is an access attribute, the expression comes from a
14818 default initialized self-referential component.
14819 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14820 that has been derived from several abstract interfaces we must also
14821 initialize the tags of the secondary dispatch tables.
14823 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14824 Thomas Quinot <quinot@adacore.com>
14825 Javier Miranda <miranda@adacore.com>
14826 Robert Dewar <dewar@adacore.com>
14829 (Expand_Access_To_Protected_Op): If the context indicates that an access
14830 to a local operation may be transfered outside of the object, create an
14831 access to the wrapper operation that must be used in an external call.
14832 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14833 target, pass the Valid attribute applied to a floating-point prefix on
14834 to the back end without expansion.
14835 (Storage_Size): Use the new run-time function Storage_Size to retrieve
14836 the allocated storage when it is specified by a per-object expression.
14837 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14838 Nothing to do here, the attribute has been rewritten during semantic
14840 (Expand_Attribute_Reference): Handle expansion of the new Priority
14842 (Find_Fat_Info): Handle case of universal real
14843 (Expand_Access_To_Protected_Op): Fix use of access to protected
14844 subprogram from inside the body of a protected entry.
14845 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14846 'Access and 'Unrestricted_Access, to transform the attribute reference
14847 into a fat pointer.
14848 (Is_Constrained_Aliased_View): New predicate to help determine whether a
14849 subcomponent's enclosing variable is aliased with a constrained subtype.
14850 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14851 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14852 an aliased prefix must be known to be constrained in order to use True
14853 for the attribute value, and now it's possible for some aliased views
14854 to be unconstrained.
14856 2006-10-31 Robert Dewar <dewar@adacore.com>
14858 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14859 (Expand_Entity_Reference): Correct error of not handling subprogram
14860 formals in current_value processing.
14862 2006-10-31 Javier Miranda <miranda@adacore.com>
14863 Robert Dewar <dewar@adacore.com>
14864 Ed Schonberg <schonberg@adacore.com>
14865 Gary Dismukes <dismukes@adacore.com>
14867 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14868 register in the final list objects containing class-wide interfaces;
14869 otherwise we incorrectly register the tag of the interface in the final
14871 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14872 generate the wrapper if the parent primitive is abstract. This is
14873 required to report the correct error message.
14874 (Expand_N_Subtype_Indication): Do validity checks on range
14875 (Clean_Task_Names): If an initialization procedure includes a call to
14876 initialize a task (sub)component, indicate that the procedure will use
14877 the secondary stack.
14878 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14879 compatibility for interfacing with CPP by default.
14880 (Expand_N_Object_Declaration): Only build an Adjust call when the
14881 object's type is a nonlimited controlled type.
14882 * exp_ch3.adb: Add with and use of Exp_Ch6.
14883 (Expand_N_Object_Declaration): Check for object initialization that is a
14884 call to build-in-place function and apply Make_Build_In_Place_Call_In_
14885 Object_Declaration to the call.
14886 (Freeze_Type): When the designated type of an RACW was not frozen at the
14887 point where the RACW was declared, validate the primitive operations
14888 with respect to E.2.2(14) when it finally is frozen.
14889 (Build_Initialization_Call,Expand_Record_Controller): Rename
14890 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14891 return-by-reference has no meaning in Ada 2005.
14892 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14893 to register tag of the immediate ancestor interfaces in the
14894 run-time structure.
14895 (Init_Secondary_Tags): Moved to the specification to allow the
14896 initialization of extension aggregates with abstract interfaces.
14897 (Build_Master_Renaming): Make public, for use by function declarations
14898 whose return type is an anonymous access type.
14899 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14900 Insert_List_Before_And_Analyze after the generation of the specs
14901 associated with null procedures.
14902 (Expand_Tagged_Root): Update documentation in its specification.
14903 (Init_Secondary_Tags): Update documentation.
14904 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14905 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14906 then generate code to inherit the contents of the dispatch table
14907 directly from the ancestor.
14908 (Expand_Record_Controller): Insert controller component after tags of
14909 implemented interfaces.
14910 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14911 create null procedure overridings when null procedures are inherited
14913 (Make_Null_Procedure_Specs): New procedure to generate null procedure
14914 declarations for overriding null primitives inherited from interfaces.
14915 (Is_Null_Interface_Procedure): New function in
14916 Make_Null_Procedure_Specs.
14917 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14918 immediate ancestor of a tagged type is an abstract interface type we
14919 must generate the specification of the predefined primitives associated
14920 with controlled types (because the dispatch table of the ancestor is
14921 null and hence these entries cannot be inherited). This is required to
14922 elaborate well the dispatch table.
14924 2006-10-31 Javier Miranda <miranda@adacore.com>
14925 Ed Schonberg <schonberg@adacore.com>
14926 Bob Duff <duff@adacore.com>
14927 Gary Dismukes <dismukes@adacore.com>
14928 Robert Dewar <dewar@adacore.com>
14930 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14932 (Expand_N_In): Do validity checks on range
14933 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14934 (Expand_N_Allocator): For "new T", if the object is constrained by
14935 discriminant defaults, allocate the right amount of memory, rather than
14936 the maximum for type T.
14937 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14938 when the allocator is initialized by a build-in-place call, since the
14939 allocator is already rewritten as a reference to the function result,
14940 and this prevents an unwanted duplication of the function call.
14941 Add with and use of Exp_Ch6.
14942 (Expand_Allocator_Expresssion): Check for an allocator whose expression
14943 is a call to build-in-place function and apply
14944 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14945 untagged designated types).
14946 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14947 optimization if source or target is biased.
14948 (Expand_N_Allocator): Add comments for case of an allocator within a
14949 function that returns an anonymous access type designating tasks.
14950 (Expand_N_Allocator): apply discriminant checks for access
14951 discriminants of anonymous access types (AI-402, AI-416)
14953 2006-10-31 Bob Duff <duff@adacore.com>
14954 Robert Dewar <dewar@adacore.com>
14955 Gary Dismukes <dismukes@adacore.com>
14956 Ed Schonberg <schonberg@adacore.com>
14958 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14960 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14961 (Expand_N_Assignment_Statement): Call
14962 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14963 build-in-place function call. Currently, this can happen only for
14964 assignments that come from aggregates.
14965 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14966 in order to alleviate the upward compatibility introduced by AI-318.
14967 (Expand_N_Extended_Return_Statement): Add support for handling the
14968 return object as a build-in-place result.
14969 (Expand_Non_Function_Return): Implement simple return statements nested
14970 within an extended return.
14971 (Enable_New_Return_Processing): Turn on the new processing of return
14973 (Expand_Non_Function_Return): For a return within an extended return,
14974 don't raise Program_Error, because Sem_Ch6 now gives a warning.
14975 (Expand_N_Extended_Return_Statement): Implement AI-318
14976 (Expand_Simple_Function_Return): Ditto.
14977 (Expand_N_If_Statement): Handle new -gnatwt warning
14978 (Expand_N_Case_Statement): Handle new -gnatwt warning
14979 (Expand_N_Assignment): Handle assignment to the Priority attribute of
14980 a protected object.
14981 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14982 validity checking of assignments to elementary record components.
14983 (Expand_N_Return_Statement): return Class Wide types on the secondary
14984 stack independantly of their controlled status since with HIE runtimes,
14985 class wide types are not potentially controlled anymore.
14987 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14990 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14991 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14992 it expects a block, procedure, or task. The return statement will get
14993 turned into a block, and Expand_Cleanup_Actions will happen then.
14995 2006-10-31 Robert Dewar <dewar@adacore.com>
14996 Ed Schonberg <schonberg@adacore.com>
14997 Bob Duff <duff@adacore.com>
14998 Gary Dismukes <dismukes@adacore.com>
15000 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15002 (Expand_Inlined_Call): Tagged types are by-reference types, and
15003 therefore should be replaced by a renaming declaration in the expanded
15004 body, as is done for limited types.
15005 (Expand_Call): If this is a call to a function with dispatching access
15006 result, propagate tag from context.
15007 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15009 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15010 build-in-place when the right-hand side of an assignment is a
15011 build-in-place function call.
15012 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15013 of the explicit dereference of the allocator to the result subtype of
15014 the build-in-place function. This is needed to satisfy type checking
15015 in cases where the caller's return object is created by an allocator for
15016 a class-wide access type and the type named in the allocator is a
15018 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15019 conversion of the reference to the declared object to the result subtype
15020 of the build-in-place function. This is needed to satisfy type checking
15021 in cases where the declared object has a class-wide type. Also, in the
15022 class-wide case, change the type of the object entity to the specific
15023 result subtype of the function, to avoid passing a class-wide object
15024 without explicit initialization to the back end.
15025 (Register_Interface_DT_Entry): Moved outside the body of
15026 Freeze_Subprogram because this routine is now public; it is called from
15027 Check_Dispatching_Overriding to handle late overriding of abstract
15028 interface primitives.
15029 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15030 adding an implicit access actual on a call to a build-in-place function.
15031 (Expand_Actuals): Test for an actual parameter that is a call to a
15032 build-in-place function and apply
15033 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15034 (Is_Build_In_Place_Function): New function to determine whether an
15035 entity is a function whose calls should be handled as build-in-place.
15036 (Is_Build_In_Place_Function_Call): New function to determine whether an
15037 expression is a function call that should handled as build-in-place.
15038 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15039 calls to build-in-place functions as the initialization of an allocator.
15040 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15041 handling calls to build-in-place functions in contexts that do not
15042 involve init of a separate object (for example, actuals of subprogram
15044 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15045 handling calls to build-in-place functions as the initialization of an
15046 object declaration.
15047 (Detect_Infinite_Recursion): Add explicit parameter Process to
15048 instantiation of Traverse_Body to avoid unreferenced warning.
15049 (Check_Overriding_Inherited_Interfaces): Removed.
15050 (Register_Interface_DT_Entry): Code cleanup.
15051 (Register_Predefined_DT_Entry): Code cleanup.
15052 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15053 inlined statements if within a transient scope.
15054 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15055 formal parameters with occurrences of actuals in inlined body, establish
15056 visibility on the proper view of the actual's subtype for the body's
15058 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15059 compatibility mode and we have an imported CPP subprogram because
15060 for now we assume that imported CPP primitives correspond with
15061 objects whose constructor is in the CPP side (and therefore we
15062 don't need to generate code to register them in the dispatch table).
15063 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15064 aligned selected component.
15065 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15066 the actual of an in-mode parameter is a type conversion.
15067 (Expand_Actuals): If the call does not come from source and the actual
15068 is potentially misaligned, let gigi handle it rather than rejecting the
15069 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15070 Class Wide types as returning by reference independantly of their
15071 controlled status since with HIE runtimes class wide types are not
15072 potentially controlled anymore.
15074 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15076 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15077 references that are private components of the protected object.
15078 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15079 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15080 instantiation to deal with warnings.
15081 (Initialize_Protection): If expression for priority is non-static, use
15082 System_Priority as its expected type, in case the expression has not
15085 2006-10-31 Robert Dewar <dewar@adacore.com>
15087 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15088 initialization of Homonym_Len.
15089 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15090 names from fully qualified name. Fixes problem of duplicate
15091 external names differing only in the presence of such a block name.
15093 2006-10-31 Thomas Quinot <quinot@adacore.com>
15094 Pablo Oliveira <oliveira@adacore.com>
15096 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15097 subprogram Ids, even if they are not yet assigned.
15098 (Build_Subprogram_Id): It is now this function that will take care of
15099 calling Assign_Subprogram_Ids if necessary.
15100 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15101 should be done only once they are assigned.
15102 (Build_From_Any_Function, case of tagged types): Add missing call to
15104 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15105 type for an RACW type.
15106 (Add_RACW_Features): When processing an RACW declaration for which the
15107 designated type is already frozen, enforce E.2.2(14) rules immediately.
15108 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15109 special reordering of controlling formals.
15111 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15112 associated stub type for an RACW type.
15114 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15116 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15117 fixed-point operations in an integer context, i.e. as operands of a
15118 conversion to an integer type, indicate that result must be rounded.
15120 2006-10-31 Robert Dewar <dewar@adacore.com>
15122 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15123 cases, pass the encoding method, since it is now required by the run
15126 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15127 assumption that Str'First = 1.
15128 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15129 it on to the Value_Wide_Wide_Character call.
15130 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15131 properly handles a string of the form quote-encoded_wide_char-quote.
15133 * s-wchcnv.adb: Minor reformatting
15135 2006-10-31 Javier Miranda <miranda@adacore.com>
15137 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15138 run-time membership test to ensure that the constructed object
15139 implements the target abstract interface.
15141 2006-10-31 Robert Dewar <dewar@adacore.com>
15143 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15144 Machine_Attribute pragma internally to implement the user pragma.
15145 Add processing for pragma Interface so that it is now completely
15146 equivalent to pragma Import.
15148 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15149 so that it can be applied to all entities, including record components
15150 and enumeration literals.
15151 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15152 priority ranges are correct, verify compatibility against task
15153 dispatching and locking policies, and if everything is correct an entry
15154 is added to the table containing priority specific dispatching entries
15155 for this compilation unit.
15156 (Delay_Config_Pragma_Analyze): Delay processing
15157 Priority_Specific_Dispatching pragmas because when processing the
15158 pragma we need to access run-time data, such as the range of
15159 System.Any_Priority.
15160 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15161 Allow pragma Unreferenced as a context item
15162 Add pragma Preelaborable_Initialization
15163 (Analyze_Pragma, case Interface): Interface is extended so that it is
15164 now syntactically and semantically equivalent to Import.
15165 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15166 insertion characters.
15167 Add handling for Pragma_Wide_Character_Encoding
15168 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15169 never supercedes a real restriction, and that a real restriction
15170 always supercedes a warning.
15171 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15174 2006-10-31 Bob Duff <duff@adacore.com>
15175 Ed Schonberg <schonberg@adacore.com>
15176 Robert Dewar <dewar@adacore.com>
15178 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15179 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15180 Is_Inherently_Limited_Type, because return-by-reference has no meaning
15182 (Find_Node_To_Be_Wrapped): Use new method of determining the result
15183 type of the function containing a return statement, because the
15184 Return_Type field was removed. We now use the Return_Applies_To field.
15186 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15187 (Build_Task_Image_Decl): If procedure is not called from an
15188 initialization procedure, indicate that function that builds task name
15189 uses the sec. stack. Otherwise the enclosing initialization procedure
15190 will carry the indication.
15191 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15192 N_Object_Declaration instead.
15193 (Kill_Dead_Code): New interface to implement -gnatwt warning for
15194 conditional dead code killed, and change implementation accordingly.
15195 (Insert_Actions): Add N_Return_Object_Declaration case.
15196 Correct comment to mention N_Extension_Aggregate node.
15197 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15198 attempts to save information for global variables which cannot be
15200 (Get_Current_Value_Condition): Handle conditions the other way round
15201 (constant on left). Also handle right operand of AND and AND THEN
15202 (Set_Current_Value_Condition): Corresponding changes
15203 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15204 (Get_Current_Value_Condition): Handle simple boolean operands
15205 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15206 (Get_Current_Value_Condition): If the variable reference is within an
15207 if-statement, does not appear in the list of then_statments, and does
15208 not come from source, treat it as being at unknown location.
15209 (Get_Current_Value_Condition): Enhance to allow while statements to be
15210 processed as well as if statements.
15211 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15213 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15214 of loop. This is safe now that we fixed Kill_Current_Values.
15215 (OK_To_Do_Constant_Replacement): Check whether current scope is
15216 Standard, before examining outer scopes.
15218 2006-10-31 Vincent Celier <celier@adacore.com>
15220 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15221 When True, apply VMS treatment to children of packages A, G, I and S.
15224 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15226 2006-10-31 Robert Dewar <dewar@adacore.com>
15227 Ed Schonberg <schonberg@adacore.com>
15229 * freeze.adb: Add handling of Last_Assignment field
15230 (Warn_Overlay): Supply missing continuation marks in error msgs
15231 (Freeze_Entity): Add check for Preelaborable_Initialization
15233 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15235 * g-expect.adb: Add Warnings (Off) to prevent new warning
15237 * lib-xref.adb: Add handling of Last_Assignment field
15238 (Generate_Reference): Centralize handling of pragma Obsolescent here
15239 (Generate_Reference): Accept an implicit reference generated for a
15240 default in an instance.
15241 (Generate_Reference): Accept a reference for a node that is not in the
15242 main unit, if it is the generic body corresponding to an subprogram
15245 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15247 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15249 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15251 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15252 use clauses, to avoid messages on packages used to qualify, and also
15253 to avoid messages from obsolescent units.
15254 (Warn_On_Useless_Assignments): Don't generate messages for imported
15255 and exported variables.
15256 (Warn_On_Useless_Assignments): New procedure
15257 (Output_Obsolescent_Entity_Warnings): New procedure
15258 (Check_Code_Statement): New procedure
15260 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15261 Change name Is_Ada_2005 to Is_Ada_2005_Only
15262 (Last_Assignment): New field for useless assignment warning
15264 2006-10-31 Olivier Hainque <hainque@adacore.com>
15266 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15267 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15269 2006-10-31 Bob Duff <duff@adacore.com>
15270 Robert Dewar <dewar@adacore.com>
15271 Ed Schonberg <schonberg@adacore.com>
15273 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15274 Ada 95 mode, because it violates the new rules for AI-318.
15276 * g-awk.ads: Use overloaded subprograms in every case where we used to
15277 have a default of Current_Session. This makes the code closer to be
15278 correct for both Ada 95 and 2005.
15280 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15281 code, relying on the fact that the compiler generates a warning
15282 instead of an error in -gnatg mode.
15284 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15285 E_Return_Statement entity kind.
15286 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15288 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15289 report an error if the reserved word abstract has been previously found.
15290 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15292 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15293 parenthesized range attribute usage
15294 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15296 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15297 in the syntax for extended_return_statement. This is not in the latest
15298 RM, but the ARG is expected to issue an AI allowing this.
15299 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15300 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15301 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15302 P_Return_Statement): Parse the new syntax for extended_return_statement.
15304 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15305 Output_End_Missing): Add error-recovery code for the new
15306 extended_return_statement syntax; that is, the new E_Return entry on
15309 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15310 limited to nonlimited, because otherwise we violate the new Ada 2005
15311 rules about returning limited types in function Create_AST_Handler in
15314 * sem.adb (Analyze): Add cases for new node kinds
15315 N_Extended_Return_Statement and N_Return_Object_Declaration.
15317 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15318 type is in the same category as type of context before applying check,
15319 to prevent anomalies in instantiations.
15320 (Resolve_Aggregate): Remove test for limited components in aggregates.
15321 It's unnecessary in Ada 95, because if it has limited components, then
15322 it must be limited. It's wrong in Ada 2005, because limited aggregates
15324 (Resolve_Record_Aggregate): Move check for limited types later, because
15325 OK_For_Limited_Init requires its argument to have been resolved.
15326 (Get_Value): When copying the component default expression for a
15327 defaulted association in an aggregate, use the sloc of the aggregate
15328 and not that of the original expression, to prevent spurious
15329 elaboration errors, when the expression includes function calls.
15330 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15331 were missing. We also didn't handle qualified expressions. Now also
15332 allow function calls. Use new common routine OK_For_Limited_Init.
15333 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15334 with space can upper case letter).
15336 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15337 Has_Static_Discriminants flag
15338 (Record_Type_Declaration): Diagnose an attempt to declare an interface
15339 type with discriminants.
15340 (Process_Range_Expr_In_Decl): Do validity checks on range
15341 (Build_Discriminant_Constraints): Use updated form of
15342 Denotes_Discriminant.
15343 (Process_Subtype): If the subtype is a private subtype whose full view
15344 is a concurrent subtype, introduce an itype reference to prevent scope
15346 (Build_Derived_Record_Type, Collect_Interface_Primitives,
15347 Record_Type_Declaration): The functionality of the subprograms
15348 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15349 is now performed by a single routine.
15350 (Build_Derived_Record_Type): If the type definition includes an explicit
15351 indication of limitedness, then the type must be marked as limited here
15352 to ensure that any access discriminants will not be treated as having
15353 a local anonymous access type.
15354 (Check_Abstract_Overriding): Issue a detailed error message when an
15355 abstract subprogram was not overridden due to incorrect mode of its
15357 (Analyze_Private_Extension_Declaration): Add support for the analysis of
15358 synchronized private extension declarations. Verify that the ancestor is
15359 a limited or synchronized interface or in the generic case, the ancestor
15360 is a tagged limited type or synchronized interface and all progenitors
15361 are either limited or synchronized interfaces.
15362 Derived_Type_Declaration): Check for presence of private extension when
15363 dealing with synchronized formal derived types.
15364 Process_Full_View): Enchance the check done on the usage of "limited" by
15365 testing whether the private view is synchronized.
15366 Verify that a synchronized private view is completed by a protected or
15368 (OK_For_Limited_Init_In_05): New function.
15369 (Analyze_Object_Declaration): Move check for limited types later,
15370 because OK_For_Limited_Init requires its argument to have been resolved.
15371 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15372 in order to alleviate the upward compatibility introduced by AI-318.
15373 (Constrain_Corresponding_Record): If the constraint is for a component
15374 subtype, mark the itype as frozen, to avoid out-of-scope references to
15375 discriminants in the back-end.
15376 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15377 this subprogram against wrong sources.
15378 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15379 discriminant of limited type completed with a protected type, when the
15380 discriminant is used to constrain a private component of the type, and
15381 expansion is disabled.
15382 (Find_Type_Of_Object): Do not treat a return subtype that is an
15383 anonymous subtype as a local_anonymous_type, because its accessibility
15384 level is the return type of the enclosing function.
15385 (Check_Initialization): In -gnatg mode, turn the error "cannot
15386 initialize entities of limited type" into a warning.
15387 (OK_For_Limited_Init): Return true for generated nodes, since it
15388 sometimes violates the legality rules.
15389 (Make_Incomplete_Declaration): If the type for which an incomplete
15390 declaration is created happens to be the currently visible entity,
15391 preserve the homonym chain when removing it from visibility.
15392 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15393 inherited subprograms.
15394 (Access_Definition): If this is an access to function that is the return
15395 type of an access_to_function definition, context is a type declaration
15396 and the scope of the anonymous type is the current one.
15397 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15398 incomplete subtype to the set of private dependents of the original
15400 (Constrain_Discriminated_Type): Emit an error message whenever an
15401 incomplete subtype is being constrained.
15402 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15403 corresponding subtype of the full view of the original incomplete type.
15404 (Check_Incomplete): Properly detect invalid usage of incomplete types
15407 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15409 * g-catiio.ads, g-catiio.adb (Value): New function.
15410 Given an input String, try and parse a valid Time value.
15412 2006-10-31 Vincent Celier <celier@adacore.com>
15414 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15415 Integer_Address arithmetic, as in Set_Valid.
15417 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15418 Robert Dewar <dewar@adacore.com>
15420 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15421 handling executable extension manually and duplicating code.
15423 * make.adb: Implement new -S switch
15424 (Gnatmake): Use new function Osint.Executable_Name instead
15425 of handling executable extension manually.
15427 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15428 is specified, the executable name ends with this suffix.
15429 Take advantage of Osint.Executable_Name instead of duplicating code.
15431 * switch-m.adb: Recognize new gnatmake -S switch
15433 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15435 (Get_Target_Parameters): Set Executable_Extension_On_Target if
15438 * makeusg.adb: Add line for gnatmake -S switch
15440 2006-10-31 Vincent Celier <celier@adacore.com>
15442 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15443 call it with -static-libgcc, as there are some platforms, such as
15444 Darwin, where one of these two switches is compulsory to link.
15446 2006-10-31 Vincent Celier <celier@adacore.com>
15448 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15449 instead of ADA_PROJECT_PATH, for the project path.
15450 (Gnatls): When displaying the project path directories, use host dir
15453 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15454 names in the project path, as absolute paths may correspond to
15455 multi-valued VMS logical names.
15457 2006-10-31 Vincent Celier <celier@adacore.com>
15459 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15460 absolute path name.
15461 (Locate_Regular_File): Ditto
15462 (Change_Dir): Remove, no longer used
15463 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15464 on Windows. Get it calling Get_Current_Dir.
15465 (OpenVMS): Remove imported boolean, no longer needed.
15466 (Normalize_Pathname)[VMS]: Do not resolve directory names.
15467 (Pid_To_Integer): New function to convert a Process_Id to Integer
15469 2006-10-31 Thomas Quinot <quinot@adacore.com>
15471 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15472 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15474 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15477 2006-10-31 Robert Dewar <dewar@adacore.com>
15479 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15480 initial letter o as a zero.
15482 2006-10-31 Robert Dewar <dewar@adacore.com>
15484 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15486 2006-10-31 Robert Dewar <dewar@adacore.com>
15488 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15490 (Layout_Variant_Record): Retrieve the discriminants from the entity
15491 rather than from the type definition, because in the case of a full
15492 type for a private type we need to take the discriminants from the
15494 (Layout_Component_List): When applying the Max operator to variants with
15495 a nonstatic size, check whether either operand is static and scale that
15496 operand from bits to storage units before applying Max.
15497 (Layout_Type): In VMS, if a C-convention access type has no explicit
15498 size clause (and does not inherit one in the case of a derived type),
15499 then the size is reset to 32 from 64.
15501 2006-10-31 Vincent Celier <celier@adacore.com>
15503 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15504 its file has already been loaded, according to the unit being loaded,
15505 not to the current value of Multiple_Unit_Index.
15507 2006-10-31 Thomas Quinot <quinot@adacore.com>
15508 Eric Botcazou <ebotcazou@adacore.com>
15509 Arnaud Charlet <charlet@adacore.com>
15511 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15512 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15514 (a-except.o): Pass it to the compiler.
15515 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15516 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15517 a-calend-mingw.adb version.
15519 * Makefile.rtl: Added s-dsaser.
15520 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15521 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15522 Ada.Dispatching.Round_Robin.
15523 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15525 * Make-lang.in: Remove all references to gt-ada-decl.h.
15526 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15528 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15529 Update dependencies.
15531 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15533 2006-10-31 Vincent Celier <celier@adacore.com>
15535 * mlib-utl.adb (Initialized): Remove, no longer used
15536 (Initialize): Remove, no longer used
15537 (Ar): If Ar_Exec is null, get the location of the archive builder and,
15538 if there is one, the archive indexer. Fail if the archive builder cannot
15540 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15543 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15545 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15546 Process_Body_Clauses): If the context of a body includes a use clause
15547 for P.Q then a with_clause for P in the same body is not redundant,
15548 even if the spec also has a with_clause on P.
15549 Add missing continuation mark to error msg
15550 (Build_Limited_Views): A limited view of a type is tagged if its
15551 declaration includes a record extension.
15552 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15553 node, even if the subunit has errors. This avoids malfunction by
15554 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15555 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15556 generation of obsolescent messages for with statements (cannot do
15557 this too early, or we cannot implement avoiding the messages in the
15558 case of obsolescent units withing obsolescent units).
15559 (Install_Siblings): If the with_clause is on a remote descendant of
15560 an ancestor of the current compilation unit, find whether there is
15561 a sibling child unit that is immediately visible.
15562 (Remove_Private_With_Clauses): New procedure, invoked after completing
15563 the analysis of the private part of a nested package, to remove from
15564 visibility the private with_clauses of the enclosing package
15566 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15567 now centralized in Generate_Reference.
15568 (Install_Limited_Context_Clauses): Remove superfluous error
15569 message associated with unlimited view visible through use
15570 and renamings. In addition, at the point in which the error
15571 is reported, we add the backslash to the text of the error
15572 to ensure that it is reported as a single error message.
15573 Use new // insertion for some continuation messages
15574 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15575 to create implicit with_clause for parent unit mentioned in original
15576 limited_with_clause.
15577 (Install_Limited_With_Unit): Set entity of parent identifiers if the
15578 unit is a child unit. For ASIS queries.
15579 (Analyze_Subunit): If the subunit appears within a child unit, make all
15580 ancestor child units directly visible again.
15582 2006-10-31 Robert Dewar <dewar@adacore.com>
15584 * par-ch10.adb (P_Context_Clause): Minor error message fix
15586 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15587 Javier Miranda <miranda@adacore.com>
15589 * par-ch12.adb: Grammar update and cleanup.
15590 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15591 support for synchronized derived type definitions.
15592 Add the new actual Abstract_Present to every call to
15593 P_Interface_Type_Definition.
15594 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15595 a formal object declaration with an access definition or a subtype mark
15596 with a null exclusion.
15597 (P_Generic_Association): Handle association with box, and others_choice
15598 with box, to support Ada 2005 partially parametrized formal packages.
15600 2006-10-31 Robert Dewar <dewar@adacore.com>
15601 Javier Miranda <miranda@adacore.com>
15603 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15604 (P_Type_Declaration): Remove barrier against the reserved word "limited"
15605 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15606 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15607 private extensions.
15608 (P_Type_Declaration): Add the new actual Abstract_Present to every call
15609 to P_Interface_Type_Definition.
15610 (P_Interface_Type_Definition): Addition of one formal to report an error
15611 if the reserved word abstract has been previously found.
15612 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15613 object renaming declaration with an access definition or subtype mark
15614 with a possible null exclusion.
15616 * par-ch9.adb: Minor error msg fix
15618 * par-load.adb: Add missing continuation mark to error msg
15620 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15622 2006-10-31 Vincent Celier <celier@adacore.com>
15624 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15625 unknown attribute in unknown package or in package that does not need
15627 (Parse_Package_Declaration): Do not issue warning for unknown package in
15630 2006-10-31 Vincent Celier <celier@adacore.com>
15632 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15633 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15636 2006-10-31 Vincent Celier <celier@adacore.com>
15638 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15639 on VMS, change "__" to '.' before checking the name.
15640 (Record_Ada_Source): Always add the source file name in the list of
15641 of sources, even if it is not the first time, as it is for another
15643 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15644 dot, instead of replacing only the first '_'.
15646 * prj-part.adb (Parse): Convert project file path to canonical form
15648 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15649 extended, the project id of the project extending it is recorded in its
15650 data, even when it has already been processed as an imported project.
15652 2006-10-31 Robert Dewar <dewar@adacore.com>
15654 * repinfo.adb (List_Entities): Don't list entities from renaming
15657 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15658 Robert Dewar <dewar@adacore.com>
15660 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15661 only a restriction warning is active for the given restriction. This is
15662 desirable because we do not want to modify code in the case where only
15664 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15665 causes overriding of real restrictions.
15666 Take advantage of new No_Restrictions constant.
15668 * raise.h: (__gnat_set_globals): Change profile.
15670 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15672 * rtsfind.adb: Remove s-polint from comment as it exists no more.
15675 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15676 Move all the entities in obsolete package System.PolyORB_Interface to
15677 System.Partition_Interface.
15678 (RE_Storage_Size): New function in System.Tasking.
15679 (RE_Get_Ceiling): New entity.
15680 (RE_Set_Ceiling): New entity.
15681 (RO_PE_Get_Ceiling): New entity.
15682 (RO_RE_Set_Ceiling): New entity.
15683 (Inherit_CPP_DT): New entity
15685 2006-10-31 Robert Dewar <dewar@adacore.com>
15687 * scng.adb (Scan, case of numeric literal): Better msg for identifier
15688 starting with a digit.
15690 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15691 Thomas Quinot <quinot@adacore.com>
15692 Javier Miranda <miranda@adacore.com>
15693 Gary Dismukes <dismukes@adacore.com>
15695 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15696 properly an attempt to apply Unchecked_Access to a protected operation.
15697 (OK_Self_Reference): New subprogram to check the legality of an access
15698 attribute whose prefix is the type of an enclosing aggregate.
15699 Generalizes previous mechanism to handle attribute references nested
15700 arbitrarily deep within the aggregate.
15701 (Analyze_Access_Attribute): An access attribute whose prefix is a type
15702 can appear in an aggregate if this is a default-initialized aggregate
15703 for a self-referential type.
15704 (Resolve_Attribute, case Access): Ditto.
15705 Add support for new implementation defined attribute Stub_Type.
15706 (Eval_Attribute, case Attribute_Stub_Type): New case.
15707 (Analyze_Attribute, case Attribute_Stub_Type): New case.
15708 (Stream_Attribute_Available): Implement using new subprogram from
15709 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15710 Has_Specified_Stream_Attribute flag.
15711 Disallow Storage_Size and Storage_Pool for access to subprogram
15712 (Resolve_Attribute, case 'Access et al): Take into account anonymous
15713 access types of return subtypes in extended return statements. Remove
15714 accessibility checks on anonymous access types when Unchecked_Access is
15716 (Analyze_Attribute): Add support for the use of 'Class to convert
15717 a class-wide interface to a tagged type.
15718 Add support for the attribute Priority.
15719 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15720 whether the designated type is discriminated with a constrained partial
15721 view and require static matching in that case.
15722 Add local variable Des_Btyp. The Designated_Type
15723 of an access to incomplete subtype is either its non-limited view if
15724 coming from a limited with or its etype if regular incomplete subtype.
15726 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15727 Fix predicate to identify and allow cases of (expander-generated)
15728 references to tag of designated object of a RACW.
15729 (Validate_Static_Object_Name): In Ada 2005, a formal object is
15730 non-static, and therefore cannot appear as a primary in a preelaborable
15732 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15733 Has_Read_Write_Attributes.
15734 (Has_Read_Write_Attributes): Reimplement in termes of
15735 Has_Stream_Attribute_Definition.
15736 (Missing_Read_Write_Attributes): When checking component types in a
15737 record, unconditionally call Missing_Read_Write_Attributes recursively
15738 (remove guard checking for Is_Record_Type / Is_Access_Type).
15740 2006-10-31 Robert Dewar <dewar@adacore.com>
15742 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15743 useless assignments here and conditionalize it on absence of exception
15745 (Analyze_Exception_Handlers): Small code reorganization of error
15746 detection code, for new handling of formal packages.
15748 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15749 Hristian Kirtchev <kirtchev@adacore.com>
15751 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15752 that has been constant-folded, preserve information of original tree,
15754 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15755 generated private extension declaration if the formal derived type is
15756 synchronized. Carry synchronized present over to the generated private
15758 (Validate_Derived_Type_Instance): Ensure that the actual of a
15759 synchronized formal derived type is a synchronized tagged type.
15760 (Instantiate_Formal_Package): When creating the instantiation used to
15761 validate the actual package of a formal declared without a box, check
15762 whether the formal itself depends on a prior actual.
15763 (Instantiate_Formal_Subprogram): Create new entities for the defining
15764 identifiers of the formals in the renaming declaration, for ASIS use.
15765 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15766 a renaming declaration or a subtype declaration for an actual in an
15767 instance, capture location information of declaration in generic, for
15769 (Instantiate_Formal_Package): Add comments on needed additional tests.
15770 AI-317 (partial parametrization) is fully implemented.
15771 (Validate_Private_Type_Instance): Add check for actual which
15772 must have preelaborable initialization
15773 Use new // insertion for some continuation messages
15774 (Analyze_Formal_Object_Declaration): Change usage of Expression to
15775 Default_Expression. Add type retrieval when the declaration has an
15776 access definition. Update premature usage of incomplete type check.
15777 (Check_Access_Definition): New subsidiary routine. Check whether the
15778 current compilation version is Ada 05 and the supplied node has an
15780 (Instantiate object): Alphabetize local variables. Handle the creation
15781 of new renaming declarations with respect to the kind of definition
15782 used - either an access definition or a subtype mark. Guard against
15783 unnecessary error message in the context of anonymous access types after
15784 they have been resolved. Add check for required null exclusion in a
15785 formal object declaration.
15786 (Switch_View): A private subtype of a non-private type needs to be
15787 switched (the base type can have been switched without its private
15788 dependents because of the last branch of Check_Private_View.
15789 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15791 (Instantiate_Type): Emit an error message whenever a class-wide type of
15792 a tagged incomplete type is used as a generic actual.
15793 (Find_Actual_Type): Extend routine to handle a component type in a child
15794 unit that is imported from a formal package in a parent.
15795 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15796 agree on constrainedness, rather than checking against ultimate ancestor
15797 (Instantiate_Subprogram_Body): Create a cross-reference link to the
15798 generic body, for navigation purposes.
15800 2006-10-31 Robert Dewar <dewar@adacore.com>
15801 Thomas Quinot <quinot@adacore.com>
15803 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15805 (New_Stream_Subprogram): When processing an attribute definition clause
15806 for a stream-oriented subprogram, record an entity node occurring at
15807 the point of clause to use for checking the visibility of the clause,
15808 as defined by 8.3(23) as amended by AI-195.
15809 (New_Stream_Subprogram): New procedure, factoring behaviour from both
15810 New_Stream_Function and New_Stream_Procedure.
15811 (New_Stream_Function, New_Stream_Procedure): Removed.
15812 (Analyze_Attribute_Definition_Clause, case Address): Check new
15813 Alignment_Check check
15815 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15816 Javier Miranda <miranda@adacore.com>
15817 Robert Dewar <dewar@adacore.com>
15819 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15820 generate the same errors compiling under -gnatc.
15821 (Try_Object_Operation): If no candidate interpretation succeeds, but
15822 there is at least one primitive operation with the right name, report
15823 error in call rather than on a malformed selected component.
15824 (Analyze_Selected_Component): If the prefix is an incomplete type from
15825 a limited view, and the full view is available, use the full view to
15826 determine whether this is a prefixed call to a primitive operation.
15827 (Operator_Check): Verify that a candidate interpretation is a binary
15828 operation before checking the type of its second formal.
15829 (Analyze_Call): Add additional warnings for function call contexts not
15831 (Analyze_Allocator): Move the check for "initialization not allowed for
15832 limited types" after analyzing the expression. This is necessary,
15833 because OK_For_Limited_Init looks at the structure of the expression.
15834 Before analysis, we don't necessarily know what sort of expression it
15835 is. For example, we don't know whether F(X) is a function call or an
15836 indexed component; the former is legal in Ada 2005; the latter is not.
15837 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15838 were missing. We also didn't handle qualified expressions. Now also
15839 allow function calls. Use new common routine OK_For_Limited_Init.
15840 (Analyze_Type_Conversion): Do not perform some legality checks in an
15841 instance, because the error message will be redundant or spurious.
15842 (Analyze_Overloaded_Selected_Component): Do not do style check when
15843 setting an entity, since we do not know it is the right entity yet.
15844 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15845 (Analyze_Overloaded_Selected_Component): Same change
15846 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15847 since regular incomplete subtypes are transformed into corresponding
15848 subtypes of their full views.
15849 (Complete_Object_Operation): Treat name of transformed subprogram call
15850 as coming from source, for browsing purposes.
15851 (Try_Primitive_Operation): If formal is an access parameter, compare
15852 with base type of object to determine whether it is a primitive
15854 (Operator_Check): If no interpretation of the operator matches, check
15855 whether a use clause on any candidate might make the operation legal.
15856 (Try_Class_Wide_Operation): Check whether the first parameter is an
15857 access type whose designated type is class-wide.
15859 2006-10-31 Robert Dewar <dewar@adacore.com>
15860 Ed Schonberg <schonberg@adacore.com>
15861 Gary Dismukes <dismukes@adacore.com>
15863 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15864 warn on infinite loops.
15865 Add \\ to some continuation messages
15866 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15867 (Process_Bounds): If the bounds are integer literals that result from
15868 constant-folding, and they carry a user-defined type, preserve that type
15869 rather than treating this as an integer range.
15870 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15871 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15872 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15873 left hand side of assignment.
15874 (Analyze_Assignment): Add suport to manage assigments to the attribute
15875 priority of a protected object.
15876 (Check_Possible_Current_Value_Condition): Allow fully qualified names
15877 not just identifiers.
15878 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15879 or AND THEN for possible tracking.
15880 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15881 case of while loops so we can track values in the loop body.
15883 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15884 Hristian Kirtchev <kirtchev@adacore.com>
15885 Bob Duff <duff@adacore.com>
15887 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15888 procedure cannot be a protected operation (it is a basic_declaration,
15889 not a subprogram_declaration).
15890 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15891 Subp. Add logic for entry processing.
15892 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15893 Determine whether an entry or subprogram of a protected or task type
15894 override an inherited primitive of an implemented interface.
15895 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15896 Update the actual used in calls to Check_Overriding_Indicator.
15897 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15898 generate the proper reference to the parent unit, for cross-reference.
15899 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15901 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15902 (Add_Extra_Formal): Revise procedure to allow passing in associated
15903 entity, scope, and name suffix, and handle setting of the new
15904 Extra_Formals field.
15905 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15906 pass new parameters. Add support for adding the new extra access formal
15907 for functions whose calls are treated as build-in-place.
15908 (Analyze_A_Return_Statement): Correct casing in error message.
15909 Move Pop_Scope to after Analyze_Function_Return, because an extended
15910 return statement really is a full-fledged scope. Otherwise, visibility
15911 doesn't work right. Correct use of "\" for continuation messages.
15912 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15913 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15914 the node doesn't get properly marked as analyzed.
15915 (Analyze_Subprogram_Body): If subprogram is a function that returns
15916 an anonymous access type that denotes a task, build a Master Entity
15918 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15919 proper usage of null exclusion in a result definition.
15920 (Process_Formals): Code cleanup and new error message.
15921 (Process_Formals): Detect incorrect application of null exclusion to
15923 (Conforming_Types): Handle conformance between [sub]types and itypes
15924 generated for entities that have null exclusions applied to them.
15925 (Maybe_Primitive_Operation): Add an additional type retrieval when the
15926 base type is an access subtype. This case arrises with null exclusions.
15927 (New_Overloaded_Entity): Do not remove the overriden entity from the
15928 homonym chain if it corresponds with an abstract interface primitive.
15929 (Process_Formals): Replace membership test agains Incomplete_Kind with a
15930 call to the synthesized predicate Is_Incomplete_Type.
15931 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15933 (Analyze_Subprogram_Declaration): Check that abstract interface
15934 primitives are abstract or null.
15935 (Analyze_Subprogram_Specification): Remove previous check for abstract
15936 interfaces because it was not complete.
15937 (Has_Interface_Formals): Removed.
15939 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15940 Javier Miranda <miranda@adacore.com>
15942 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15943 of Analyze_Package_Body, to create Itype references for anonymous
15944 access types created in the package declaration, whose designated types
15945 may have only a limited view.
15946 (Analyze_Package_Specification): For the private part of a nested
15947 package, install private_with_clauses of enclosing compilation unit if
15948 we are in its visible part.
15949 (Declare_Inherited_Private_Subprograms): Complete barrier
15950 to ensure that the primitive operation has an alias to some parent
15951 primitive. This is now required because, after the changes done for the
15952 implementation of abstract interfaces, the contents of the list of
15953 primitives has entities whose alias attribute references entities of
15954 such list of primitives.
15955 (Analyze_Package_Specification): Simplify code that handles parent units
15956 of instances and formal packages.
15957 (Uninstall_Declarations): Check the convention consistency among
15958 primitive overriding operations of a tagged record type.
15960 2006-10-31 Robert Dewar <dewar@adacore.com>
15961 Hristian Kirtchev <kirtchev@adacore.com>
15962 Javier Miranda <miranda@adacore.com>
15963 Ed Schonberg <schonberg@adacore.com>
15965 * sem_ch8.adb: Minor error msg rewording
15966 (Undefined): When checking for misspellings, invert arguments (to get
15967 expected and found set right)
15968 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15969 (Analyze_Generic_Renaming): Same fix
15970 (Use_One_Package): Do not take into account the internal entities of
15971 abstract interfaces during the analysis of entities that are marked
15972 as potentially use-visible.
15973 (Find_Type): Handle the case of an attribute reference for
15974 implementation defined attribute Stub_Type (simply let the analysis of
15975 the attribute reference rewrite it).
15976 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15977 type that appears in a Use_Type clause.
15978 (Analyze_Object_Renaming): Add support for renaming of the Priority
15980 (Find_Type): In Ada 2005, a task type can be used within its own body,
15981 when it appears in an access definition.
15982 (Analyze_Object_Renaming): Remove warning on null_exclusion.
15983 (Analyze_Object_Renaming): Introduce checks for required null exclusion
15984 in a formal object declaration or in a subtype declaration.
15985 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15986 (Check_Null_Exclusion): New local routine to
15987 Analyze_Subprogram_Renaming. Check whether the formals and return
15988 profile of a renamed subprogram have required null exclusions when
15989 their counterparts of the renaming already impose them.
15990 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15991 Determine whether an entity is inside a generic scope.
15992 (In_Open_Scope): First pass of documentation update.
15993 (Find_Expanded_Name): Add support for shadow entities associated with
15994 limited withed packages. This is required to handle nested packages.
15995 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15996 that makes a renaming of a limited withed package illegal.
15998 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15999 Ed Schonberg <schonberg@adacore.com>
16001 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16002 Check_Overriding_Indicator.
16003 (Analyze_Task_Definition): Ditto.
16004 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16005 (Check_Overriding_Indicator): To find overridden interface operation,
16006 examine only homonyms that have an explicit subprogram declaration, not
16007 inherited operations created by an unrelated type derivation.
16008 (Check_Overriding_Indicator): When checking for the presence of "null"
16009 in a procedure, ensure that the queried node is a procedure
16011 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16012 type when the formal is an access to variable.
16013 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16014 (Analyze_Task_Type): Same addition
16015 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16016 provide navigation capabilities for entries.
16018 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16019 Ed Schonberg <schonberg@adacore.com>
16020 Javier Miranda <miranda@adacore.com>
16021 Gary Dismukes <dismukes@adacore.com>
16023 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16024 inherited from an interface ancestor by another interface in the
16025 context of an instance as 'late'.
16026 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16027 of a call to a function that dispatches on access result.
16028 (Check_Dispatching_Operation): In case of late overriding of a primitive
16029 that covers abstract interface subprograms we register it in all the
16030 secondary dispatch tables associated with abstract interfaces.
16031 (Check_Dispatching_Call): Add check that a dispatching call is not made
16032 to a function with a controlling result of a limited type. This is a
16033 current implementation restriction.
16034 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16035 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16036 argument is an interface type that is a generic formal.
16037 (Is_Interface_Subprogram): Removed.
16038 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16039 operation, check the formals to handle the case in which it is
16040 associated with an abstract interface type.
16042 2006-10-31 Robert Dewar <dewar@adacore.com>
16043 Ed Schonberg <schonberg@adacore.com>
16045 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16046 Add new calls to this procedure during traversal
16047 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16048 another unit if expansion is disabled.
16050 2006-10-31 Robert Dewar <dewar@adacore.com>
16052 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16053 Current_Value in the conditional case, to evaluate additional
16054 comparisons at compile time.
16056 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16057 Hristian Kirtchev <kirtchev@adacore.com>
16058 Javier Miranda <miranda@adacore.com>
16060 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16061 subprogram type to provide better diagnostics in case of ambiguity.
16062 (Covers): Handle coverage of formal and actual anonymous access types in
16063 the context of generic instantiation.
16064 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16065 abstract interface types; this is required to handle concurrent types
16066 with discriminants and abstract interface types.
16067 (Covers): Include type coverage of both regular incomplete subtypes and
16068 incomplete subtypes of incomplete type visibles through a limited with
16071 2006-10-31 Robert Dewar <dewar@adacore.com>
16072 Hristian Kirtchev <kirtchev@adacore.com>
16073 Ed Schonberg <schonberg@adacore.com>
16075 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16076 messages for entities in packages which are not used.
16077 (Collect_Synchronized_Interfaces): New procedure.
16078 (Overrides_Synchronized_Primitive): New function.
16079 (Denotes_Discriminant): Extend predicate to apply to task types.
16080 Add missing continuation marks in error msgs
16081 (Unqualify): New function for removing zero or more levels of
16082 qualification from an expression. There are numerous places where this
16083 ought to be used, but we currently only deal properly with zero or one
16085 (In_Instance); The analysis of the actuals in the instantiation of a
16086 child unit is not within an instantiation, even though the parent
16087 instance is on the scope stack.
16088 (Safe_To_Capture_Value): Exclude the case of variables that are
16090 (Check_Obsolescent): Removed
16091 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16092 is an aliased view, even when rewritten as a reference to the target
16093 object in an assignment.
16094 (Get_Subprogram_Entity): New function
16095 (Known_To_Be_Assigned): New function
16096 (Type_Access_Level): Compute properly the access level of a return
16097 subtype that is an anonymous access type.
16098 (Explain_Limited_Type): Correct use of "\" for continuation messages.
16099 (Is_Transfer): The new extended_return_statement causes a transfer of
16101 (Has_Preelaborable_Initialization): New function
16102 (Has_Null_Exclusion): New function. Given a node N, determine whether it
16103 has a null exclusion depending on its Nkind.
16104 Change Is_Lvalue to May_Be_Lvalue
16105 (May_Be_Lvalue): Extensive additional code to deal with subprogram
16106 arguments (IN parameters are not Lvalues, IN OUT parameters are).
16107 (Safe_To_Capture_Value): Extend functionality so it can be used for
16108 the current value condition case.
16109 (Has_Compatible_Alignment): New function
16110 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16111 objects to handle the Ada 2005 case, where aliasedness no longer implies
16112 that the object is constrained. In particular, for dereferenced names,
16113 the designated object must be assumed to be unconstrained.
16114 (Kill_Current_Values): Properly deal with the case where we encounter
16115 a loop in the scope chain.
16116 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16118 (Compile_Time_Constraint_Error): Improve error message in error case
16120 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16121 associated with entities of abstract interface primitives.
16122 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16124 2006-10-31 Robert Dewar <dewar@adacore.com>
16126 * s-osinte-tru64.adb:
16127 Mark Asm statements Volatile to prevent warnings (seems a
16128 reasonable change anyway)
16131 * s-mastop-irix.adb: Add Volatile to Asm statements
16132 Suppresses warning, and seems appropriate in any case
16134 * s-osinte-vms.adb: Add Volatile to Asm statement
16136 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16138 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16140 Add call to Check_Code_Statement
16142 2006-10-31 Robert Dewar <dewar@adacore.com>
16143 Ed Schonberg <schonberg@adacore.com>
16144 Bob Duff <duff@adacore.com>
16146 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16147 Synchronized_Present): Add Formal_Derived_Type_Definition and
16148 Private_Extension_Declaration to the list of assertions.
16149 (Is_Entry_Barrier_Function): New flag
16150 (Has_Self_Reference): New flag on aggregates, to indicate that they
16151 contain a reference to the enclosing type, inserted through a default
16153 (Next_Rep_Item): Move from Node4 to Node5.
16154 (Entity): Add this field for N_Attribute_Definition_Clause.
16155 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16156 (N_Return_Object_Declaration): Remove this node kind. We now use
16157 N_Object_Declaration instead.
16158 (Actual_Designated_Subtype): Move to a different place to make room in
16159 N_Extended_Return_Statement.
16160 (Procedure_To_Call): Move to a different place to make room in
16161 N_Extended_Return_Statement.
16162 (Return_Type): Removed this field to make room in return statements
16164 (Return_Statement_Entity): New field in return statements, in part to
16165 replace Return_Type, and in part to support the fact that return
16166 statements are now pushed on the scope stack during semantic analysis.
16167 (Return_Object_Declarations): New field to support extended return
16169 (N_Extended_Return_Statement): New node for extended_return_statement
16171 (N_Return_Object_Declaration): New node for part of
16172 extended_return_statement nonterminal. Needed because all the necessary
16173 fields won't fit in N_Extended_Return_Statement.
16174 Generic_associations now carry the Box_Present flag, to indicate a
16175 default for an actual in a partially parametrized formal package.
16177 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16178 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16179 and for the new predefined dispatching policies: EDF_Across_Priorities,
16180 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16181 Introduce new name Stub_Type for implementation defined attribute.
16182 Add pragma Preelaborable_Initialization
16183 Add entry for Priority attribute.
16184 Add Pragma_Wide_Character_Encoding
16185 (Get_Convention_Name): Given a convention id, this function returns the
16186 corresponding name id from the names table.
16188 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16189 Robert Dewar <dewar@adacore.com>
16190 Bob Duff <duff@adacore.com>
16192 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16193 print null exclusion twice in the case of an access definition,
16194 Implement new -gnatL switch
16195 Remove N_Return_Object_Declaration. We now use
16196 N_Object_Declaration instead. Implement the case for
16197 N_Extended_Return_Statement. Alphabetize the cases.
16198 Add cases for new nodes N_Extended_Return_Statement and
16199 N_Return_Object_Declaration. The code is not yet written.
16200 Update the output for N_Formal_Object_Declaration
16201 and N_Object_Renaming_Declaration.
16202 (Write_Itype): Account for the case of a modular integer subtype whose
16203 base type is private.
16205 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16207 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16208 Remove elaboration code, now done in the binder.
16210 * s-rident.ads: Make this unit Preelaborate.
16211 (No_Restrictions): New constant used to clean up code and follow
16212 preelaborate constraints.
16215 Add System.Restrictions dependence, referenced directly from the
16216 binder generated file.
16218 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16220 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16221 True when AAMP extended floating-point is in use (48-bit). Change type
16222 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16223 the two byte array types on AFloat. Change type of IV_Ilf overlay
16224 variable from Byte8 to ByteLF. Add appropriate initializations of
16225 floating-point overlays for AAMP cases.
16227 2006-10-31 Javier Miranda <miranda@adacore.com>
16229 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16230 (Get_Ceiling): New subprogram that returns
16231 the ceiling priority of the protected object.
16232 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16233 the protected object.
16235 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16237 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16239 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16241 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16242 requeuing to the same protected object to give higher priority tasks
16243 the opportunity to execute.
16245 2006-10-31 Robert Dewar <dewar@adacore.com>
16247 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16248 add more precise check for the character sequence that follows '[' to
16249 avoid possible confusion in case if '[' is the last character of a
16251 (Scan_Wide): Always allow brackets encoding
16253 2006-10-31 Olivier Hainque <hainque@adacore.com>
16255 * s-stchop.ads: make this unit preelaborate. This is desirable in
16256 general and made mandatory by the use of this unit by s-taprop which
16257 is itself preelaborate.
16259 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16260 Td_Events component.
16262 2006-10-31 Vincent Celier <celier@adacore.com>
16264 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16267 2006-10-31 Vincent Celier <celier@adacore.com>
16269 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16271 2006-10-31 Vincent Celier <celier@adacore.com>
16273 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16275 (Check_Compilation_Needed): When checking a C or C++ source, do not
16276 resolve symbolic links.
16277 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16278 When not in verbose mode and Ellipse is True, display "..." for the
16279 first argument with Display set to False.
16280 (Build_Global_Archive): Always set Display True for the first object
16281 file. Call Display_Command with Ellipse set to True.
16283 2006-10-31 Matt Heaney <heaney@adacore.com>
16285 * a-crbtgo.ads: Commented each subprogram
16287 * a-crbtgo.adb: Added reference to book from which algorithms were
16290 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16291 indicate which child.
16292 (Generic_Conditional_Insert): changed parameter name from "Success" to
16294 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16296 * a-coorse.adb (Replace_Element): changed parameter name in call to
16297 conditional insert operation.
16299 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16301 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16304 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16305 conditional insert operation.
16307 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16310 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16311 instead of mode inout.
16313 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16315 (Generic_Read): preserve existing buckets array if possible
16316 (Generic_Write): don't send buckets array length anymore
16318 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16319 instead of mode inout.
16321 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16322 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16324 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16325 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16326 (Replace_Element): local operation is now an instantiation
16328 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16329 check current length.
16330 (Generic_Replace_Element): new operation
16332 2006-10-31 Doug Rupp <rupp@adacore.com>
16334 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16335 Call TBK$SYMBOLIZE without omitting parameters.
16337 2006-10-31 Vincent Celier <celier@adacore.com>
16339 * symbols-processing-vms-ia64.adb,
16340 symbols-processing-vms-alpha.adb (Process): Do not include symbols
16341 that come from generic instantiations in bodies.
16343 2006-10-31 Pat Rogers <rogers@adacore.com>
16345 * a-rttiev.ads, a-rttiev.adb:
16346 This is a significant redesign primarily for the sake of automatic
16347 timer task termination but also to fix a design flaw.
16348 Therefore we are now using an RTS lock, instead of a protected
16349 object, to provide mutual exclusion to the queue of pending events
16350 and the type Timing_Event is no longer a protected type.
16352 2006-10-31 Robert Dewar <dewar@adacore.com>
16353 Cyrille Comar <comar@adacore.com>
16354 Ben Brosgol <brosgol@adacore.com>
16356 * debug.adb: Update flags documentation
16358 * gnat_ugn.texi: Add documentation for new -gnatwq switch
16359 Clean up documentation for several other warning switches
16360 Clarify how task stack size can be specified with various
16361 versions of Windows.
16362 Add note that -gnatVo includes ranges including loops
16363 Add documentation for -gnatL switch
16364 Add note on elaboration warning for initializing variables
16365 Add documentation for new -gnatwt warning switch
16366 Document new form of pragma Warnings (On|Off, string)
16367 Add comment on use of pragma Warnings to control warnings
16368 Add documentation for -gnatjnn switch
16369 Modify section on interfacing with C for VMS 64-bit.
16370 Add doc for -gnatVe/E
16371 Add documentation of new warning flags -gnatww/-gnatwW
16372 Add warnings about address clause overlays to list of warnings
16373 (Exception Handling Control): Document that the option --RTS must be
16374 used consistently for gcc and gnatbind.
16375 Clarify that inlining is not always possible
16376 Update documentation on pragma Unchecked_Union.
16379 Add documentation for new extended version of pragma Obsolescent
16380 Add documentation for implementation defined attribute 'Stub_Type.
16381 Add note on use of Volatile in asm statements
16382 Add documentation on use of pragma Unreferenced in context clause
16383 Document new form of pragma Warnings (On|Off, pattern)
16384 Document pragma Wide_Character_Encoding
16385 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16386 enforced if code generation is active.
16387 Add section on pragma Suppress to document GNAT specific check
16389 Clarify difference between No_Dispatching_Calls & No_Dispatch.
16390 Add documentation for pragma Restrictions (No_Elaboration_Code)
16393 Add comments on layout of subprogram local variables in the
16394 presence of nested subprograms.
16396 * ug_words: Resync.
16398 * elists.ads: Minor reformatting
16399 Node returns Node_Or_Entity_Id (doc change only)
16401 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16403 * g-arrspl.ads (Create): Update comments.
16405 * sem.ads: Add details on the handling of the scope stack.
16407 * usage.adb: Update documentation.
16409 * validsw.ads, validsw.adb:
16410 Add definition of Validity_Check_Components and implement -gnatVe/E
16412 * vms_data.ads: Add missing VMS qualifiers.
16414 * s-addope.ads: Add documentation on overflow and divide by zero
16416 2006-10-31 Robert Dewar <dewar@adacore.com>
16417 Thomas Quinot <quinot@adacore.com>
16418 Arnaud Charlet <charlet@adacore.com>
16420 * fmap.adb: Put routines in alpha order
16422 * g-boumai.ads: Remove redundant 'in' keywords
16424 * g-cgi.adb: Minor reformatting
16426 * g-cgi.ads: Remove redundant 'in' keywords
16428 * get_targ.adb: Put routines in alpha order
16430 * prj-attr.ads: Minor reformatting
16432 * s-atacco.ads: Minor reformatting
16434 * scn.adb: Put routines in alpha order
16436 * sinput-l.adb: Minor comment fix
16438 * sinput-p.adb: Minor comment fix
16440 * s-maccod.ads: Minor reformatting
16442 * s-memory.adb: Minor reformatting
16444 * s-htable.adb: Fix typo in comment.
16446 * s-secsta.adb: Minor comment update.
16448 * s-soflin.adb: Minor reformatting
16451 Add comment about odd qualification in Storage_Offset declaration
16454 Remove unnecessary 'in' keywords for formal parameters.
16456 * treeprs.adt: Minor reformatting
16458 * urealp.adb: Put routines in alpha order
16460 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16463 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16465 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16467 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16468 workaround as on other platforms.
16470 * g-eacodu-vms.adb: Remove redundant 'in' keywords
16471 * g-expect-vms.adb: Remove redundant 'in' keywords
16473 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16474 clear error message if the list-of-files file cannot be opened.
16476 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16477 equality operator is always visible.
16479 * lang.opt: Woverlength-strings: New option.
16482 Update copyright, since nmake.ads and nmake.adb have changed.
16484 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16485 (Binder_Output_Time_Stamps_Set): removed.
16486 (Old_Binder_Output_Time_Stamp): idem.
16487 (New_Binder_Output_Time_Stamp): idem.
16488 (Recording_Time_From_Last_Bind): idem.
16489 (Recording_Time_From_Last_Bind): Make constant.
16491 * output.ads, output.adb (Write_Str): Allow LF characters
16492 (Write_Spaces): New procedure
16494 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16496 * inline.adb: Minor reformatting
16498 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16500 * s-mastop-vms.adb: Remove redundant 'in' keywords
16502 * s-osprim-vms.adb: Remove redundant 'in' keywords
16504 * s-trafor-default.adb: Remove redundant 'in' keywords
16506 * 9drpc.adb: Remove redundant 'in' keywords
16508 * s-osinte-mingw.ads: Minor reformatting
16510 * s-inmaop-posix.adb: Minor reformatting
16512 * a-direio.ads: Remove quotes from Compile_Time_Warning message
16514 * a-exexda.adb: Minor code reorganization
16516 * a-filico.adb: Minor reformatting
16518 * a-finali.adb: Minor reformatting
16520 * a-nudira.ads: Remove quote from Compile_Time_Warning message
16522 * a-numeri.ads: Minor reformatting
16524 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16526 * exp_pakd.ads: Fix obsolete comment
16528 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16529 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16530 Probably not a bug, but certainly neater and more efficient.
16532 * a-tienio.adb: Minor reformatting
16534 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16535 Avoid assuming low bound of string is 1.
16537 * gnatbind.adb: Change Bindusg to package and rename procedure as
16538 Display, which now ensures that it only outputs usage information once.
16539 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16541 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16544 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16546 (Match): Add pragma Assert to ensure that Matches'First is zero
16548 * g-regpat.ads (Match): Document that Matches lower bound must be zero
16550 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16551 documented preconditions (also kills warnings about bad indexes).
16553 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16555 (Build_Import_Library): Ditto;
16557 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16559 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16561 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16562 lower bound of choice table is 1.
16564 * sem_case.ads (Analyze_Choices): Document that lower bound of
16567 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16570 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16571 and add appropriate Assert pragma to suppress warnings.
16573 * atree.h, atree.ads, atree.adb
16574 Change Elist24 to Elist25
16575 Add definitions of Field28 and Node28
16576 (Traverse_Field): Use new syntactic parent table in sinfo.
16578 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16580 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16582 * exp_tss.adb: Put routines in alpha order
16584 * fe.h: Remove redundant declarations.
16586 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
16588 * utils.c (builtin_function): Rename to gnat_builtin_function.
16589 Move common code to add_builtin_function.
16590 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16591 gnat_builtin_function.
16592 * gigi.h (builtin_function): Rename to gnat_builtin_function.
16593 Change the signature.
16595 2006-10-16 Brooks Moses <bmoses@stanford.edu>
16597 * Makefile.in: Add TEXI2PDF definition.
16598 * Make-lang.in: Add "ada.pdf" target.
16600 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
16602 * decl.c, utils.c: Fix comment typos.
16603 * utils.c: Fix a typo.
16605 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
16607 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16608 on "pure" Ada subprograms if SJLJ exceptions are used.
16609 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16610 on the declaration node of JMPBUF_SAVE.
16611 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16612 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16613 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16615 2006-08-20 Laurent Guerby <laurent@guerby.net>
16618 g-socket.adb (Bind_Socket): Call Set_Address.
16620 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
16623 * decl.c (same_discriminant_p): New static function.
16624 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16625 subtype and we have discriminants, fix up the COMPONENT_REFs
16626 for the discriminants to make them reference the corresponding
16627 fields of the parent subtype after it has been built.
16629 2006-09-15 Roger Sayle <roger@eyesopen.com>
16632 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16633 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16635 2006-09-13 Olivier Hainque <hainque@adacore.com>
16638 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16639 of a SAVE_EXPR, just make the operand addressable/not-readonly and
16640 let the common gimplifier code make and propagate a temporary copy.
16641 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16642 out/in-out actuals and defer setting the addressable/readonly bits
16645 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16648 * decl.c (components_to_record): Defer emitting debug info for the
16649 record type associated with the variant until after we are sure to
16652 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16655 * gigi.h (gnat_internal_attribute_table): Declare.
16656 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16657 * utils.c (gnat_internal_attribute_table): New global variable.
16658 (builtin_function): Always call decl_attributes on the builtin.
16659 (handle_const_attribute): New static function.
16660 (handle_nothrow_attribute): Likewise.
16662 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16664 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16666 2006-06-23 Olivier Hainque <hainque@adacore.com>
16668 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16669 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16671 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
16672 Eric Botcazou <ebotcazou@adacore.com>
16675 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
16676 check-gnat into check-acats.
16678 2006-06-17 Karl Berry <karl@gnu.org>
16680 * gnat-style.texi (@dircategory): Use "Software development"
16681 instead of "Programming", following the Free Software Directory.
16683 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16686 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16688 2006-06-06 Laurent Guerby <laurent@guerby.net>
16691 mlib-utl.adb: Use Program_Name.
16693 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
16695 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16696 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16697 trans.c, utils.c: Fix comment typos. Follow spelling
16699 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
16702 2006-05-19 Nicolas Setton <setton@adacore.com>
16704 * misc.c (gnat_dwarf_name): New function.
16705 (LANG_HOOKS_DWARF_NAME): Define to it.
16707 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
16709 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16710 (ada/misc.o): Likewise.
16711 (ada/utils.o): Likewise.
16713 2006-04-08 Aurelien Jarno <aurel32@debian.org>
16715 * Makefile.in: Add Ada support for GNU/kFreeBSD.
16716 * s-osinte-kfreebsd-gnu.ads: New file.
16718 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
16720 * Make-lang.in: Rename docdir to gcc_docdir.
16722 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
16724 * gigi.h (get_ada_base_type): Delete.
16725 * utils2.c (get_ada_base_type): Likewise.
16726 * trans.c (convert_with_check): Operate in the real base type.
16728 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16730 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16732 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16734 * utils.c (create_var_decl): Use have_global_bss_p when deciding
16735 whether to make the decl common.
16737 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16739 * Make-lang.in (Ada): Remove.
16740 (.PHONY): Remove Ada
16742 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16744 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16745 aggregate, check the interpretations of the other operand to find one
16746 that may be a boolean array.
16748 (Analyze_Selected_Component): Fix flow-of-control typo in case where
16749 the prefix is a private extension.
16751 2006-02-17 Eric Botcazou <botcazou@adacore.com>
16754 * utils2.c (find_common_type): If both input types are BLKmode and
16755 have the same constant size, keep using the first one.
16757 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16759 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16761 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16763 2006-02-17 Jose Ruiz <ruiz@adacore.com>
16765 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16766 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
16767 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
16768 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16769 Abort_Defer/Undefer pairs to avoid the possibility of a task being
16770 aborted while owning a lock.
16772 2006-02-17 Javier Miranda <miranda@adacore.com>
16773 Robert Dewar <dewar@adacore.com>
16775 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16776 through an access to class-wide interface we force the displacement of
16777 the pointer to the allocated object to reference the corresponding
16778 secondary dispatch table.
16779 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16780 if Long_Shifts are supported on the target, even if 64 bit divides
16781 are not supported (configurable run time mode).
16782 (Expand_N_Type_Conversion): Do validity check if validity checks on
16783 operands are enabled.
16784 (Expand_N_Qualified_Expression): Do validity check if validity checks
16785 on operands are enabled.
16787 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16789 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16790 must be materialized when the renamed expression is an explicit
16793 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16795 * freeze.adb (Statically_Discriminated_Components): Return false if
16796 the bounds of the type of the discriminant are not static expressions.
16798 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16799 the bounds of the discriminant type are not static.
16801 2006-02-17 Robert Dewar <dewar@adacore.com>
16803 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16804 then we close To if it is valid.
16806 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16808 * init.c (facility_resignal_table): new array
16809 (__gnat_default_resignal_p): enhance default predicate to resignal if
16810 VMS condition has one of the predefined facility codes.
16812 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16814 * Makefile.in: Use VMS64 specialized versions of several units in
16815 Interfaces.C hierarchy to be compatible with HP C default size choices.
16816 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16818 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16820 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16821 instantiation, the corresponding entity is the related_instance of the
16822 wrapper package created for the instance.
16824 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16826 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16827 the current instance is nested within another instance in a child unit.
16829 2006-02-17 Javier Miranda <miranda@adacore.com>
16830 Ed Schonberg <schonberg@adacore.com>
16832 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16833 type we cannot inherit the primitive operations; we inherit the
16834 Corresponding_Record_Type (which has the list of primitive operations).
16835 (Check_Anonymous_Access_Types): When creating anonymous access types for
16836 access components, use Rewrite in order to preserve the tree structure,
16838 (Analyze_Object_Declaration): For limited types with access
16839 discriminants with defaults initialized by an aggregate, obtain
16840 subtype from aggregate as for other mutable types.
16841 (Derived_Type_Declaration): If the derived type is a limited interface,
16842 set the corresponding flag (Is_Limited_Record is not sufficient).
16844 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16846 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16847 to inline a function that returns an unconstrained type, the return
16848 expression must be the first variable declared in the body of the
16851 2006-02-17 Javier Miranda <miranda@adacore.com>
16853 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16854 abstract interface type, the static analysis is not enough to know if
16855 the interface is implemented or not by the source tagged type. Hence
16856 we must pass the work to the expander to generate the required code to
16857 evaluate the conversion at run-time.
16858 (Resolve_Equality_Op): Do not apply previous
16859 transformation if expansion is disasbled, to prevent anomalies when
16860 locating global references in a generic unit.
16862 2006-02-17 Vincent Celier <celier@adacore.com>
16864 * snames.ads, snames.adb: New standard names for new project attributes:
16865 archive_builder, archive_indexer, compiler_pic_option,
16866 config_body_file_name, config_body_file_name_pattern,
16867 config_file_switches, config_file_unique, config_spec_file_name,
16868 config_spec_file_name_pattern, default_builder_switches,
16869 default_global_compiler_switches, default_language,
16870 dependency_file_kind, global_compiler_switches, include_path,
16871 include_path_file, language_kind, linker_executable_option,
16872 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16873 roots, runtime_project.
16875 2006-02-17 Matthew Heaney <heaney@adacore.com>
16877 * a-convec.ads, a-convec.adb:
16878 (operator "&"): handle potential overflow for large index types
16879 (Insert): removed Contraint_Error when using large index types
16880 (Insert_Space): removed Constraint_Error for large index types
16881 (Length): moved constraint check from Length to Insert
16883 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16884 as not null access.
16885 Explicit raise statements now include an exception message.
16886 (operator "&"): handle potential overflow for large index types
16887 (Insert): removed Contraint_Error when using large index types
16888 (Insert_Space): removed Constraint_Error for large index types
16889 (Length): moved constraint check from Length to Insert
16891 2006-02-17 Robert Dewar <dewar@adacore.com>
16893 * s-wchcnv.adb: Document handling of [ on output (we do not change
16894 this to ["5B"] and the new comments say why not.
16897 Add note for -gnatVo that this now includes the cases of type
16898 conversions and qualified expressions.
16899 Add comments on handling of brackets encoding for Text_IO
16901 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
16902 Thomas Quinot <quinot@adacore.com>
16903 Robert Dewar <dewar@adacore.com>
16904 Javier Miranda <miranda@adacore.com>
16906 * expander.adb: Fix typo in comment
16908 * exp_pakd.adb: Fix typo
16909 Minor comment reformatting.
16911 * g-dyntab.adb: Minor reformatting
16913 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16914 aliased subprograms to look for the abstract interface subprogram.
16916 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
16918 * env.c (__gnat_setenv): Use size_t.
16919 (__gnat_unsetenv): Likewise.
16920 (__gnat_clearenv): Likewise.
16922 2006-02-16 Arnaud Charlet <charlet@adacore.com>
16924 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16926 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16928 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16929 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16930 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16931 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16932 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16933 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16934 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16935 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16936 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16939 2006-02-13 Jose Ruiz <ruiz@adacore.com>
16941 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16942 protection against race conditions is not needed.
16943 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16945 (Set_Specific_Handler): Add mutual exclusive access to the specific
16947 (Specific_Handler): Add mutual exclusive access for retrieving the
16950 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16953 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16954 Fall_Back_Handler and Specific_Handler.
16956 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16957 termination handlers.
16958 Set two different owerflow depending on the maximal stack size.
16960 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16961 protection against race conditions is not needed when executing the
16962 task termination handler.
16964 2006-02-13 Robert Dewar <dewar@adacore.com>
16966 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16967 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16968 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16969 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16970 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16971 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16972 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16973 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16974 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16975 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16976 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16977 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16978 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16979 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16980 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16981 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16982 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16983 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16984 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16985 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16986 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16987 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16988 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16989 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16990 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16991 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16992 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16993 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16994 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16995 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16996 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16997 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16998 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16999 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17002 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17004 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17005 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17006 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17007 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17008 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17009 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17010 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17011 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17012 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17014 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17016 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17017 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17018 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17019 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17020 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17021 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17022 replaced by anonymous access type.
17023 (pthread_sigmask): Now take an access sigset_t
17025 * s-osinte-hpux.ads: Ditto.
17026 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17027 properly 32 and 64 bit ABIs.
17029 2006-02-13 Pascal Obry <obry@adacore.com>
17031 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17032 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17033 s-taprop-linux.adb, s-taprop-solaris.adb,
17034 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17035 adjustement is already done when calling this routine.
17037 2006-02-13 Pascal Obry <obry@adacore.com>
17039 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17040 table to take advantage of the 16 priority levels available on Windows
17041 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17042 supported by this new mapping.
17044 2006-02-13 Nicolas Setton <setton@adacore.com>
17046 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17047 (get_encoding): New subprogram. Extracts the encodings from an encoded
17050 2006-02-13 Pascal Obry <obry@adacore.com>
17051 Nicolas Roche <roche@adacore.com>
17052 Arnaud Charlet <charlet@adacore.com>
17054 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17056 (__gnat_try_lock): Add unicode support by using a specific section on
17058 (__gnat_get_current_dir): Idem.
17059 (__gnat_open_read): Idem.
17060 (__gnat_open_rw): Idem.
17061 (__gnat_open_create): Idem.
17062 (__gnat_create_output_file): Idem.
17063 (__gnat_open_append): Idem.
17064 (__gnat_open_new): Idem.
17065 (__gnat_file_time_name): Idem.
17066 (__gnat_set_file_time_name): Idem.
17067 (__gnat_stat): Idem.
17068 (win32_no_block_spawn): Idem.
17069 (__gnat_locate_exec_on_path): Idem.
17070 (__gnat_opendir): New routine.
17071 (__gnat_closedir): Idem.
17072 (__gnat_readdir): Add new parameter length (pointer to int). Update
17073 implementation to use it and add specific Win32 code for Unicode
17075 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17076 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17077 (convert_addresses): Do not define this dummy routine on VMS.
17079 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17080 runtime Unicode support will be activated.
17081 (S2WS): String to Wide-String conversion. This version just copy a
17082 string in non Unicode version.
17083 (WS2S): Wide-String to String conversion. This version just copy a
17084 string in non Unicode version.
17086 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17087 (Open): Now import __gnat_opendir from adaint.c.
17088 (Read): Change the implementation to support unicode characters. It is
17089 not possible to use strlen() on Windows as this version supports only
17090 standard ASCII characters. So the length of the directory entry is now
17091 returned from the imported __gnat_readdir routine.
17092 Update copyright notice.
17094 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17095 (opendir): Moved to adaint.c.
17097 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17098 (Get_Directory): Fix wrong indexing.
17099 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17100 __gnat_getenv from env.c
17101 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17104 * env.h, env.c: New file.
17106 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17107 adaint.c by __gnat_getenv from env.c
17109 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17110 adaint.c by __gnat_getenv from env.c
17112 * Make-lang.in: Add env.o in the list of C object needed by gnat1
17114 Update dependencies.
17116 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17117 Olivier Hainque <hainque@adacore.com>
17118 Eric Botcazou <ebotcazou@adacore.com>
17120 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17122 * gigi.h (value_factor_p): Add prototype and description, now public.
17124 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17125 promotion for field with rep clause if the associated size was proven
17127 Expand comments describing attempts to use a packable type.
17128 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17129 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17130 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17131 necessary since these are not different types and pointers may
17132 actually designate any subtype in this hierarchy.
17133 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17134 discriminants but put them into record only if not Unchecked_Union;
17135 pass flag to components_to_record showing Unchecked_Union.
17136 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17137 components before variants; don't set TYPE_UNCHECKED_UNION_P.
17138 (components_to_record): New argument UNCHECKED_UNION.
17139 Remove special case code for Unchecked_Union and instead use main code
17140 with small changes.
17143 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17144 variable with the expression being built, only its inner field.
17146 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17147 emit_sequence_entry_statements.
17148 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17149 (establish_gnat_vms_condition_handler): Move before
17150 Subprogram_Body_to_gnu.
17151 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17152 for a subprogram if it has a foreign convention or is exported.
17153 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17154 substituted for a CONST_DECL.
17155 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17156 Etype to assoc_to_constructor.
17157 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17158 discriminants of Unchecked_Union.
17159 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17160 don't need cluttering preprocessor directives.
17161 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17162 condition handler as current in the compiled function.
17163 (body_with_handlers_p): New function. Tell whether a given sequence of
17164 statements node is attached to a package or subprogram body and involves
17165 exception handlers possibly nested within inner block statements.
17166 (emit_sequence_entry_statements): New function, to emit special
17167 statements on entry of sequences when necessary. Establish GNAT
17168 condition handler in the proper cases for VMS.
17169 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17170 emit_sequence_entry_statements.
17172 * utils2.c (find_common_type): If both input types are BLKmode and
17173 have a constant size, use the smaller one.
17174 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17177 * utils.c (value_factor_p): Make public, to allow uses from other gigi
17179 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17180 (convert, case UNION_TYPE): Remove special treatment for unchecked
17184 (update_pointer_to): Update variants of pointer types to unconstrained
17185 arrays by attaching the list of fields of the main variant.
17187 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17188 Robert Dewar <dewar@adacore.com>
17190 * a-exexpr.adb, a-exexpr-gcc.adb
17191 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17192 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17193 Remove code unused for exception propagation for the compiler itself
17194 from a-except.adb and update to still share separate packages.
17196 * a-except.ads, a-except.adb: Ditto.
17197 Add comments that this version is now used only by the compiler and
17198 other basic tools. The full version that includes the Ada 2005 stuff
17199 is in separate files a-except-2005.ads/adb. The reason is that we do
17200 not want to cause bootstrap problems with compilers not recognizing
17202 Add exception reason code PE_Implicit_Return
17203 Add new exception reason code (Null Exception_Id)
17205 * a-except-2005.adb, a-except-2005.ads: New files.
17207 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17209 * s-wchcon.adb: New file.
17211 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17212 (traceback.o deps): Likewise.
17213 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17214 Activate build of GMEM instrumentation library on VMS targets.
17215 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17216 Use a-except-2005.ads/adb for all run-time library builds unless
17217 specified otherwise.
17218 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17219 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17220 Use s-parame.adb on all native platforms.
17221 Use s-parame-vxworks.adb on all vxworks platforms.
17222 Add env.c env.h in LIBGNAT_SRCS
17223 Add env.o in LIBGNAT_OBJS
17224 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17225 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17226 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17227 supports VxWorks 6 RTPs.
17228 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17229 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17231 * types.h, types.ads (Terminate_Program): New exception
17232 Add comment on modifying multiple versions of a-except.adb when the
17233 table of exception reasons is modified.
17234 Add exception reason code PE_Implicit_Return
17235 Add new exception reason code (Null Exception_Id)
17237 * clean.adb (Initialize): Get the target parameters before checking
17238 if target is OpenVMS. Move the OpenVMS specific code here from package
17239 body elaboration code.
17241 2006-02-13 Thomas Quinot <quinot@adacore.com>
17242 Vincent Celier <celier@adacore.com>
17243 Robert Dewar <dewar@adacore.com>
17245 * ali-util.adb (Get_File_Checksum): Update to account for change in
17246 profile of Initialize_Scanner.
17248 * gprep.adb (Gnatprep): Update to account for change in profile of
17249 Initialize_Scanner.
17250 (Process_One_File): Same.
17252 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17253 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17254 that behaviour using the new Unit information recorded in the source
17255 files table, rather than going through all units every time.
17256 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17257 (Get_Source_Unit): Same.
17259 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17260 change in profile of Initialize_Scanner.
17261 (Prepare_To_Preprocess): Same.
17263 * lib.ads: Fix typo in comment (templace -> template).
17265 * prj-part.adb (Parse_Single_Project): Update to account for change in
17266 profile of Initialize_Scanner.
17268 * scn.adb (Initialize_Scanner): Account for change in profile of
17269 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17270 Also record the association of the given Source_File_Index to the
17271 corresponding Unit_Number_Type.
17273 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17275 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17276 Remove Unit formal for generic scanner: this formal
17277 is only relevant to Scn (the scanner instance used to parse Ada source
17278 files), not to other instances. Update comment accordingly.
17279 (Scan): Use new function Snames.Is_Keyword_Name.
17281 * sinfo-cn.adb: Fix typo in comment.
17283 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17286 * sinput.ads (Source_File_Record): New component Unit, used to capture
17287 the unit identifier (if any) associated to a source file.
17289 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17290 Unit in Source_File_Record.
17292 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17293 in profile of Initialize_Scanner.
17295 * scans.adb (Initialize_Ada_Keywords): New procedure
17297 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17298 Ada keywords in the Namet table, without the need to call
17299 Initialize_Scanner.
17301 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17302 (Is_Keyword_Name): New function
17304 * snames.ads: Add subtype Configuration_Pragma_Names
17305 Add pragma Ada_2005 (synonym for Ada_05)
17306 (Is_Keyword_Name): New function
17308 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17310 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17312 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17315 * a-stwima.adb (To_Set): Add extra check when N = 0.
17317 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17319 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17321 * s-parame-mingw.adb, s-parame-linux.adb,
17322 s-parame-solaris.adb: Removed, replaced by s-parame.adb
17324 * s-parame-vxworks.ads: Fix typo.
17326 * s-parame-vxworks.adb: New file.
17328 * s-parame.adb: Version now used by all native platforms.
17329 (Default_Stack_Size): Use 2 megs for default stack size and use
17330 __gl_default_stack_size when available.
17331 (Minimum_Stack_Size): Use 12K.
17333 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17334 (Create_Task): Refine implementation taking advantage of the XP stack
17335 size support. On XP, we now create the thread using the flag
17336 STACK_SIZE_PARAM_IS_A_RESERVATION.
17338 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17340 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17341 XP and 0 on older Windows versions.
17343 * interfac-vms.ads: Removed, no longer used.
17345 2006-02-13 Matthew Heaney <heaney@adacore.com>
17347 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
17348 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
17349 a-cohase.adb: All explicit raise statements now include an exception
17352 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17353 (Update_Element_Preserving_Key): renamed op to just Update_Element.
17354 Explicit raise statements now include an exception message
17356 * a-cihase.ads, a-cohase.ads: Removed comment.
17358 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17359 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17360 a-szbzha.adb, a-szfzha.ads: New files.
17362 2006-02-13 Matthew Heaney <heaney@adacore.com>
17364 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17367 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17369 * lang.opt: Wvariadic-macros: New option.
17370 Wold-style-definition: Likewise.
17371 Wmissing-format-attribute: Likewise.
17373 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17374 -Wold-style-definition and -Wmissing-format-attribute.
17376 2006-02-13 Robert Dewar <dewar@adacore.com>
17378 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17380 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17382 2006-02-13 Nicolas Roche <roche@adacore.com>
17384 * a-envvar.adb, a-envvar.ads: New files.
17386 2006-02-13 Douglas Rupp <rupp@adacore.com>
17388 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17390 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17392 2006-02-13 Pat Rogers <rogers@adacore.com>
17394 * a-rttiev.adb, a-rttiev.ads: New files.
17396 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17398 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17399 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
17401 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17403 2006-02-13 Robert Dewar <dewar@adacore.com>
17405 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
17406 sem_case.adb: Minor code reorganization (not Present should be No)
17408 2006-02-13 Geert Bosch <bosch@adacore.com>
17409 Gary Dismukes <dismukes@adacore.com>
17411 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17412 0, since the lower bound of the actual string may be greater than one.
17415 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17416 layout is requested.
17418 2006-02-13 Vincent Celier <celier@adacore.com>
17420 * back_end.adb (Scan_Compiler_Arguments): Check if
17421 Search_Directory_Present is True and, if it is, add the argument in
17422 the source search directory path.
17424 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17425 Search_Directory_Present to True.
17427 2006-02-13 Joel Brobecker <brobecke@adacore.com>
17429 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17430 volatile, to tell the compiler to preserve this variable at any level
17432 (Gen_Versions_Ada): Temporarily work around codegen bug.
17434 2006-02-13 Vincent Celier <celier@adacore.com>
17436 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17437 gcc to link with option -shared-libgcc.
17438 (Gnatlink): Remove duplicate switches -shared-libgcc
17440 2006-02-13 Robert Dewar <dewar@adacore.com>
17442 * gnatvsn.ads (Current_Year): New constant, used to easily update
17443 copyright on all GNAT tools.
17445 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17448 2006-02-13 Robert Dewar <dewar@adacore.com>
17450 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17451 after hyphen (small aesthetic change useful for a range of numbers
17453 Suppress range checks for a couple of assignments which otherwise
17454 cause validity checks with validity checking turned on.
17456 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17457 Improvement in error message for object.
17458 (Rep_Item_Too_Late): Remove '!' in warning message.
17460 2006-02-13 Robert Dewar <dewar@adacore.com>
17461 Eric Botcazou <ebotcazou@adacore.com>
17463 * err_vars.ads: Suppress range checks for a couple of assignments
17464 which otherwise cause validity checks with validity checking turned on.
17467 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17468 Make message unconditional if it is a warning.
17469 (Error_Msg_NEL): Always output warning messages.
17470 Suppress range checks for a couple of assignments which otherwise
17471 cause validity checks with validity checking turned on.
17473 * errout.ads (Message Insertion Characters): Document that '!' is
17474 implied by '?' in error messages.
17476 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17477 (Gnat1drv): Use a goto to end of main subprogram instead of
17478 Exit_Program (E_Success) so that finalization can occur normally.
17480 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17482 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17485 2006-02-13 Vincent Celier <celier@adacore.com>
17487 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17488 Unchecked_Conversion functions.
17489 (Modification_Time): Use direct conversion of OS_Time to Calendar time
17490 when OpenVMS returns False.
17492 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17493 a-dirval.adb (OpenVMS): New Boolean function
17495 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17496 Thomas Quinot <quinot@adacore.com>
17498 * checks.adb (Build_Discriminant_Checks): If the expression being
17499 checks is an aggregate retrieve the values of its discriminants to
17500 generate the check, rather than creating a temporary and a reference
17502 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17503 (Install_Null_Excluding_Check): Ditto
17504 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17505 not for the renamed object, so that the actual itype is attached in the
17508 2006-02-13 Robert Dewar <dewar@adacore.com>
17509 Vincent Celier <celier@adacore.com>
17511 * debug.adb: Eliminate numeric switches for binder/gnatmake
17513 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17514 switches for the compiler.
17515 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17516 (Scan_Make_Switches): When failing with an illegal switch, output an
17517 error message with the full switch.
17518 Eliminate numeric switches for binder/gnatmake
17520 * switch.ads, switch.adb (Bad_Switch): New procedure
17522 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17523 Remove 0-9 as debug flag character possibilities
17524 -d is now controlling the primary stack size when its value is a
17525 positive. Also add checks against invalid values, and support for kb,
17526 mb. Ditto for -D switch.
17528 2006-02-13 Robert Dewar <dewar@adacore.com>
17529 Serguei Rybin <rybin@adacore.com>
17531 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17532 save/restore routines.
17533 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17534 were not always properly handled previously.
17535 Since we are changing the tree format anyway, also get rid of the
17536 junk obsolete Immediate_Errors flag.
17537 (Tree_Read): Change the way of reading Tree_Version_String - now we
17538 read the version string from the tree even if its length is not the
17539 same as the length of the version string computed from Gnatvsn.
17540 (Search_Directory_Present): New Boolean flag for the compiler.
17541 Define Tree_Version_String as a dynamic string.
17542 (Default_Stack_Size): new variable, used to handle switch -d.
17545 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17546 only for main unit.
17547 Add pragma Ada_2005 (synonym for Ada_05)
17548 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17549 were not always properly handled previously.
17551 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17552 explicit Ada_95 to Ada_2005.
17554 2006-02-13 Javier Miranda <miranda@adacore.com>
17555 Robert Dewar <dewar@adacore.com>
17556 Ed Schonberg <schonberg@adacore.com>
17558 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17559 against errors in the source program: a private types for which the
17560 corresponding full type declaration is missing and pragma CPP_Virtual
17562 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17563 (Is_Known_Null): New flag
17564 (Has_Pragma_Pure): New flag
17565 (No_Return): Present in all entities, set only for procedures
17566 (Is_Limited_Type): A type whose ancestor is an interface is limited if
17567 explicitly declared limited.
17568 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17569 entities. Only used for component marked Is_Tag. If present it stores
17570 the Offset_To_Top function used to provide this value in tagged types
17571 whose ancestor has discriminants.
17573 * exp_ch2.adb: Update status of new Is_Known_Null flag
17575 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17577 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17578 the categorization sense if Is_Pure was set by pragma Pure_Function.
17580 2006-02-13 Quentin Ochem <ochem@adacore.com>
17581 Olivier Hainque <hainque@adacore.com>
17583 * bindusg.adb: Updated documentation for -d and -D switches.
17585 * raise.h (__gnat_set_globals): added new parameter for
17586 Default_Stack_Size.
17588 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17589 (__gnat_handle_vms_condition): Adjust context before raise.
17590 (__gnat_install_handler): Restore the global vector setup for GCC
17591 versions before 3.4, as the frame based circtuitry is not available
17593 (__gnat_set_globals): added a parameter default_stack_size
17594 (__gl_default_stack_size): new variable.
17596 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17598 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17599 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17600 does not exist in the Ada RM.
17601 (Compatible_Int_Bounds): Determine whether two integer range bounds
17602 are of equal length and have the same start and end values.
17603 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17604 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17605 aggregate when it is part of an object declaration.
17606 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
17607 constrains discriminants of its parent, add explicitly the discriminant
17608 constraints of the ancestor by retrieving them from the
17609 stored_constraint of the parent.
17611 2006-02-13 Robert Dewar <dewar@adacore.com>
17613 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17614 attribute Mechanism_Code is applied to renamed subprogram, modify
17615 prefix to point to base subprogram.
17616 Max/Min attributes now violate Restriction No_Implicit_Conditionals
17618 * sinfo.ads: Document that Mechanism_Code cannot be applied to
17619 renamed subprograms so that the front-end must replace the prefix
17622 2006-02-13 Javier Miranda <miranda@adacore.com>
17623 Gary Dismukes <dismukes@adacore.com>
17625 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17626 availability of RE_Interface_Tag.
17627 (Build_Initialization_Call): Fix wrong access to the discriminant value.
17628 (Freeze_Record_Type): Do not generate the tables associated with
17629 timed and conditional dispatching calls through synchronized
17630 interfaces if compiling under No_Dispatching_Calls restriction.
17631 When compiling for Ada 2005, for a nonabstract
17632 type with a null extension, call Make_Controlling_Function_Wrappers
17633 and insert the wrapper function declarations and bodies (the latter
17634 being appended as freeze actions).
17635 (Predefined_Primitive_Bodies): Do not generate the bodies of the
17636 predefined primitives associated with timed and conditional
17637 dispatching calls through synchronized interfaces if we are
17638 compiling under No_Dispatching_Calls.
17639 (Build_Init_Procedure): Use RTE_Available to check if a run-time
17640 service is available before generating a call.
17641 (Make_Controlling_Function_Wrappers): New procedure.
17642 (Expand_N_Full_Type_Declaration): Create a class-wide master for
17643 access-to-limited-interfaces because they can be used to reference
17644 tasks that implement such limited interface.
17645 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17646 procedure spec and body of the Offset_To_Top function that is generated
17647 when the parent of a type with discriminants has secondary dispatch
17649 (Init_Secondary_Tags): Handle the case in which the parent of the type
17650 containing secondary dispatch tables has discriminants to generate the
17651 correct arguments to call Set_Offset_To_Top.
17652 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17654 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17655 Add Wide_[Wide_]Expanded_Name.
17656 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17657 the same functionality of Get_Prim_Op_Address but applied to predefined
17658 primitive operations because the pointers to the predefined primitives
17659 are now saved in a separate table.
17660 (Parent_Size): Modified to get access to the separate table of primitive
17661 operations or the parent type.
17662 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17663 functionality of Set_Prim_Op_Address but applied to predefined primitive
17665 (Set_Signature): New subprogram used to store the signature of a DT.
17666 (Displace): If the Offset_To_Top value is not static then call the
17667 function generated by the expander to get such value; otherwise use
17668 the value stored in the table of interfaces.
17669 (Offset_To_Top): The type of the actual has been changed to Address to
17670 give the correct support to tagged types with discriminants. In this
17671 case this value is stored just immediately after the tag field.
17672 (Set_Offset_To_Top): Two new formals have been added to indicate if the
17673 offset_to_top value is static and hence pass this value to the run-time
17674 to store it in the table of interfaces, or else if this value is dynamic
17675 and then pass to the run-time the address of a function that is
17676 generated by the expander to provide this value for each object of the
17679 * rtsfind.ads (Default_Prin_Op_Count): Removed.
17680 (Default_Prim_Op_Count): New entity
17681 (Get_Predefined_Prim_Op_Address): New entity
17682 (Set_Predefined_Prim_Op_Address): New entity
17683 (RE_Set_Signature): New entity
17685 2006-02-13 Thomas Quinot <quinot@adacore.com>
17686 Ed Schonberg <schonberg@adacore.com>
17688 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17689 Make_Adjust_Call done for a newly-allocated object.
17691 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17692 in a subprogram are wrapped in a cleanup block, indicate that the
17693 subprogram contains an inner block with an exception handler.
17694 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17695 Adjust call is for a newly-allocated object. In that case we must not
17696 assume that the finalization list chain pointers are correct (since they
17697 come from a bit-for-bit copy of the original object's pointers) so if
17698 the attach level would otherwise be zero (no change), we set it to 4
17699 instead to cause the pointers to be reset to null.
17701 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17702 reset chain pointers to null.
17704 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17706 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17707 string, and the context requires a loop for the assignment (e.g.
17708 because the left-hand side is packed), generate a unique name for the
17709 temporary that holds the string, to prevent spurious name clashes.
17711 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17712 Javier Miranda <miranda@adacore.com>
17713 Robert Dewar <dewar@adacore.com>
17714 Gary Dismukes <dismukes@adacore.com>
17716 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17717 return unconstrained arrays.
17719 (Expand_Call): An indirect call through an access parameter of a
17720 protected operation is not a protected call.
17721 Add circuit to raise CE in Ada 2005 mode following call
17722 to Raise_Exception.
17723 (Register_DT_Entry): Do nothing if
17724 the run-time does not give support to abstract interfaces.
17725 (Freeze_Subprogram): In case of dispatching operations, do not generate
17726 code to register the operation in the dispatch table if the source
17727 is compiled with No_Dispatching_Calls.
17728 (Register_Predefined_DT_Entry): Generate code that calls the new
17729 run-time subprogram Set_Predefined_Prim_Op_Address instead of
17730 Set_Prim_Op_Address.
17732 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17733 on array assignments if the right-hand side is a function call that has
17734 been inlined. Check is performed on the assignment in the block.
17735 (Process_Bounds): If bounds and range are overloaded, apply preference
17736 rule for root operations to disambiguate, and diagnose true ambiguity.
17737 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17738 a tag-indeterminate right-hand side even when Expander_Active is True.
17739 Needed to ensure that dispatching calls to T'Input are allowed and
17740 get the tag of the target class-wide object.
17742 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17743 an inherited primitive operation that already overrides several
17744 abstract interface primitives. For transitivity, the new entity must
17745 also override all the abstract interface primitives covered by the
17746 inherited overriden primitive.
17747 Emit warning if new entity differs from homograph in same scope only in
17748 that one has an access parameter and the other one has a parameter of
17749 a general access type with the same designated type, at the same
17750 position in the signature.
17751 (Make_Inequality_Operator): Use source locations of parameters and
17752 subtype marks from corresponding equality operator when creating the
17753 tree structure for the implicit declaration of "/=". This does not
17754 change anything in behaviour except that the decoration of the
17755 components of the subtree created for "/=" allows ASIS to get the
17756 string images of the corresponding identifiers.
17757 (Analyze_Return_Statement): Remove '!' in warning message.
17758 (Check_Statement_Sequence): Likewise.
17759 (Analyze_Subprogram_Body): For an access parameter whose designated type
17760 is an incomplete type imported through a limited_with clause, use the
17761 type of the corresponding formal in the body.
17762 (Check_Returns): Implicit return in No_Return procedure now raises
17763 Program_Error with a compile time warning, instead of beging illegal.
17764 (Has_Single_Return): Function returning unconstrained type cannot be
17765 inlined if expression in unique return statement is not an identifier.
17766 (Build_Body_To_Inline): It is possible to inline a function call that
17767 returns an unconstrained type if all return statements in the function
17768 return the same local variable. Subsidiary procedure Has_Single_Return
17769 verifies that the body conforms to this restriction.
17771 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17772 same type, and one of them is of an anonymous access type, convert
17773 the other operand to it, so that this is a valid binary operation for
17775 (Resolve_Type_Conversion): Handle subtypes of protected types and
17776 task types when accessing to the corresponding record type.
17777 (Resolve_Allocator): Add '\' in 2-line warning message.
17778 Remove '!' in warning message.
17779 (Resolve_Call): Add '\' in 2-line warning message.
17780 (Valid_Conversion): Likewise.
17781 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17782 resulting type may be an access type with an implicit dereference.
17783 Obtain the proper component from the designated type.
17784 (Make_Call_Into_Operator): Handle properly a call to predefined equality
17785 given by an expanded name with prefix Standard, when the operands are
17786 of an anonymous access type.
17787 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17788 Explicit_Dereference and Resolve_Selected_Component, to verify that the
17789 prefix of the expression is not of an incomplete type. Allows full
17790 diagnoses of all semantic errors.
17791 (Resolve_Actuals): If the actual is an allocator whose directly
17792 designated type is a class-wide interface we build an anonymous
17793 access type to use it as the type of the allocator. Later, when
17794 the subprogram call is expanded, if the interface has a secondary
17795 dispatch table the expander will add a type conversion to force
17796 the displacement of the pointer.
17797 (Resolve_Call): If a function that returns an unconstrained type is
17798 marked Inlined_Always and inlined, the call will be inlined and does
17799 not require the creation of a transient scope.
17800 (Check_Direct_Boolean_Op): Removed
17801 (Resolve_Comparison_Op): Remove call to above
17802 (Resolve_Equality_Op): Remove call to above
17803 (Resolve_Logical_Op): Inline above, since this is only call.
17804 (Valid_Conversion): Handle properly conversions between arrays of
17805 convertible anonymous access types.
17808 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17809 the literal in an unchecked conversion, because GCC 4.x needs a static
17810 value for a string bound.
17812 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17813 Hristian Kirtchev <kirtchev@adacore.com>
17815 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17816 components of the corresponding record, take into account component
17817 definitions that are access definitions.
17818 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17819 procedure is not considered a dispatching call and will be expanded
17822 2006-02-13 Javier Miranda <miranda@adacore.com>
17824 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17825 controlling argument of the dispatching call is an abstract interface
17826 class-wide type then we use it directly.
17827 Check No_Dispatching_Calls restriction.
17828 (Default_Prim_Op_Position): Remove the code that looks for the last
17829 entity in the list of aliased subprograms. This code was wrong in
17831 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17832 when the source is compiled with the No_Dispatching_Calls restriction.
17833 (Init_Predefined_Interface_Primitives): No need to inherit primitives
17834 if we are compiling with restriction No_Dispatching_Calls.
17835 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17836 subprograms if we are compiling under No_Dispatching_Calls restriction.
17837 (Make_DT): Generate a dispatch table with a single dummy entry if
17838 we are compiling with the No_Dispatching_Calls restriction. In
17839 addition, in this case we don't generate code that calls to the
17840 following run-time subprograms: Set_Type_Kind, Inherit_DT.
17841 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17842 of this subprogram if compiling with the No_Dispatching_Calls
17844 (Expand_Type_Conversion): Instead of using the actual parameter,
17845 the argument passed as parameter to the conversion function was
17846 erroneously referenced by the expander.
17847 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17848 Set_Predefined_Primitive_Op_Address and Set_Signature.
17849 (Expand_Dispatching_Call): Generate call to
17850 Get_Predefined_Prim_Op_Address for predefined primitives.
17851 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17852 predefined primitives.
17853 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17854 primitives we reserve one dummy entry to ensure that the tag does not
17855 point to some memory that is associated with some other object. In
17856 addition, remove all the old code that generated the assignments
17857 associated with the signature of the dispatch table and replace them
17858 by a call to the new subprogram Set_Signature.
17859 (Set_All_DT_Position): Change the algorithm because now we have a
17860 separate dispatch table associated with predefined primitive operations.
17861 (Expand_Interface_Conversion): In case of non-static offset_to_top
17862 add explicit dereference to get access to the object after the call
17863 to displace the pointer to the object.
17864 (Expand_Interface_Thunk): Modify the generation of the actual used
17865 in the calls to the run-time function Offset_To_Top to fulfil its
17867 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17869 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17871 * exp_dist.adb (Copy_Specification): For access parameters, copy
17872 Null_Exclusion flag, which will have been set for stream subprograms
17875 2006-02-13 Pascal Obry <obry@adacore.com>
17877 * expect.c (__gnat_expect_portable_execvp): New implementation. The
17878 previous implementation was using the C runtime spawnve routine but
17879 the corresponding wait was using directly the Win32 API. This was
17880 causing some times a lock when waiting for an event using
17881 WaitForSingleObject in __gnat_waitpid. This new implementation uses
17882 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17883 API fixes this problem.
17885 2006-02-13 Robert Dewar <dewar@adacore.com>
17887 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17890 2006-02-13 Thomas Quinot <quinot@adacore.com>
17892 * exp_pakd.ads: Fix typos in comments.
17894 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17895 array reference that is an explicit dereference, mark the converted
17896 (packed) array reference as analyzed to prevent a forthcoming
17897 reanalysis from resetting its type to the original (non-packed) array
17900 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17901 Javier Miranda <miranda@adacore.com>
17902 Eric Botcazou <ebotcazou@adacore.com>
17904 * exp_util.ads, exp_util.adb (Find_Prim_Op,
17905 Is_Predefined_Primitive_Operation): When
17906 searching for the predefined equality operator, verify that operands
17907 have the same type.
17908 (Is_Predefined_Dispatching_Operation): Remove the code that looks
17909 for the last entity in the list of aliased subprograms. This code
17910 was wrong in case of renamings.
17911 (Set_Renamed_Subprogram): New procedure
17912 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17913 Exp_Type constant computed when entering this subprogram.
17914 (Known_Null): New function
17915 (OK_To_Do_Constant_Replacement): New function
17916 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17917 (Side_Effect_Free): An attribute reference 'Input is not free of
17918 side effect, unlike other attributes that are functions. (from code
17920 (Remove_Side_Effects): Expressions that involve packed arrays or records
17921 are copied at the point of reference, and therefore must be marked as
17922 renamings of objects.
17923 (Is_Predefined_Dispatching_Operation): Return false if the operation is
17924 not a dispatching operation.
17927 (Remove_Side_Effects): Lift enclosing type conversion nodes for
17928 elementary types in all cases.
17930 2006-02-13 Javier Miranda <miranda@adacore.com>
17932 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17933 task types when accessing to the corresponding record type.
17934 Remove '!' in warning message.
17936 2006-02-13 Olivier Hainque <hainque@adacore.com>
17938 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17939 to avoid useless and space inefficient overalignments on targets where
17940 Max_Alignment is larger than 16.
17942 2006-02-13 Pascal Obry <obry@adacore.com>
17944 * g-catiio.adb (Sec_Number): New type used to compute the number of
17945 seconds since 1-1-1970.
17946 (Image) [Natural]: The parameter was an Integer, as we can't deal with
17947 negative numbers (years, months...) it is better to have a Natural here.
17949 (Image) [Number]: Change parameter from Long_Integer to Number.
17950 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17951 overflow for dates past year 2038.
17953 2006-02-13 Matthew Heaney <heaney@adacore.com>
17955 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17958 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17960 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17962 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17963 finalization can occur normally.
17965 2006-02-13 Vincent Celier <celier@adacore.com>
17967 * gnatcmd.adb (Rules_Switches): New table
17968 (Add_To_Rules_Switches): New procedure
17969 (GNATCmd): For command CHECK, put all options following "-rules" in the
17970 Rules_Switches table. Append these -rules switches after the -cargs
17973 2006-02-13 Robert Dewar <dewar@adacore.com>
17975 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17976 These two cases were generating incorrect output, and if this unit
17977 was built with checks on, generated a discriminant mismatch constraint
17980 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17981 Robert Dewar <dewar@adacore.com>
17983 * lib-xref.adb (Get_Type_Reference): For a private type whose full
17984 view is an array type, indicate the component type as well, for
17985 navigation purposes.
17986 (Generate_Reference): Don't consider array ref on LHS to be a case
17987 of violating pragma Unreferenced.
17988 Do not give Ada 2005 warning except on real reference.
17990 2006-02-13 Vincent Celier <celier@adacore.com>
17992 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17993 main source, add switch -mdebug-main=_ada_ so that the executable can
17994 be debugged by the standard VMS debugger.
17995 (Gnatmake): Set No_Main_Subprogram to True when there is no main
17996 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17997 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17998 of the last source, as the binding and linking phases are never
18000 Set all executable obsolete when rebuilding a library.
18002 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18005 2006-02-13 Javier Miranda <miranda@adacore.com>
18008 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18009 code to improve the error message reported when the program has
18010 declarations of abstract interface types and it is not compiled with
18011 the -gnat05 switch.
18012 (P_Access_Definition): Reorganize the code to improve the error
18013 message reported when the new Ada 2005 syntax for anonymous
18014 access types is used and the program is not compiled with the
18017 2006-02-13 Robert Dewar <dewar@adacore.com>
18019 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18020 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18023 2006-02-13 Javier Miranda <miranda@adacore.com>
18025 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18026 against source containing syntax errors.
18028 2006-02-13 Vincent Celier <celier@adacore.com>
18030 * prj.adb (Reset): Initialize the first element of table Namings with
18031 the standard naming data.
18033 2006-02-13 Vincent Celier <celier@adacore.com>
18035 * prj.ads (Error_Warning): New enumeration type
18037 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18038 unknown, use the location of the project to report the error.
18039 (When_No_Sources): New global variable
18040 (Report_No_Ada_Sources): New procedure
18041 (Check): New parameter When_No_Sources. Set value of global variable
18043 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18044 (Get_Sources_From_File): Ditto
18045 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18048 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18049 Call Prj.Proc.Process with parameter When_No_Sources.
18051 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18052 Call Recursive_Check with parameter When_No_Sources.
18053 (Recursive_Check): New parameter When_No_Sources. Call itself and
18054 Prj.Nmsc.Check with parameter When_No_Sources.
18055 (Process): New parameter When_No_Sources. Call Check with parameter
18057 (Copy_Package_Declarations): New procedure to copy renamed parameters
18058 and setting the location of the declared attributes to the location
18059 of the renamed package.
18060 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18063 2006-02-13 Vincent Celier <celier@adacore.com>
18065 * prj-makr.adb (Make): Preserve the comments from the original project
18067 When removing nodes (attributes Source_Dirs, Source_Files,
18068 Source_List_File and package Naming), save the comments and attach the
18069 saved comments to the newly created nodes.
18070 Do not add a with clause for the naming package if one already exists.
18072 2006-02-13 Javier Miranda <miranda@adacore.com>
18073 Gary Dismukes <dismukes@adacore.com>
18074 Robert Dewar <dewar@adacore.com>
18076 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18078 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18079 aliased entities to look for the overriden abstract interface
18081 (Is_Interface_Subprogram): Complete documentation.
18082 (Check_Dispatching_Operation): Do not generate code to register the
18083 operation in the dispatch table if the source is compiled with
18084 restriction No_Dispatching_Calls.
18085 (Override_Dispatching_Operation): Check for illegal attempt to override
18086 No_Return procedure with procedure that is not No_Return
18087 (Check_Dispatching_Call): Suppress the check for an abstract operation
18088 when the original node of an actual is a tag-indeterminate attribute
18089 call, since the attribute, which must be 'Input, can never be abstract.
18090 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18091 call to the Input attribute (even when rewritten).
18092 (Propagate_Tag): Augment comment to indicate the possibility of a call
18093 to an Input attribute.
18095 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18096 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18098 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18099 No_Wide_Characters is no longer partition-wide
18100 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18103 2006-02-13 Douglas Rupp <rupp@adacore.com>
18105 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18107 2006-02-13 Javier Miranda <miranda@adacore.com>
18109 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18110 handles default-initialized components to keep separate the management
18111 of this feature but also avoid the unrequired resolution and
18112 expansion of components that do not have partially initialized
18114 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18115 (Check_Bounds): Likewise.
18116 (Check_Length): Likewise.
18118 2006-02-13 Javier Miranda <miranda@adacore.com>
18119 Ed Schonberg <schonberg@adacore.com>
18121 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18122 abstract interface type call analyze_and_resolve to expand the type
18123 conversion into the corresponding displacement of the
18124 reference to the base of the object.
18125 (Eval_Attribute, case Width): For systems where IEEE extended precision
18126 is supported, the maximum exponent occupies 4 decimal digits.
18127 (Accessibility_Message): Add '\' in 2-line warning message.
18128 (Resolve_Attribute): Likewise.
18129 (case Attribute_Access): Significantly revise checks
18130 for illegal access-to-subprogram Access attributes to properly enforce
18131 the rules of 3.10.2(32/2).
18132 Diagnose use of current instance with an illegal attribute.
18134 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18136 (Enclosing_Generic_Unit): New function to return a node's innermost
18137 enclosing generic declaration node.
18138 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18139 (Type_Access_Level): The accessibility level of anonymous acccess types
18140 associated with discriminants is that of the current instance of the
18141 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18142 (Compile_Time_Constraint_Error): Handle case of conditional expression.
18143 (Kill_Current_Values_For_Entity): New function
18144 (Enter_Name): Change formal type to Entity_Id
18146 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18147 Ed Schonberg <schonberg@adacore.com>
18148 Gary Dismukes <dismukes@adacore.com>
18150 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18151 Analyze_Compilation_Unit.
18152 Detect and warn on redundant with clauses detected in a package spec
18153 and/or body when -gnatwr is used.
18154 (Analyze_Context): Analyze config pragmas before other items
18155 (Install_Context_Items): Don't analyze config pragmas here
18156 (Install_Limited_Withed_Unit): Set limited entity of package in
18157 with_clause so that cross-reference information or warning messages on
18158 unused packages can be properly generated
18159 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18160 has Error_Posted set. Prevent infinite loops in illegal programs.
18161 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18162 to the point of the error test requiring the current unit to be private.
18163 This ensures that private with clauses are not exempted from the basic
18164 checking for being a descendant of the same library unit parent as a
18165 withed private descendant unit.
18166 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18167 handle private with clauses properly, as well as to account for cases
18168 where the withed unit is a public descendant of a private ancestor
18169 (in which case the current unit must be a descendant of the private
18170 ancestor's parent). The spec comments were updated accordingly. Also,
18171 the old error message in this subprogram was replaced with error
18172 messages that mirror the errors tested and reported by
18173 Check_Private_Child_Unit.
18174 Parameter and variable names improved for readability.
18175 (Install_Limited_Context_Clauses): Remove test for a withed unit being
18176 private as the precondition for calling
18177 Check_Private_Limited_Withed_Unit since that subprogram has been
18178 revised to test public units as well as private units.
18180 2006-02-13 Thomas Quinot <quinot@adacore.com>
18181 Robert Dewar <dewar@adacore.com>
18182 Ed Schonberg <schonberg@adacore.com>
18183 Javier Miranda <miranda@adacore.com>
18185 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18186 that Scope_Stack.First = 1.
18187 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18188 were not always properly handled previously.
18189 (Formal_Entity): Complete rewrite, to handle properly some complex case
18190 with multiple levels of parametrization by formal packages.
18191 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18192 to the corresponding derived type declaration for proper semantics.
18194 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18195 (Check_Component): Enforce restriction on components of
18196 unchecked_unions: a component in a variant cannot contain tasks or
18198 (Unchecked_Union): Allow nested variants and multiple discriminants, to
18200 Add pragma Ada_2005 (synonym for Ada_05)
18201 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18202 were not always properly handled previously.
18203 Document that pragma Propagate_Exceptions has no effect
18204 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18205 (Set_Convention_From_Pragma): Check that if a convention is
18206 specified for a dispatching operation, then it must be
18207 consistent with the existing convention for the operation.
18208 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18209 longer required to specify an vtable-ptr component in the record. For
18210 compatibility reasons we leave the support for the previous definition.
18211 (Analyze_Pragma, case No_Return): Allow multiple arguments
18213 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18214 non-overrideen inherited operation with a controlling result as
18215 illegal only its implicit declaration comes from the derived type
18216 declaration of its result's type.
18217 (Check_Possible_Deferred_Completion): Relocate the object definition
18218 node of the subtype indication of a deferred constant completion rather
18219 than directly analyzing it. The analysis of the generated subtype will
18220 correctly decorate the GNAT tree.
18221 (Record_Type_Declaration): Check whether this is a declaration for a
18222 limited derived record before analyzing components.
18223 (Analyze_Component_Declaration): Diagnose record types not explicitly
18224 declared limited when a component has a limited type.
18225 (Build_Derived_Record_Type): Code reorganization to check if some of
18226 the inherited subprograms of a tagged type cover interface primitives.
18227 This check was missing in case of a full-type associated with a private
18229 (Constant_Redeclaration): Check that the subtypes of the partial and the
18230 full view of a constrained deferred constant statically match.
18231 (Mentions_T): A reference to the current type in an anonymous access
18232 component declaration must be an entity name.
18233 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18234 class_wide type to refer to full type, not to the incomplete one.
18235 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18236 available. Required to give support to the certified run-time.
18237 (Analyze_Component_Declaration): In case of anonymous access components
18238 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18239 (Process_Discriminants): For an access discriminant, use the
18240 discriminant specification as the associated_node_for_itype, to
18241 simplify accessibility checks.
18243 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18244 Javier Miranda <miranda@adacore.com>
18246 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18247 abstract interpretations on an operator, remove interpretations that
18248 yield Address or a type derived from it, if one of the operands is an
18250 (Try_Object_Operation.Try_Primitive_Operation,
18251 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18252 location when creating the new reference to a primitive or class-wide
18253 operation as a part of rewriting a subprogram call.
18254 (Try_Primitive_Operations): If context requires a function, collect all
18255 interpretations after the first match, because there may be primitive
18256 operations of the same type with the same profile and different return
18257 types. From code reading.
18258 (Try_Primitive_Operation): Use the node kind to choose the proper
18259 operation when a function and a procedure have the same parameter
18261 (Complete_Object_Operation): If formal is an access parameter and prefix
18262 is an object, rewrite as an Access reference, to match signature of
18263 primitive operation.
18264 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18265 by an expanded name with prefix Standard, when the operands are of an
18266 anonymous access type.
18267 (Remove_Abstract_Operations): If the operation is abstract because it is
18268 inherited by a user-defined type derived from Address, remove it as
18269 well from the set of candidate interpretations of an overloaded node.
18270 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18273 2006-02-13 Bob Duff <duff@adacore.com>
18275 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18276 redundant use clauses.
18277 In particular, if the scope of two use clauses overlaps, but one is not
18278 entirely included in the other, we should not warn. This can happen
18279 with nested packages.
18280 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18281 reported errors. The bug was reported when the compiler was built
18282 with assertions enabled.
18283 (Find_Type): If the node is a 'Class reference and the prefix is a
18284 synchronized type without a corresponding record, return the type
18287 2006-02-13 Javier Miranda <miranda@adacore.com>
18289 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18290 if this is the full-declaration associated with a private declaration
18291 that implement interfaces, then the private type declaration must be
18293 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18294 as aliased. The use of the 'access attribute is not available for such
18295 object (for this purpose the object should be explicitly marked as
18296 aliased, but being an anonymous type this is not possible).
18298 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18299 Robert Dewar <dewar@adacore.com>
18301 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18302 compilation unit is an elaboration scope.
18303 (Add_Task_Proc): Add '\' in 2-line warning message.
18304 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18306 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18307 Javier Miranda <miranda@adacore.com>
18309 * sem_type.adb (Write_Overloads): Improve display of candidate
18311 (Add_One_Interp): Do not add to the list of interpretations aliased
18312 entities corresponding with an abstract interface type that is an
18313 immediate ancestor of a tagged type; otherwise we have a dummy
18314 conflict between this entity and the aliased entity.
18315 (Disambiguate): The predefined equality on universal_access is not
18316 usable if there is a user-defined equality with the proper signature,
18317 declared in the same declarative part as the designated type.
18318 (Find_Unique_Type): The universal_access equality operator defined under
18319 AI-230 does not cover pool specific access types.
18320 (Covers): If one of the types is a generic actual subtype, check whether
18321 it matches the partial view of the other type.
18323 2006-02-13 Thomas Quinot <quinot@adacore.com>
18325 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18326 line. This is necessary to allow In_Extended_Main_Unit to provide
18327 correct results for itypes while writing out expanded source.
18328 (Close_File): No need to update the source_index_table here since it's
18329 now done for each line.
18331 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18332 Robert Dewar <dewar@adacore.com>
18334 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18335 preserve the source unit where the itype is declared, and prevent a
18337 (Note_Implicit_Run_Time_Call): New procedure
18338 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18341 * sprint.ads: Document use of $ for implicit run time routine call
18343 2006-02-13 Quentin Ochem <ochem@adacore.com>
18345 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18348 2006-02-13 Bob Duff <duff@adacore.com>
18350 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18351 Scan_Unsigned, so we do not scan leading blanks and sign twice.
18352 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18353 raise Constraint_Error.
18355 * s-vallli.adb (Scan_Long_Long_Integer): Call
18356 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18357 do not scan leading blanks and sign twice.
18358 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18359 raise Constraint_Error.
18361 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18362 Scan_Long_Long_Unsigned): Split out most of the processing from
18363 Scan_Long_Long_Unsigned out into
18364 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18365 This prevents scanning leading blanks and sign twice.
18366 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18369 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18370 out most of the processing from Scan_Unsigned out into
18371 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18372 This prevents scanning leading blanks and sign twice.
18374 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18375 use with Modular'Value attribute.
18376 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18379 2006-02-13 Robert Dewar <dewar@adacore.com>
18381 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18383 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18385 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18386 (PPC VxWorks): Likewise.
18387 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18388 (forced_callee): Make non-inlinable and non-pure.
18389 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18391 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18392 Ben Brosgol <brosgol@adacore.com>
18393 Robert Dewar <dewar@adacore.com>
18395 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18397 Document that gnatbind -M option is for cross environments only.
18398 Added description of using gnatmem to trace gnat rtl allocs and deallocs
18399 Add note on use of $ to label implicit run time calls
18400 Add documentation for -gnatyI (check mode IN)
18401 Updated chapter on compatibility with HP Ada
18402 VMS-oriented edits.
18403 Ran spell and corrected errors
18404 Add documentation for gnatbind -d and rework documentation of -D
18406 Add subprogram/data elimination section.
18407 Minor editing of annex A.
18408 Add section for gnatcheck.
18409 Add documentation for restriction No_Dispatching_Calls
18410 Add documentation for pragma Ada_2005
18411 Remove mention of obsolete pragma Propagate_Exceptions
18412 Document that pragma Unreferenced can appear after DO in ACCEPT
18413 Clarify Pure_Function for library level units
18414 Mention Max/Min in connection with No_Implicit_Conditionals
18415 No_Wide_Characters restriction is no longer partition-wide
18416 Add a nice example for Universal_Literal_String attribute
18417 Document that pragma No_Return can take multiple arguments
18419 * ug_words: Added entry for gnatcheck
18421 * g-ctrl_c.ads (Install_Handler): Enhance comments
18423 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18425 * g-trasym.ads: Add documentation on how to do off line symbolic
18426 traceback computation.
18428 * s-fatgen.adb: Add comments for Unaligned_Valid
18430 * stand.ads: Fix typo in comment
18432 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18434 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18436 2006-02-06 Roger Sayle <roger@eyesopen.com>
18438 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18440 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18443 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18444 implementation that calls __main.
18446 2006-01-25 Peter O'Gorman <peter@pogma.com>
18449 * Makefile.in (GCC_LINK): Remove quotes.
18450 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18453 (powerpc-darwin): Pass -shared-libgcc when building shared library.
18455 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18458 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18460 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18462 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18464 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18466 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18469 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18471 * Make-lang.in: Update dependencies
18473 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18475 * Make-lang.in: Add rule for ada/exp_sel.o
18477 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18479 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18481 2005-12-09 Arnaud Charlet <charlet@adacore.com>
18483 * gnatvsn.ads (Library_Version): Bump to version 4.2
18484 (ASIS_Version_Number): Bumped.
18486 2005-12-09 Doug Rupp <rupp@adacore.com>
18488 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18489 Ada bind file prefix on VMS from b$ to b__.
18490 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18493 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18494 Targparm.OpenVMS_On_Target.
18495 (Object_Suffix): Initialize with target object suffix.
18496 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18498 * butil.adb: Change some Hostparm.OpenVMS checks to
18499 Targparm.OpenVMS_On_Target.
18501 * clean.adb: Change some Hostparm.OpenVMS checks to
18502 Targparm.OpenVMS_On_Target.
18503 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18504 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18505 Ada bind file prefix on VMS from b$ to b__.
18507 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18508 --GCC so that Get_Target_Parameters can find system.ads.
18509 (Gnatlink): Call Get_Target_Parameters in mainline.
18510 Initialize standard packages for Targparm.
18511 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18512 (Process_Args): Also Check for object files with target object
18514 (Make_Binder_File_Names): Create with target object extension.
18515 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18518 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18519 Targparm.OpenVMS_On_Target.
18520 ({declaration},Build_Library,Check_Library): Change Ada bind file
18521 prefix on VMS from b$ to b__.
18523 * osint-b.adb: Change some Hostparm.OpenVMS checks to
18524 Targparm.OpenVMS_On_Target.
18525 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18528 * targext.c: New file.
18530 * Makefile.in: add support for vxworks653 builds
18531 (../../vxaddr2line): gnatlink with targext.o.
18532 (TOOLS_LIBS): Move targext.o to precede libgnat.
18533 (init.o, initialize.o): Minor clean up in dependencies.
18534 (GNATLINK_OBJS): Add targparm.o, snames.o
18535 Add rules fo building targext.o and linking it explicitly with all
18537 Also add targext.o to gnatlib.
18539 * Make-lang.in: Add rules for building targext.o and linking it in
18540 with gnat1 and gnatbind.
18541 Add entry for exp_sel.o.
18543 * osint.adb Change some Hostparm.OpenVMS checks to
18544 Targparm.OpenVMS_On_Target.
18545 (Object_File_Name): Use target object suffix.
18547 * osint.ads (Object_Suffix): Remove, no longer used.
18548 (Target_Object_Suffix): Initialize with target object suffix.
18550 * rident.ads: Add special exception to license.
18552 * targparm.adb (Get_Target_Parameters): Set the value of
18553 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18555 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18557 * targparm.ads: Add special exception to license.
18559 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18561 (Copy_File): Make sure from file is closed if error on to file
18562 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18564 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18565 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18567 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18568 target object suffix.
18570 2005-12-09 Jose Ruiz <ruiz@adacore.com>
18571 Quentin Ochem <ochem@adacore.com>
18572 Florian Villoing <villoing@adacore.com>
18574 * a-taster.ads, a-taster.adb: New files.
18576 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18577 link to the version that does nothing. This way the task termination
18578 routine is not executed twice for the environment task when finishing
18579 because of an unhandled exception.
18581 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18582 handler because of an unhandled exception.
18584 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18585 System.Tasking.Utilities instead of that in System.Tasking.Stages.
18587 * s-finimp.adb (initialization code): Modify the soft link for the
18588 finalization of the global list instead of Adafinal.
18590 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18591 non-tasking version of the soft link for task termination. We do
18592 nothing since if we are using the non-tasking version it
18593 means that the task termination functionality is not used.
18594 (Null_Finalize_Global_List): Add this null version for the procedure
18595 in charge of finalizing the global list for controlled objects.
18596 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18597 instead for handling run-time termination in a more flexible way.
18598 (Adafinal_NT): This new procedure will take care of finalizing the
18599 global list for controlled objects if needed, but no tasking
18602 * s-tarest.adb (Task_Lock): Do not try to lock again the
18603 Global_Task_Lock if we already own it. Otherwise, we get blocked in
18604 some run-time operations.
18605 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18606 until all nested locks have been released.
18607 (Task_Wrapper): Call the fall-back task termination handler. It
18608 applies to all tasks but the environment task.
18609 (Finalize_Global_Tasks): Add the call for the task termination
18610 procedure for the environment task.
18611 (Task_Wrapper): suppress warnings around declaration of
18612 Secondary_Stack_Address.
18614 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18615 moved to the Common_ATCB record.
18616 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18617 Common_ATCB record.
18618 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18619 Common_ATCB record.
18621 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18622 Fall_Back_Handler, and Specific_Handler.
18624 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18625 defined in Ada.Task_Termination, to avoid circular dependencies.
18626 (Termination_Handler): Redefine this type here, alredy defined in
18627 Ada.Task_Termination, for avoiding circular dependencies.
18628 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18629 for storing task termination handlers. In addition,
18630 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18631 Common_ATCB because it is used by both the regular and the restricted
18633 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18634 Common_ATCB because it is used by both the regular and the restricted
18636 (Common_ATCB): Added a dynamic task analyzer field.
18638 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18639 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18640 (Task_Wrapper): Call the task termination handler. It applies to all
18641 tasks but the environment task.
18642 (Finalize_Global_Tasks): Call the task termination procedure for the
18643 environment task. The call to Finalize_Global_List is now performed
18644 using the soft links mechanism.
18645 (Task_Wrapper): added dynamic stack analysis.
18647 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18648 potentially blocking operations has been moved from
18649 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18650 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18651 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18652 this run-time check.
18654 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18655 of task termination procedure.
18656 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18657 link for the task termination procedure.
18659 * bindusg.adb: (Bindusg): Added documentation for -u option.
18661 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18662 (Get_Main_C): Add handling of dynamic stack analysis.
18663 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18665 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18666 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18667 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18669 * opt.ads: Added flags used by dynamic stack measurement.
18670 (Max_Line_Length): Remove (not used anymore)
18672 * s-io.ads, s-io.adb (Standard_Error): new subprogram
18673 (Standart_Output): new subprogram
18674 (Set_Output): new subprogram
18675 (Put): now uses the value of Current_Out to know if the output has to be
18676 send to stderr or stdout.
18678 * s-stausa.ads: Complete implementation.
18680 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18682 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18683 list of Ada 05 files.
18684 (GNAT Library Units): Add AltiVec files.
18686 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18687 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18688 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18690 2005-12-09 Nicolas Setton <setton@adacore.com>
18692 * adaint.c (__gnat_locate_regular_file): Return immediately if
18693 file_name is empty.
18695 2005-12-09 Javier Miranda <miranda@adacore.com>
18696 Hristian Kirtchev <kirtchev@adacore.com>
18698 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18699 to the specification because the frontend generates code that uses this
18701 (Set_Interface_Table): Add missing assertion.
18702 Update documentation describing the run-time structure.
18703 (Displace): New subprogram that displaces the pointer to the object
18704 to reference one of its secondary dispatch tables.
18705 (IW_Membership): Modified to use the new table of interfaces.
18706 (Inherit_TSD): Modified to use the new table of interfaces.
18707 (Register_Interface_Tag): Use the additional formal to fill the
18708 contents of the new table of interfaces.
18709 (Set_Interface_Table): New subprogram that stores in the TSD the
18710 pointer to the table of interfaces.
18711 (Set_Offset_To_Top): Use the additional formal to save copy of
18712 the offset value in the table of interfaces.
18713 Update structure of GNAT Primary and Secondary dispatch table diagram.
18714 Add comment section on GNAT dispatch table prologue.
18715 (Offset_To_Signature): Update the constant value of the Signature field.
18716 (Dispatch_Table): Update comment on hidden fields in the prologue.
18717 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18718 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18719 the type of formal parameter T to Tag, introduce additional assertions.
18720 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18722 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18724 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18725 in all the calls to Expand_Interface_Thunk. Instead of referencing the
18726 record component containing the tag of the secondary dispatch table we
18727 have to use the Offset_To_Top run-time function to get this information;
18728 otherwise if the pointer to the base of the object has been displace
18729 we get a wrong value if we use the 'position attribute.
18731 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18732 all the calls to Expand_Interface_Thunk.
18733 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18734 interfaces; hence the call to Set_Interface_Table was clearly wrong.
18735 (Collect_All_Interfaces): Modify the internal subprogram Collect to
18736 ensure that the interfaces implemented by the ancestors are placed
18737 at the header of the generated list.
18738 (Expand_Interface_Conversion): Handle the case in which the displacement
18739 associated with the interface conversion is not statically known. In
18740 this case we generate a call to the new run-time subprogram Displace.
18741 (Make_DT): Generate and fill the new table of interfaces.
18742 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18743 Get_Tagged_Kind and Set_Tagged_Kind.
18744 (Tagged_Kind): New function that determines the tagged kind of a type
18745 with respect to limitedness and concurrency and returns a reference to
18747 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18748 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18749 primary dispatch table for a type.
18750 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18751 secondary dispatch table respectively of a tagged type.
18753 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18754 (Expand_Interface_Conversion): New subprogram to indicate if the
18755 displacement of the type conversion is statically known.
18756 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18758 * rtsfind.ads (RE_Offset_To_Top): New entity
18759 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18760 accessible to users.
18761 (Re_Displace): New entity
18762 (RE_Interface_Data): New entity
18763 (RE_Set_Interface_Data): New_Entity
18764 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18765 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18766 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18767 RE_TK_Tagged, RE_TK_Task.
18769 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18770 Init_Secondary_Tags_Internal to allow its use with interface types and
18771 also to generate the code for the new additional actual required
18772 by Set_Offset_To_Top.
18773 (Build_Init_Statements): In case of components associated with abstract
18774 interface types there is no need to generate a call to its IP.
18775 (Freeze_Record_Type): Generate Select Specific Data tables only for
18777 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18778 the bodies and specifications of the predefined primitive operations
18779 dealing with dispatching selects and abort, 'Callable, 'Terminated only
18780 for concurrent types.
18782 * exp_sel.ads, exp_sel.adb: New files.
18784 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18785 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18786 properly protected objects and attach handler in the case of the
18787 restricted profile.
18788 Move embeded package Select_Expansion_Utilities into a separate external
18790 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18791 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18792 (Build_K, Build_S_Assignment): New subprograms, part of the select
18793 expansion utilities.
18794 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18795 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18796 where the trigger is a dispatching procedure of a limited tagged type.
18798 2005-12-09 Olivier Hainque <hainque@adacore.com>
18800 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18801 pointer initialization values. Make a SAVE_EXPR instead. Add comments
18802 about the use and expansion of SAVE_EXPRs in the various possible
18803 renaming handling cases.
18804 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18805 abusing DECL_FCONTEXT.
18807 2005-12-09 Matthew Heaney <heaney@adacore.com>
18809 * a-convec.adb (Merge): Added assertions to check whether vector params
18812 * a-coinve.adb (Merge): Added assertions to check whether vector params
18815 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18817 (Cursor'Read): raises PE
18819 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18820 to its default value.
18822 * a-cihama.adb: Manually check whether cursor's key and elem are
18825 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18826 (Merge): Assert that target and source lists are in order
18827 (Swap): Declare non-const temporaries, to pass to Splice
18829 * a-cdlili.ads: (Splice): Changed param name and param mode
18831 * a-cdlili.adb: (Splice): Changed param name and param mode
18832 (Merge): Assert that target and source lists are in order
18833 (Swap): Declare non-const temporaries, to pass to Splice
18835 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18836 (Write): declare Stream param as not null
18838 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18839 an exception message.
18841 2005-12-09 Thomas Quinot <quinot@adacore.com>
18842 Robert Dewar <dewar@adacore.com>
18844 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18845 which is the absolute maximum length we can support.
18847 * frontend.adb: For the processing of configuration pragma files,
18848 remove references to Opt.Max_Line_Length, which is not checked anymore.
18850 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18853 * scn.adb, scng.adb:
18854 Always check line length against the absolute supported maximum,
18855 Hostparm.Max_Line_Length.
18857 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18858 value for the maximum line length is Max_Line_Length (not
18859 Column_Number'Last).
18860 Minor error msg update
18861 (Set_Style_Check_Options): New interface returning error msg
18862 Minor code reorganization (processing for 'M' was out of alpha order)
18864 * switch-c.adb: New interface for Set_Style_Check_Options
18866 * stylesw.ads (Set_Style_Check_Options): New interface returning error
18869 2005-12-09 Javier Miranda <miranda@adacore.com>
18871 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18872 with IP subprogram were only supported if there were limited types.
18874 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18875 records with IP subprogram were only supported if there were limited
18878 2005-12-09 Olivier Hainque <hainque@adacore.com>
18879 Eric Botcazou <ebotcazou@adacore.com>
18881 * trans.c (tree_transform, emit_check): Adjust calls to
18882 build_call_raise, passing the now expected GNAT_NODE argument.
18884 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18885 source line information than what the current global locus indicates
18888 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18889 field has overflowed.
18890 (build_call_raise): Add a GNAT_NODE argument to convey better source
18891 line information than what the current global locus indicates when
18893 (build_component_ref): Adjust call to build_call_raise.
18895 2005-12-09 Pascal Obry <obry@adacore.com>
18897 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18898 the iterator is quitting iteration on parent directory.
18900 2005-12-09 Javier Miranda <miranda@adacore.com>
18902 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18903 and the assignment to a class-wide object, before the assignment we
18904 generate a run-time check to ensure that the tag of the Target is
18905 covered by the tag of the source.
18907 2005-12-09 Robert Dewar <dewar@adacore.com>
18909 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18910 parameter in call to Image_Wide_Character.
18912 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18913 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18914 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18915 annoying FFFE/FFFF inconsistency.
18917 2005-12-09 Robert Dewar <dewar@adacore.com>
18918 Javier Miranda <miranda@adacore.com>
18919 Ed Schonberg <schonberg@adacore.com>
18921 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18922 of type conversion.
18923 (Find_Interface): New subprogram that given a tagged type and one of its
18924 component associated with the secondary table of an abstract interface
18925 type, return the entity associated with such abstract interface type.
18926 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18927 base type to create anonymous subtype, because entity may be a locally
18928 declared subtype or generic actual.
18929 (Find_Interface): New subprogram that given a tagged type and one of its
18930 component associated with the secondary table of an abstract interface
18931 type, return the entity associated with such abstract interface type.
18933 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18934 conversion cannot be handled at compile time. In this case we pass this
18935 information to the expander to generate the appropriate code.
18937 2005-12-09 Robert Dewar <dewar@adacore.com>
18938 Ed Schonberg <schonberg@adacore.com>
18939 Gary Dismukes <dismukes@adacore.com>
18940 Javier Miranda <miranda@adacore.com>
18941 Hristian Kirtchev <kirtchev@adacore.com>
18943 * einfo.adb (Itype_Printed): New flag
18944 (Is_Limited_Type): Derived types do not inherit limitedness from
18945 interface progenitors.
18946 (Is_Return_By_Reference_Type): Predicate does not apply to limited
18949 * einfo.ads (Itype_Printed): New flag
18950 Move Is_Wrapper_Package to proper section
18951 Add missing Inline for Is_Volatile
18953 * output.ads, output.adb (Write_Erase_Char): New procedure
18954 (Save/Restore_Output_Buffer): New procedures
18955 (Save/Restore_Output_Buffer): New procedures
18957 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18958 Add missing support for anonymous access type
18959 (Write_Id): Insert calls to Write_Itype
18960 (Write_Itype): New procedure to output itypes
18962 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18963 use of "limited" in declaration.
18965 * sinfo.ads, sinfo.adb:
18966 Formal derived types can carry an explicit "limited" indication.
18968 * sem_ch3.adb: Add with and use of Targparm.
18969 (Create_Component): If Frontend_Layout_On_Target is True and the
18970 copied component does not have a known static Esize, then reset
18971 the size and positional fields of the new component.
18972 (Analyze_Component_Declaration): A limited component is
18973 legal within a protected type that implements an interface.
18974 (Collect_Interfaces): Do not add to the list the interfaces that
18975 are implemented by the ancestors.
18976 (Derived_Type_Declaration): If the parent of the full-view is an
18977 interface perform a transformation of the tree to ensure that it has
18978 the same parent than the partial-view. This simplifies the job of the
18979 expander in order to generate the correct object layout, and it is
18980 needed because the list of interfaces of the full-view can be given in
18982 (Process_Full_View): The parent of the full-view does not need to be
18983 a descendant of the parent of the partial view if both parents are
18985 (Analyze_Private_Extension_Declaration): If declaration has an explicit
18986 "limited" the parent must be a limited type.
18987 (Build_Derived_Record_Type): A derived type that is explicitly limited
18988 must have limited ancestor and progenitors.
18989 (Build_Derived_Type): Ditto.
18990 (Process_Full_View): Verify that explicit uses of "limited" in partial
18991 and full declarations are consistent.
18992 (Find_Ancestor_Interface): Remove function.
18993 (Collect_Implemented_Interfaces): New procedure used to gather all
18994 implemented interfaces by a type.
18995 (Contain_Interface): New function used to check whether an interface is
18997 (Find_Hidden_Interface): New function used to determine whether two
18998 lists of interfaces constitute a set equality. If not, the first
18999 differing interface is returned.
19000 (Process_Full_View): Improve the check for the "no hidden interface"
19001 rule as defined by AI-396.
19003 2005-12-09 Robert Dewar <dewar@adacore.com>
19005 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19006 types, not on record subtypes.
19007 (Freeze_Entity): Code cleanup. Add barrier to the loop
19008 that generates the references for primitive operations. This allows to
19009 remove an unnecessary exception handler.
19010 Code reformatting and comment clean ups.
19012 2005-12-09 Vincent Celier <celier@adacore.com>
19014 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19015 If GNAT CHECK is called with a project file, but with no
19016 source on the command line, call gnatcheck with all the compilable
19017 sources of the project.
19018 Take into account the new command Check, for gnatcheck. Treat as for
19019 other ASIS tools: take into account project, specific package Check and
19021 For ASIS tools, add the switches in package Compiler for
19022 the invocation of the compiler.
19024 * prj-attr.adb: Add package Check and its attributes
19026 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19028 * vms_conv.adb (Initialize): Change Params of command Check to
19030 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19031 Add data for new command Check
19033 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19035 Add qualifiers for Check command options
19036 (Command_Type): New command Check
19038 2005-12-09 Thomas Quinot <quinot@adacore.com>
19040 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19041 command line switch overruns the output buffer.
19043 2005-12-09 Robert Dewar <dewar@adacore.com>
19045 * sem_prag.adb: Processing for new pragma Complete_Representation
19046 (Analyze_Pragma, case Debug): Implement two argument form.
19048 * par-prag.adb: Entry for new pragma Complete_Representation
19049 (Prag, case Debug): Recognize two argument form of pragma Debug
19050 New interface for Set_Style_Check_Options.
19052 * sem_ch13.adb: Implement new pragma Complete_Representation.
19054 * snames.adb, snames.ads, snames.h: Entry for new pragma
19055 Complete_Representation.
19057 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19059 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19060 available user-specified stream attributes on limited parameters to
19061 also test the type directly rather than only its underlying type (for
19062 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19063 attributes are visible at the point of the subprogram declaration.
19064 For Ada 2005, the error message is modified to indicate that the
19065 type's stream attributes must be visible (again, only for -gnat05).
19067 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19069 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19070 anonymous access types.
19072 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19073 matching of anonymous access types and anonymous access to subprogram
19074 types. 'R'M 4.9.1 (2/2).
19076 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19078 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19079 rule prematurely when operands are universal, remaining ambiguities
19080 will be removed during resolution.
19083 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19084 that are Ada 2005 functions.
19085 (Has_Abstract_Interpretation): Subsidiary to
19086 Remove_Conversions, to remove ambiguities caused by abstract operations
19087 on numeric types when operands are universal.
19089 2005-12-09 Robert Dewar <dewar@adacore.com>
19091 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19092 for case where spec is categorized.
19094 2005-12-09 Javier Miranda <miranda@adacore.com>
19096 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19097 types use the corresponding record type. This was not needed before
19098 the implementation of Ada 2005 synchronized types because
19099 concurrent types were never tagged types in Ada 95.
19101 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19103 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19104 first subtype of the type of the expression to verify that it is a
19107 2005-12-09 Robert Dewar <dewar@adacore.com>
19109 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19112 2005-12-09 Quentin Ochem <ochem@adacore.com>
19113 Robert Dewar <dewar@adacore.com>
19114 Ed Falis <falis@adacore.com>
19115 Florian Villoing <villoing@adacore.com>
19116 Thomas Quinot <quinot@adacore.com>
19117 Arnaud Charlet <charlet@adacore.com>
19119 * gnat_ugn.texi: Created section "Stack Related Tools"
19120 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19121 "Stack Related Tools"
19122 Added subsection "Static Stack Usage Analysis"
19123 Added subsection "Dynamic Stack Usage Analysis"
19124 Include documentation of itypes in sprint listing (-gnatG)
19125 Documented gnatbind -D switch (default sec stack size for fixed sec
19127 Added Interrupt_State and Persistent_BSS to list of configuration
19129 Add missing doc for maximum value of nnn in -gnatyMnnn
19131 * gnat_rm.texi: Document the AltiVec binding.
19132 Add documentation for pragma Complete_Representation
19133 Shortened an overly long line (> 79 chars)
19134 Clarify documentation of unchecked conversion in implementation
19136 Document two argument form of pragma Debug
19138 * types.ads (Column_Number): Update documentation.
19140 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19141 library level Finalize_Storage_Only objects (these are not attached to
19142 any finalization list).
19144 * system-mingw.ads: (Underlying_Priorities): Update comment.
19146 2005-12-09 Robert Dewar <dewar@adacore.com>
19148 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19149 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19150 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19151 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19152 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19153 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19154 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19155 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19158 2005-12-09 Robert Dewar <dewar@adacore.com>
19160 * s-vaflop-vms-alpha.adb: (Ne_F): New function
19161 (Ne_G): New function
19163 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19164 for tag assignment.
19165 (Rewrite_Comparison): Handle case where operation is not a comparison
19166 and ignore, and also handle type conversion case.
19168 2005-12-09 Thomas Quinot <quinot@adacore.com>
19170 * exp_aggr.ads: Fix typo in comment.
19171 ???-mark Convert_Aggr_In_Assignment as needing documentation.
19173 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19175 * layout.adb: Replace various uses of byte by storage unit throughout.
19176 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19177 static size, convert to storage units before returning, to conform to
19180 2005-12-09 Matthew Gingell <gingell@adacore.com>
19182 * g-exctra.ads: Fix typo in comment.
19184 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19186 * utils.c: Minor reformatting.
19188 2005-12-09 Robert Dewar <dewar@adacore.com>
19191 Further comment fixes to make the status of the default file clear
19193 * s-bitops.adb: Clarify comment for Bits_Array
19195 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19197 * Make-lang.in (ada.install-normal): Remove.
19199 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19201 * Make-lang.in: Remove all dependencies on s-gtype.
19203 2005-12-05 Richard Guenther <rguenther@suse.de>
19205 * utils.c (convert): Use fold_convert where appropriate.
19207 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
19209 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19212 2005-12-02 Richard Guenther <rguenther@suse.de>
19214 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19216 2005-12-01 Roger Sayle <roger@eyesopen.com>
19218 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19221 2005-11-23 Laurent Guerby <laurent@guerby.net>
19223 * mlib-prj.adb (Build_Library): Initialize Delete.
19225 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19227 * socket.c: Add extern int h_errno for rtems since networking header
19228 files are not available at this point in a tool bootstrap. Newlib
19229 only has basic C library header files.
19231 2005-11-19 Richard Guenther <rguenther@suse.de>
19232 Roger Sayle <roger@eyesopen.com>
19235 * misc.c (internal_error_function): Don't use vsprintf to format
19236 the error message text, instead use pp_format_text and the new
19237 pretty printer APIs. This allows handling of %qs, %w, etc.
19239 2005-11-18 Laurent Guerby <laurent@guerby.net>
19242 * Makefile.in: Use s-auxdec-empty for RTEMS.
19244 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19247 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19248 a temporary if taking the address of something that is neither
19249 reference, declaration, or constant, since the gimplifier
19250 can't handle that case.
19252 2005-11-17 Laurent Guerby <laurent@guerby.net>
19255 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19257 2005-11-16 Richard Guenther <rguenther@suse.de>
19259 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19261 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19264 * raise-gcc.c: Add missing stdarg.h include.
19266 2005-11-16 Richard Guenther <rguenther@suse.de>
19268 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19269 (ada/misc.o): Likewise.
19271 2005-11-14 Thomas Quinot <quinot@adacore.com>
19273 * g-soccon.ads: Minor reformatting. Update comments.
19275 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19276 gain visibility on the declaration of struct timeval.
19278 * g-soccon-freebsd.ads,
19279 g-soccon-darwin.ads,
19280 g-soccon-tru64.ads,
19284 g-soccon-solaris.ads,
19286 g-soccon-mingw.ads,
19287 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19289 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19290 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19291 g-soccon-linux-x86.ads: New files.
19293 * g-socthi-mingw.adb:
19294 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19296 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19297 (time_t, suseconds_t): New types constructed to match the tv_sec
19298 and tv_usec fields of C struct timeval.
19299 (Timeval): Construct structure in terms of the new types.
19300 (Host_Errno): New function (imported from socket.c), returns last hosts
19303 * g-socthi-vxworks.adb: Add error handling circuitry.
19305 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19306 components of struct timeval.
19307 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19308 (Check_Selector): In error conditions, clear internal socket sets to
19309 avoid a memory leak.
19310 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19311 Send_Timeout, Receive_Timeout.
19313 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19314 the tv_sec and tv_usec fields of C struct timeval.
19315 (Timeval): Construct structure in terms of the new types.
19316 (Host_Errno): New function (imported from socket.c), returns last hosts
19319 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19320 hosts database last error code.
19322 * gen-soccon.c: Complete value expansion should not be performed on
19323 TARGET, as it has the form of a math expression, and some components
19324 may be platform-defined macros.
19325 For VxWorks, generate the OK and ERROR values.
19326 New constants giving the sizes of the components of C struct timeval.
19328 2005-11-14 Robert Dewar <dewar@adacore.com>
19329 Ed Schonberg <schonberg@adacore.com>
19332 * types.ads: Include All_Checks in Suppress_Array
19334 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19335 not(a=b), since we no longer do this rewriting, and hence it is not
19337 (Elaboration_Checks_Suppressed): Add special casing to
19338 deal with different cases of static and dynamic elaboration checks (all
19339 checks does not count in the first case, but does in the second).
19340 (Expr_Known_Valid): Do not assume that the result of any arbitrary
19341 function call is valid, since this is not the case.
19342 (Ensure_Valid): Do not apply validity check to a real literal
19343 in a universal or fixed context
19345 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19346 elementary types using the operator in standard. It is cleaner not to
19347 modify the programmers intent, especially in the case of floating-point.
19348 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19349 it did not matter because we always rewrote a/=b to not(a=b).
19350 (Expand_Allocator_Expression): For an allocator expression whose nominal
19351 subtype is an unconstrained packed type, convert the expression to its
19352 actual constrained subtype.
19353 Implement warning for <= or >= where < or > not possible
19354 Fix to Vax_Float tests (too early in many routines, causing premature
19355 Vax_Float expansions.
19357 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19358 to be used with packages and generic packages as well as with
19360 (Suppress): Set All_Checks, but not Elaboration_Check, for case
19361 of pragma Suppress (All_Checks)
19362 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19363 a string literal for precise control over warnings.
19364 Avoid raise of pragma in case of unrecognized pragma and just return
19367 * sem_prag.ads: Minor reformatting
19369 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19370 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19371 Switch. Do not handle any exception.
19372 Include -gnatwx as part of -gnatg (warn on redundant parens)
19373 Allow optional = after -gnatm
19374 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19375 longer sets Elaboration_Checks.
19376 Code to set warning mode moved to Sem_Warn
19377 so that it can be shared by pragma processing.
19379 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19382 * s-taprop-solaris.adb:
19383 Change some <= to =, to avoid new warning
19385 * a-exexda.adb, prj-proc.adb:
19386 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19387 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19389 2005-11-14 Robert Dewar <dewar@adacore.com>
19391 * exp_vfpt.adb: Handle /= case
19392 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19393 so that we do not get duplicate scaling for fixed point conversions.
19395 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19397 2005-11-14 Matthew Gingell <gingell@adacore.com>
19399 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
19400 Increase default priority on Lynx from 15 to 17, and meet the Ada
19401 requirement that Default_Priority be ((Priority'First +
19402 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19404 2005-11-14 Vincent Celier <celier@adacore.com>
19406 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19407 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19408 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19409 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19410 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19411 mlib-tgt-lynxos.adb (DLL_Prefix): New function
19413 2005-11-14 Doug Rupp <rupp@adacore.com>
19415 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19418 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19420 * s-traces-default.adb, s-trafor-default.ads,
19421 s-tratas-default.adb: Fix compilation errors.
19423 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19425 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19426 raising the exception so the memory used is freed.
19428 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19430 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19431 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19432 (convert_address): Update comments and list of platforms using this.
19434 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19437 2005-11-14 Pascal Obry <obry@adacore.com>
19438 Vincent Celier <celier@adacore.com>
19440 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19443 * memroot.adb: Remove redundant with/use clause on
19444 System.Storage_Elements.
19446 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19448 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19449 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19450 related code to a-exexpr.adb
19451 (Save_Occurrence_And_Private): Move GCC EH related code to
19453 (Raise_Current_Excep): Add new variable Id with pragma
19454 volatile, to ensure that the variable lives on stack.
19456 * a-exexpr-gcc.adb, raise-gcc.c: New file.
19458 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19460 Move GCC EH related code to a-exexpr-gcc.adb
19462 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19464 Split the Linux version of g-soccon into separate variants for 32 and 64
19466 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19467 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19468 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19469 of host variable $(RANLIB_FLAGS).
19470 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19471 Code clean up: remove unused/obsolete targets.
19472 (EH_MECHANISM): New variable introduced to differenciate between the
19473 two EH mechanisms statically.
19474 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19475 (LIBGNAT_OBJS): Add raise-gcc.o
19476 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19477 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19478 supports VxWorks 6 RTPs.
19479 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19480 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19482 * raise.c: Move all GCC EH-related routines to raise-gcc.c
19484 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19486 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19487 deferral level, when abort is not allowed, to a later stage (the
19489 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19490 it will not get changed by the generated code. It was previously done
19493 2005-11-14 Thomas Quinot <quinot@adacore.com>
19494 Olivier Hainque <hainque@adacore.com>
19495 Eric Botcazou <ebotcazou@adacore.com>
19498 Factor common code to build a storage type for an unconstrained object
19499 from a fat or thin pointer type and a constrained object type.
19500 (annotate_value): Handle BIT_AND_EXPR.
19501 (annotate_rep): Don't restrict the back annotation of inherited
19502 components to the type_annotate_only case.
19503 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19504 we are not defining the type.
19505 <E_Record_Type>: Likewise.
19506 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19507 to get advantage of the new maybe_stabilize_reference interface, to
19508 ensure that what we reference is indeed stabilized instead of relying
19509 on assumptions on what the stabilizer does.
19510 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19511 type imported through a limited_with clause, use its non-limited view.
19512 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19514 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19515 of #if sections + explicit comparisons of convention identifiers.
19516 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19517 before early-returning for certain types when code generation is
19519 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19520 nullification of gnu_expr we do for objects with address clause and
19521 that we are not defining.
19522 (elaborate_expression_1): Do not create constants when creating
19523 variables needed by the debug info: the dwarf2 writer considers that
19524 CONST_DECLs is used only to represent enumeration constants, and emits
19526 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19527 object with an address clause into an indirect reference, drop the
19528 initializing expression.
19530 (STACK_CHECK_BUILTIN): Delete.
19531 (STACK_CHECK_PROBE_INTERVAL): Likewise.
19532 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19533 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19534 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19535 corresponding to the renamed object as ignored for debugging purposes.
19537 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19538 related): For a prefix that is a dereference of a fat or thin pointer,
19539 if there is an actual subtype provided by the front-end, use that
19540 subtype to build an actual type with bounds template.
19541 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19542 is provided by the front-end, use that subtype to compute the size of
19543 the deallocated object.
19544 (gnat_to_gnu): When adding a statement into an elaboration procedure,
19545 check for a potential violation of a No_Elaboration_Code restriction.
19546 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19547 with extra arguments to control whether to recurse through non-values
19548 and to let the caller know if the stabilization has succeeded.
19549 (gnat_stabilize_reference): Now a simple wrapper around
19550 maybe_stabilize, for common uses without restriction on lvalues and
19551 without need to check for the success indication.
19552 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19553 pass false instead of 0 as the FORCE argument which is a bool.
19554 (Identifier_to_gnu): Remove checks ensuring that an renamed object
19555 attached to a renaming pointer has been properly stabilized, as no such
19556 object is attached otherwise.
19557 (call_to_gnu): Invoke create_var_decl to create the temporary when the
19558 function uses the "target pointer" return mechanism.
19559 Reinstate conversion of the actual to the type of the formal
19560 parameter before any other specific treatment based on the passing
19561 mechanism. This turns out to be necessary in order for PLACEHOLDER
19562 substitution to work properly when the latter type is unconstrained.
19564 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19566 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19567 with extra arguments to control whether to recurse through non-values
19568 and to let the caller know if the stabilization has succeeded.
19570 * utils2.c (gnat_build_constructor): Only sort the fields for possible
19571 static output of record constructor if all the components are constant.
19572 (gnat_build_constructor): For a record type, sort the list of field
19573 initializers in increasing bit position order.
19574 Factor common code to build a storage type for an unconstrained object
19575 from a fat or thin pointer type and a constrained object type.
19576 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19577 types variants, and process special cases of VIEW_CONVERT expressions
19578 as their NOP_EXPR counterpart to ensure we get to the
19579 CORRESPONDING_VARs associated with CONST_DECls.
19580 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19581 on the right-hand side.
19583 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19585 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19586 are converting back to its original type.
19587 (convert) <JM input>: Fallthrough regular conversion code instead of
19588 extracting the object if converting to a type variant.
19589 (create_var_decl): When a variable has an initializer requiring code
19590 generation and we are at the top level, check for a potential violation
19591 of a No_Elaboration_Code restriction.
19592 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19593 SIZE and SIZE_UNIT which we need for later back-annotations.
19594 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19595 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19596 is an unchecked union.
19597 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19598 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19599 main variant, just replace the VIEW_CONVERT_EXPR.
19600 <UNION_TYPE>: Revert 2005-03-02 change.
19602 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19604 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19606 2005-11-14 Matthew Heaney <heaney@adacore.com>
19608 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
19609 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
19610 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
19611 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
19612 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19613 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
19614 Compiles against the spec for ordered maps described in sections
19615 A.18.6 of the most recent (August 2005) AI-302 draft.
19617 2005-11-14 Olivier Hainque <hainque@adacore.com>
19619 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19620 to ensure bias adjustments take place when need be and to prevent
19621 occurrences of intermediate overflows.
19623 2005-11-14 Matthew Gingell <gingell@adacore.com>
19624 Olivier Hainque <hainque@adacore.com>
19626 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19629 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19630 tracebacks on ia64 HP-UX and provide explanatory comment.
19631 Enable backtraces on ia64 GNU/Linux.
19632 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19633 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19635 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19636 Javier Miranda <miranda@adacore.com>
19638 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19639 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19640 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19641 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19643 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19644 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19647 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19648 subprogram that generates the external name associated with a
19649 secondary dispatch table.
19650 (Get_Secondary_DT_External_Name): New subprogram that generates the
19651 external name associated with a secondary dispatch table.
19653 2005-11-14 Emmanuel Briot <briot@adacore.com>
19655 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19656 line in the ALI file to include both an instantiation reference, and a
19659 2005-11-14 Vincent Celier <celier@adacore.com>
19661 * clean.adb (Check_Project): Look for Ada code in extending project,
19662 even if Ada is not specified as a language.
19663 Use new function DLL_Prefix for DLL_Name
19664 (Clean_Interface_Copy_Directory): New procedure
19665 (Clean_Library_Directory): New procedure
19666 (Clean_Directory): Remove procedure, no longer used
19667 (Clean_Project): Do not delete any file in an externally built project
19669 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19670 directory of an extending project, even when there are no Ada source
19672 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19673 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19675 * mlib-prj.adb (Check_Library): For all library projects, get the
19676 library file timestamp.
19677 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19678 (Build_Library): Use new function DLL_Prefix for the DLL_Name
19679 (Clean): Remove procedure, no longer used
19680 (Ultimate_Extension_Of): New function
19681 (Build_Library): When cleaning the library directory, only remove an
19682 existing library file and any ALI file of a source of the project.
19683 When cleaning the interface copy directory, remove any source that
19684 could be a source of the project.
19686 * prj.ads, prj.adb (Project_Empty): Add values of new components
19687 Library_TS and All_Imported_Projects.
19688 (Project_Empty): Add values for new components of Project_Data:
19689 Library_ALI_Dir and Display_Library_ALI_Dir
19691 * prj-attr.adb: New project level attribute name Library_ALI_Dir
19693 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19694 attribute Library_ALI_Dir.
19695 (Check_Library_Attributes): The library directory cannot be the same as
19696 any source directory of the project tree.
19697 (Check_Stand_Alone_Library): The interface copy directory cannot be
19698 the same as any source directory of the project tree.
19700 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19701 all temporary files.
19703 2005-11-14 Robert Dewar <dewar@adacore.com>
19704 Ed Schonberg <schonberg@adacore.com>
19706 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19707 (Check_Elab_Call): A call within a protected body is never an
19708 elaboration call, and does not require checking.
19709 (Same_Elaboration_Scope): Take into account protected types for both
19711 (Activate_Elaborate_All_Desirable): New procedure
19713 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19716 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19717 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19719 * lib-writ.ads, lib-writ.adb:
19720 Implement new AD/ED for Elaborate_All/Elaborate desirable
19721 Use new Elaborate_All_Desirable flag in N_With_Clause node
19723 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19724 N_Free_Statement nodes.
19725 Define new class N_Subprogram_Instantiation
19726 Add Elaborate_Desirable flag to N_With_Clause node
19727 Add N_Delay_Statement (covering two kinds of delay)
19729 * debug.adb: Introduce d.f flag for compiler
19730 Add -da switch for binder
19732 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19733 Cyrille Comar <comar@adacore.com>
19735 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19736 for task component, in the case of a limited aggregate. The enclosed
19737 object declaration will create it earlier. Otherwise, in the case of a
19738 nested aggregate, the object may appear in the wrong scope.
19739 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19740 (Gen_Assign): If the component being assigned is an array type and the
19741 expression is itself an aggregate, wrap the assignment in a block to
19742 force finalization actions on the temporary created for each row of the
19744 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19745 structures are initialized after all discriminants are set so that
19746 they can be accessed even when their offset is dynamic.
19748 2005-11-14 Robert Dewar <dewar@adacore.com>
19749 Hristian Kirtchev <kirtchev@adacore.com>
19751 * sem_attr.adb: Implement Machine_Rounding attribute
19752 (Analyze_Access_Attribute): The access attribute may appear within an
19753 aggregate that has been expanded into a loop.
19754 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19755 'Terminated whenever the prefix is of a task interface class-wide type.
19756 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19757 the prefix is of a task interface class-wide type.
19759 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19762 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19763 Remove pragma Inline for [Unaligned_]Valid.
19764 Add comments that Valid routines do not work for Vax_Float
19766 * exp_attr.adb: Implement Machine_Rounding attribute
19768 * snames.h: Add entry for Machine_Rounding attribute
19770 2005-11-14 Javier Miranda <miranda@adacore.com>
19771 Robert Dewar <dewar@adacore.com>
19772 Hristian Kirtchev <kirtchev@adacore.com>
19774 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19775 and related): For a prefix that is an explicit dereference of an
19776 access to unconstrained packed array type, annotate the dereference
19777 with an actual subtype so GIGI can make a correct size computation.
19778 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19779 'Unrestricted_Access, if the designated type is an interface we
19780 add a type conversion to force the displacement of the pointer
19781 to the secondary dispatch table.
19782 Use Universal_Real instead of Long_Long_Float when we need a high
19783 precision float type for the generated code (prevents gratuitous
19784 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19785 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19786 'Terminated for task interface class-wide objects. Generate a call to
19787 the predefined dispatching routine used to retrieve the _task_id from
19788 a task corresponding record.
19789 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19791 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19792 (Check_Dispatching_Operation): Protect the frontend againts
19793 previously detected errors.
19795 * Makefile.rtl: Add new instantiations of system.fat_gen
19797 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
19798 Change name of instantiated package for better consistency
19799 with newly added system.fat_gen instantiations.
19801 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19802 s-fvagfl.ads: New files.
19804 2005-11-14 Cyrille Comar <comar@adacore.com>
19805 Thomas Quinot <quinot@adacore.com>
19807 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19808 assignment of a value of a tagged type that has been rewritten to a
19809 block statement, it is known by construction that no checks are
19810 necessary for the statements within the block: analyze it with checks
19812 (Expand_N_If_Statement): When killing a dead then-branch in an
19813 if-statement that has elsif_parts, recompute the Current_Value node
19814 for any entity whose value is known from the condition of the first
19816 (Expand_N_Return_Statement): When returning a mutable record, convert
19817 the return value into its actual subtype in order to help the backend
19818 to return the actual size instead of the maximum. This is another
19819 aftermath of not returning mutable records on the sec-stack anymore.
19821 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19822 handling of error msg for suspicious reverse range iteration.
19823 (Check_Possible_Current_Value_Condition): Move declaration from body to
19824 spec, to allow this subprogram to be called from exp_ch5.
19826 2005-11-14 Thomas Quinot <quinot@adacore.com>
19828 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19829 generate a set of nested array aggregates instead of a single flat
19830 aggregate for multi-dimensional arrays.
19832 2005-11-14 Pascal Obry <obry@adacore.com>
19834 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19835 by spawnve is a process handle, no need to convert. Add a parameter
19836 close to control wether the process handle must be closed.
19837 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19838 a process handle, not need to convert.
19839 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19841 * g-expect.adb: (Kill): Document the new close parameter.
19842 (Close): Do not release the process handle in the kill there as
19843 waitpid() is using it.
19844 (Send_Signal): Release the process handle.
19846 2005-11-14 Robert Dewar <dewar@adacore.com>
19848 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19849 need a high precision float type for the generated code (prevents
19850 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19853 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19854 need a high precision float type for the generated code (prevents
19855 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19857 (Expand_Width_Attribute): In configurable run-time, the attribute is not
19858 allowed on non-static enumeration subtypes. Force a load error to emit
19859 the correct diagnostic.
19861 2005-11-14 Thomas Quinot <quinot@adacore.com>
19862 Robert Dewar <dewar@adacore.com>
19863 Ed Schonberg <schonberg@adacore.com>
19865 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19866 subtype to compute the size of the designated object at run-time,
19867 create such a subtype and store it in the Actual_Designated_Subtype
19868 attribute of the N_Free_Statement.
19869 Generate itype for classwide designated object in both cases of
19870 user-specified storage pool: specific and class-wide, not only in the
19872 Raise CE when trying to set a not null access type object to null.
19873 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19874 an explicit loop, because freeze nodes make its position variable.
19876 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19879 2005-11-14 Javier Miranda <miranda@adacore.com>
19881 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19882 Build_Stream_Procedure): Add the null-excluding attribute to the first
19884 This has no semantic meaning under Ada95 mode but it is a
19885 requirement under Ada05 mode.
19887 * par-ch3.adb (P_Access_Definition): Addition of warning message if
19888 the null exclusion is used under Ada95 mode
19889 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19890 (P_Access_Definition): Remove assertion that forbids the use of
19891 the null-exclusion feature in Ada95.
19893 2005-11-14 Robert Dewar <dewar@adacore.com>
19895 * impunit.adb: Exclude container helper units not intended for use by
19898 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19900 * freeze.adb (Freeze_Entity): For an access formal that is an access
19901 to subprogram, freeze the anonymous subprogram type at the same time,
19902 to prevent later freezing in the wrong scope, such as the enclosing
19904 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19905 subprogram whenever available.
19907 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19910 * gnatvsn.ads (Library_Version): Bump to 4.1
19912 2005-11-14 Robert Dewar <dewar@adacore.com>
19914 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19915 Storage_Offset to avoid wrap around causing invalid results.
19917 2005-11-14 Pascal Obry <obry@adacore.com>
19919 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19921 (Scan_Bind_Arg): Fail with an error message if -M option is used
19922 on a native compiler.
19924 2005-11-14 Robert Dewar <dewar@adacore.com>
19925 Vincent Celier <celier@adacore.com>
19927 * gprep.adb: Implement -C switch to scan comments
19929 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19931 * scans.ads: Comment updates (including new use of Tok_Comment in
19934 * opt.ads: Add documentation for flags that are used by gprmake,
19935 currently and in the next version of gprmake.
19936 (Verbosity_Level): New variable
19937 Add Replace_In_Comments switch
19939 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19941 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19943 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19945 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19946 message, friendlier.
19948 2005-11-14 Robert Dewar <dewar@adacore.com>
19950 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19952 2005-11-14 Doug Rupp <rupp@adacore.com>
19954 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19956 2005-11-14 Robert Dewar <dewar@adacore.com>
19958 * interfac.ads: Change declarations of IEEE float types so that we no
19959 longer need a separate version of this package for VMS.
19961 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19963 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19964 internal entity created for the declaration of a child subprogram body
19965 with no spec as coming from source, to generate proper cross-reference
19968 2005-11-14 Vincent Celier <celier@adacore.com>
19970 * make.adb (Compile_Sources): Change verbose message to minimum
19971 verbosity level High for "is in an Ada library", "is a read-only
19972 library" and "is an internal library",
19973 (Create_Binder_Mapping_File): Path name of ALI file for library project
19974 must include the library directory, not the object directory.
19975 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19976 for new switches -vl, -vm and -vh.
19977 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19978 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19979 (Compile_Sources): Do not attempt to compile if an ALI file is missing
19980 in a project that is externally built.
19981 (Compute_All_Imported_Projects): New procedure
19982 (Gnatmake): Check if importing libraries should be regenerated because
19983 at least an imported library is more recent.
19984 (Initialize): For each project compute the list of the projects it
19985 imports directly or indirectly.
19986 (Add_Library_Search_Dir): New procedure, used in place of
19987 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19988 put in the search paths.
19989 (Add_Source_Search_Dir): New procedure, used in place of
19990 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19991 put in the search paths.
19992 (Mark_Directory): Resolve the absolute path the directory before marking
19995 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19996 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19997 Switch. Do not handle any exception.
19998 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19999 so that the switch is recognized as valid.
20000 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20002 2005-11-14 GNAT Script <nobody@adacore.com>
20004 * Make-lang.in: Makefile automatically updated
20006 2005-11-14 Pascal Obry <obry@adacore.com>
20008 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20010 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20011 In both cases the last argument was dropped.
20013 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20015 * namet.h: (Column_Numbe): New type.
20016 (Get_Column_Number): Define to sinput__get_column_number.
20017 (Instantiation): Define to sinput__instantiation.
20018 (Get_Column_Number): Declare.
20019 (Instantiation): Likewise.
20021 2005-11-14 Robert Dewar <dewar@adacore.com>
20023 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20024 syntax, which could cause compiler hangs.
20026 2005-11-14 Vincent Celier <celier@adacore.com>
20028 * prj-ext.adb: Take into account new environment variable
20029 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20031 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20032 normalize its path name, making it absolute and resolving symbolic
20033 links, and replace the original if resolved path is different.
20035 2005-11-14 Vincent Celier <celier@adacore.com>
20037 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20038 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20040 2005-11-14 Emmanuel Briot <briot@adacore.com>
20042 * prj-pp.adb (Print): Do not output the with statement if the
20043 associated name is empty, which happens for virtual extending projects.
20044 (Print): Preserve the "extends all" attribute when printing the project.
20046 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20047 a virtual extending project.
20049 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20051 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20052 rhs of an assignment even if the type is unconstrained, when the
20053 context is non-expanding.
20054 In an inlined body, if the context type is private,
20055 resolve with its full view, which must be a composite type.
20057 2005-11-14 Robert Dewar <dewar@adacore.com>
20058 Ed Schonberg <schonberg@adacore.com>
20060 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20061 Do not give obsolescent warning on with of subprogram (since we
20063 (Analyze_With_Clause): Add test for obsolescent package
20064 (Install_Context_Clauses): If the unit is the body of a child unit, do
20065 not install twice the private declarations of the parents, to prevent
20066 circular lists of Use_Clauses in a parent.
20067 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20068 compiling body of child unit.
20069 Use new class N_Subprogram_Instantiation
20070 (Expand_With_Clause): If this is a private with_clause for a child unit,
20071 appearing in the context of a package declaration, then the implicit
20072 with_clauses generated for parent units are private as well.
20073 (License_Check): Do not generate message if with'ed unit is internal
20075 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20076 Ed Schonberg <schonberg@adacore.com>
20077 Thomas Quinot <quinot@adacore.com>
20079 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20080 names are internal, because they will not have a corresponding partner
20081 in the actual package.
20082 (Analyze_Formal_Package): Move the setting of the formal package spec's
20083 Generic_Parent field so that it occurs prior to analyzing the package,
20084 to allow proper operation of Install_Parent_Private_Declarations.
20085 (Analyze_Package_Instantiation): Set the instantiated package entity's
20086 Package_Instantiation field.
20087 (Get_Package_Instantiation_Node): Move declaration to package spec.
20088 Retrieve the N_Package_Instantiation node when the Package_Instantiation
20090 (Check_Generic_Child_Unit): Within an inlined call, the only possible
20091 instantiation is Unchecked_Conversion, for which no parents are needed.
20092 (Inline_Instance_Body): Deinstall and record the use_clauses for all
20093 parent scopes of a scope being removed prior to inlining an instance
20095 (Analyze_Package_Instantiation): Do not perform front-end inlining when
20096 the current context is itself an instance within a non-instance child
20097 unit, to prevent scope stack errors.
20098 (Save_References): If the node is an aggregate that is an actual in a
20099 call, rewrite as a qualified expression to preserve some type
20100 information, to resolve possible ambiguities in the instance.
20101 (Instance_Parent_Unit): New global variable to record the ultimate
20102 parent unit associated with a generic child unit instance (associated
20103 with the existing Parent_Unit_Visible flag).
20104 (type Instance_Env): New component Instance_Parent_Unit for stacking
20105 parents recorded in the global Instance_Parent_Unit.
20106 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20108 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20109 it's not a top-level unit, and only do this if Instance_Parent_Unit is
20110 not already set. Replace test of Is_Child_Unit with test of parent's
20111 scope against package Standard. Add comments and a ??? comment.
20112 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20113 on a child instance parent to test that the parent equals
20114 Instance_Parent rather than simply checking that the unit is not a
20116 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20117 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20118 a formal interface are ancestors of the corresponding actual.
20119 (Validate_Formal_Interface_Type): Additional legality checks.
20120 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20121 interface types with ancestors.
20122 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20123 to diagnose attempts to use generic within its own declaration.
20125 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20126 Javier Miranda <miranda@adacore.com>
20128 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20130 (Build_Private_Derived_Type): The entity of the created full view of the
20131 derived type does not come from source. If after installing the private
20132 declarations of the parent scope the parent is still private, use its
20133 full view to construct the full declaration of the derived type.
20134 (Build_Derived_Record_Type): Relax the condition that controls the
20135 execution of the check that verifies that the partial view and
20136 the full view agree in the set of implemented interfaces. In
20137 addition, this test now only takes into account the progenitors.
20138 (Derive_Interface_Subprograms): No need to derive subprograms
20139 of ancestors that are interfaces.
20140 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20142 Change name Is_Package to Is_Package_Or_Generic_Package
20143 (Complete_Subprograms_Derivation): Handle the case in which the full
20144 view is a transitive derivation of the ancestor of the partial view.
20145 (Process_Full_View): Rename local subprogram Find_Interface_In_
20146 Descendant to Find_Ancestor_Interface to leave the code more clear.
20147 Remove wrong code that avoids the generation of an error message
20148 when the immediate ancestor of the partial view is an interface.
20149 In addition some minor reorganization of the code has been done to
20150 leave it more clear.
20151 (Analyze_Type_Declaration): If type has previous incomplete tagged
20152 partial view, inherit properly its primitive operations.
20153 (Collect_Interfaces): Make public, for analysis of formal
20155 (Analyze_Interface_Declaration): New procedure for use for regular and
20156 formal interface declarations.
20157 (Build_Derived_Record_Type): Add support for private types to the code
20158 that checks if a tagged type implements abstract interfaces.
20159 (Check_Aliased_Component_Type): The test applies in the spec of an
20161 (Access_Type_Declaration): Clean up declaration of malformed type
20162 declared as an access to its own classwide type, to prevent cascaded
20164 (Collect_Interfaces): For private extensions and for derived task types
20165 and derived protected types, the parent may be an interface that must
20166 be included in the interface list.
20167 (Access_Definition): If the designated type is an interface that may
20168 contain tasks, create Master_Id for it before analyzing the expression
20169 of the declaration, which may be an allocator.
20170 (Record_Type_Declaration): Set properly the interface kind, for use
20171 in allocators, the creation of master id's for task interfaces, etc.
20173 2005-11-14 Javier Miranda <miranda@adacore.com>
20174 Ed Schonberg <schonberg@adacore.com>
20176 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20177 omitted in case of stream attribute subprograms.
20178 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20179 appear immediately after a subprogram body, when there is no previous
20180 subprogram declaration.
20181 Change name Is_Package to Is_Package_Or_Generic_Package
20182 (Process_Formals): A non null qualifier on a non null named access
20183 type is not an error, and is a warning only if Redundant_Constructs
20186 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20187 Ed Schonberg <schonberg@adacore.com>
20189 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20190 nested within Analyze_Package_Specification to install the private
20191 declarations and use clauses within each of the parent units of a
20192 package instance of a generic child package.
20193 (Analyze_Package_Specification): When entering a private part of a
20194 package associated with a generic instance or formal package, the
20195 private declarations of the parent must be installed (by calling new
20196 procedure Install_Parent_Private_Declarations).
20197 Change name Is_Package to Is_Package_Or_Generic_Package
20198 (Preserve_Full_Attributes): For a synchronized type, the corresponding
20199 record is absent in a generic context, which does not indicate a
20202 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20204 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20205 not try to rewrite a renamed stream attribute, because the operations
20206 on the type may not have been generated.
20207 Handle properly a renaming_as_body generated for a stream operation
20208 whose default is abstract because the object type itself is abstract.
20209 (Find_Type): If the type is incomplete and appears as the prefix of a
20210 'Class reference, it is tagged, and its list of primitive operations
20211 must be initialized properly.
20212 (Chain_Use_Clauses): When chaining the use clauses that appear in the
20213 private declaration of a parent unit, prior to compiling the private
20214 part of a child unit, find on the scope stack the proper parent entity
20215 on which to link the use clause.
20216 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20218 (Analyze_Object_Renaming): An attribute reference is not a legal object
20219 if it is not a function call.
20221 2005-11-14 Robert Dewar <dewar@adacore.com>
20222 Ed Schonberg <schonberg@adacore.com>
20224 * sem_eval.adb: Implement d.f flag
20225 (Subtype_Statically_Match): A generic actual type has unknown
20226 discriminants when the corresponding actual has a similar partial view.
20227 If the routine is called to validate the signature of an inherited
20228 operation in a child instance, the generic actual matches the full view,
20230 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20231 Ed Schonberg <schonberg@adacore.com>
20232 Robert Dewar <dewar@adacore.com>
20233 Thomas Quinot <quinot@adacore.com>
20235 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20236 a procedure call is used as a select statement trigger and is not an
20237 entry renaming or a primitive of a limited interface.
20238 (Valid_Conversion): If the operand has a single interpretation do not
20239 remove address operations.
20240 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20241 statement to inhibit warning.
20242 (Resolve_Unary_Op): Do not produce a warning when
20243 processing an expression of the form -(A mod B)
20244 Use Universal_Real instead of Long_Long_Float when we need a high
20245 precision float type for the generated code (prevents gratuitous
20246 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20247 (Resolve_Concatenation_Arg): Improve error message when argument is an
20248 ambiguous call to a function that returns an array.
20249 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20250 there is an implicit operator in the given scope if we are within an
20251 instance: legality check has been performed on the generic.
20252 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20253 after resolving operand, to avoid false warnings on overloaded calls.
20255 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20256 Javier Miranda <miranda@adacore.com>
20259 * sem_type.adb (Covers): In an inlined body, a composite type matches
20260 a private type whose full view is a composite type.
20261 (Interface_Present_In_Ancestor): Protect the frontend against
20262 previously detected errors to ensure that its compilation
20263 with assertions enabled gives the same output that its
20264 compilation without assertions.
20265 (Interface_Present_In_Ancestor): Add support for private types.
20266 Change name In_Actual to In_Generic_Actual (clean up)
20267 (Disambiguate): New predicate In_Actual, to recognize expressions that
20268 appear in the renaming declaration generated for generic actuals, and
20269 which must be resolved in the outer context.
20271 2005-11-14 Robert Dewar <dewar@adacore.com>
20272 Thomas Quinot <quinot@adacore.com>
20273 Hristian Kirtchev <kirtchev@adacore.com>
20274 Ed Schonberg <schonberg@adacore.com>
20276 * sem_util.ads, sem_util.adb: Change name Is_Package to
20277 Is_Package_Or_Generic_Package.
20278 (Check_Obsolescent): New procedure.
20279 (Set_Is_Public): Remove obsolete junk test.
20280 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20281 occurs within a handled_sequence_of_statemets.
20282 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20283 for a parameterless procedure.
20284 (Enter_Name): Recognize renaming declarations created for private
20285 component of a protected type within protected operations, so that
20286 the source name of the component can be used in the debugger.
20288 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20289 Robert Dewar <dewar@adacore.com>
20291 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20292 of a generic subprogram are not visible outside the body.
20293 (Set_Warning_Switch): New procedure (code to set warning mode moved
20294 here from Switch.C so that it can be shared by pragma processing.
20295 (Check_References): Special case warning for non-modified non-imported
20297 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20298 form with a string literal argument
20300 2005-11-14 Javier Miranda <miranda@adacore.com>
20302 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20304 (Write): Addition of "not null" to the anonymous access.
20305 (Read): Addition of "not null" to the anonymous access.
20306 (Write): Addition of "not null" to the anonymous access.
20308 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20309 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20310 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20311 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20312 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20313 "not null" to the anonymous access.
20315 2005-11-14 Robert Dewar <dewar@adacore.com>
20317 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20320 2005-11-14 Vincent Celier <celier@adacore.com>
20322 * switch.adb (Bad_Switch): New procedure
20323 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20324 message when in error.
20326 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20327 Too_Many_Output_Files): Remove declarations, no longer used.
20328 (Scan_Nat): New parameter Switch
20330 (Bad_Switch): New procedure
20332 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20333 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20334 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20335 to Osint.Fail. Do not handle any exception.
20337 2005-11-14 Vincent Celier <celier@adacore.com>
20339 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20340 designates a non existent directory.
20342 2005-11-14 Robert Dewar <dewar@adacore.com>
20344 * xgnatugn.adb: Replace invalid membership test by 'Valid
20346 2005-11-14 Vincent Celier <celier@adacore.com>
20348 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20349 there is no object directory.
20351 2005-11-14 Robert Dewar <dewar@adacore.com>
20353 * usage.adb: Minor adjustment to output format, use nn instead of nnn
20354 (so that -gnateInnn does not run into next column)
20356 2005-11-14 Ed Falis <falis@adacore.com>
20358 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20361 2005-11-14 Cyrille Comar <comar@adacore.com>
20363 * s-chepoo.ads: Add comments on Dereference.
20364 Remove unnecessary inherited abstract primitives.
20367 2005-11-14 Robert Dewar <dewar@adacore.com>
20369 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20370 node parameter, not needed, since it is available as Declaration_Node.
20372 2005-11-14 Geert Bosch <bosch@adacore.com>
20374 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20375 grammatically correct.
20377 2005-11-14 Vincent Celier <celier@adacore.com>
20379 * s-fileio.ads: Correct spelling error in comment
20381 2005-11-14 Cyrille Comar <comar@adacore.com>
20382 Robert Dewar <dewar@adacore.com>
20383 Vincent Celier <celier@adacore.com>
20384 Ben Brosgol <brosgol@adacore.com>
20385 Jose Ruiz <ruiz@adacore.com>
20386 Pascal Obry <obry@adacore.com>
20389 Document that -fstack-check is needed for strict compliance with the
20390 Ada 95 Reference Manual.
20391 Correct reference to VAX systems to meet HP guidelines
20392 Add documentation for new gnatmake switches -vl, -vm and -vh
20393 Replace DEC Ada by HP Ada
20394 Replace DIGITAL by HP
20395 Remove empty section on tools in compatibility section
20396 Clarify the Windows convention semantics.
20397 Document the Win32 calling convention.
20398 The Stdcall, Win32 and DLL convention are synonyms.
20399 Add a note in -gnatR description about zero size record components
20400 Note on new >= and <= warnings for -gnatwc
20401 Document that equal sign after -gnatm is optional.
20402 Note that strip is working fine on DLL built with a Library
20403 Project. The restriction apply only to DLL built with gnatdll.
20404 Update section about the way to debug a DLL.
20405 Update information about the DLL convention.
20406 Document -C switch for gnatprep
20407 Document new attribute Library_ALI_Dir
20408 Update elaboration doc to include implicit Elaborate pragmas now
20409 generated for subprogram instantiations.
20410 Document limitation on executable names that include spaces for --GCC,
20411 --GNATBIND, and --GNATLINK switches.
20412 Document that -w causes -gnatws to be added at start of gcc switches
20414 * gnat_rm.texi: Document that -mieee is needed for generating infinite
20415 and NaN values in case of overflow on machines that are not fully
20416 compliant with the IEEE floating-point standard.
20417 Create a section describing the set of compiler options needed for
20418 strict compliance with the Ada 95 Reference Manual.
20419 Add documentation for pragma Obsolescent applied to a package
20420 Clarify potential issues of mixed language programs related to the
20421 I/O buffering enabling in the elaboration of the GNAT runtime.
20422 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20423 This documentation only patch adds extra documentsion for pragma
20424 Restrictions (No_Elaboration_Code), explaining why it is not possible
20425 to document this restriction in terms of allowed source constructs.
20426 Document string literal form of pragma Warnings
20427 Document new attribute Library_ALI_Dir
20428 Add documentation on stable attributes in project files that was missing
20430 * gnat-style.texi: Indicate that paragraphs within a single comment
20431 should be separated by empty comment lines
20433 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20436 * bindusg.adb: Minor cleanup, put -m before -M for consistency
20438 2005-11-14 Robert Dewar <dewar@adacore.com>
20440 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20441 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20442 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20443 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20444 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20445 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20446 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20447 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20448 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20449 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20450 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20451 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20452 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20453 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20454 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20455 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20456 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20457 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20458 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20459 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20460 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20461 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20462 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20463 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20464 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20465 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20466 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20467 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20468 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20469 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20470 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20471 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20472 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20473 system-interix.ads, system-solaris-sparc.ads,
20474 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20475 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20476 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20477 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20478 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20479 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20480 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20481 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20482 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20483 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20484 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20485 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20486 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20487 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20488 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20489 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20490 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20491 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20492 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20493 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20494 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20495 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20496 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20497 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20498 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20499 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20500 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20501 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20502 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20503 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20504 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20505 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20506 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20507 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20508 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20509 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20510 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20511 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20512 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20513 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20514 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20515 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20516 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20517 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20518 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20519 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20520 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20521 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20522 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20523 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20524 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20525 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20526 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20527 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20528 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20529 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20530 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20531 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20532 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20533 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20534 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20535 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20536 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20537 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20538 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20539 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20540 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20541 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20542 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20543 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20544 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20545 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20546 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20547 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20548 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20549 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20550 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20551 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20552 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20553 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20554 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20555 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20556 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20557 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20558 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20559 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20560 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20561 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20562 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20563 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20564 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20565 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20566 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20567 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20568 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20569 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20570 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20571 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20572 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20573 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20574 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20575 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20576 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20577 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20578 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20579 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20580 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20581 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20582 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20583 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20584 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20585 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20586 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20587 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20588 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20589 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20590 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20591 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20592 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20593 a-numaux-darwin.ads, a-numaux-darwin.adb,
20594 a-swuwha.ads, a-stunha.ads: Minor reformatting
20596 2005-11-14 Robert Dewar <dewar@adacore.com>
20599 * osint-m.adb: Add pragma Elaborate_All for Osint
20601 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
20604 * trans.c (call_to_gnu): Restore statement lost in translation.
20606 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
20608 * init.c: Use the Linux-specific section for the IA-64/Linux target.
20609 (__gnat_adjust_context_for_raise): Add conditional code so that the
20610 IA-64 is also supported.
20612 2005-11-03 James E Wilson <wilson@specifix.com>
20615 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20616 TREE_OVERFLOW check.
20618 2005-09-21 Olivier Hainque <hainque@adacore.com>
20621 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20622 as we create them to store a size in bits.
20624 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
20632 * utils2.c (build_return_expr): New helper function.
20633 * gigi.h (build_return_expr): Declare it.
20634 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20635 of manually building the RETURN_EXPR tree.
20636 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20637 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20638 build_binary_op for the "target pointer" case. Use build_return_expr
20639 instead of manually building the RETURN_EXPR tree.
20641 2005-09-16 Laurent Guerby <laurent@guerby.net>
20644 * s-tpinop.ads: Make this unit Preelaborate.
20646 2005-09-16 Andreas Jaeger <aj@suse.de>
20648 * socket.c: Add string.h for memcpy.
20650 2005-09-05 Arnaud Charlet <charlet@adacore.com>
20652 * dec-io.ads, dec-io.adb: Removed, no longer used.
20654 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20656 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20658 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20659 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20660 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20661 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20662 dependent units are Preelaborate.
20663 (Initialize): Call Interrupt_Managemeent.Initialize and
20664 OS_Primitives.Initialize to ensure proper initialization of this unit.
20665 Remove use of System.Soft_Links
20666 Make this unit Preelaborate.
20668 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20669 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20670 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20671 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20672 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20673 s-tratas.ads, s-tasinf.ads: Minor reformatting.
20674 Add pragma Preelaborate, since these packages are suitable for this
20678 * s-traent-vms.ads, s-intman-dummy.adb,
20679 s-taprop-dummy.adb: Make this unit Preelaborate.
20681 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20682 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20683 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20684 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20685 s-intman-solaris.adb, s-intman-irix-athread.adb,
20686 s-intman-irix.adb: Mark this unit Preelaborate.
20687 (Initialize): New procedure.
20690 * s-taspri-linux.ads: Removed.
20692 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20693 as done by other implementations (e.g. posix).
20695 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20696 responsible for deferring abort.
20697 Mark this unit Preelaborate.
20699 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20700 proper initialization of the tasking run-time.
20702 * s-tasdeb.ads: Mark this unit Preelaborate.
20703 (Known_Tasks): Add explicit default value to avoid elaboration code.
20705 * s-inmaop-vms.adb (Elaboration code): Add call to
20706 Interrupt_Management.Initialize since the elaboration code depends on
20707 proper initialization of this package.
20709 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20710 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20711 s-osprim-posix.adb: Make this unit Preelaborate.
20713 * a-calend.adb: Add call to OS_Primitives.Initialize
20715 * a-elchha.adb: Update use of Except.Id.Full_Name.
20716 Minor reformatting.
20717 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20719 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20720 Move with clauses outside Warnings Off now that dependent units are
20722 Use raise xxx with "..."; Ada 2005 form.
20724 * a-taside.ads, a-taside.adb:
20725 Remove some dependencies, to make it easier to make this unit truly
20727 Rewrite some code to be conformant with Preelaborate rules.
20729 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20730 marked Preelaborate in the future.
20732 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20733 these units Preelaborate.
20735 * s-exctab.adb: Update use of Except.Id.Full_Name.
20737 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20738 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20739 Set_Exc_Stack_Addr): Removed, no longer used.
20740 Remove reference to *Machine_State_Addr*, no longer needed.
20742 * s-stalib.ads: Mark this unit as Preelaborate[_05].
20743 (Exception_Data): Full_Name is now a System.Address so that this unit
20744 can be made Preelaborate.
20745 Clean up/simplify code thanks to Full_Name being a System.Address.
20746 Remove obsolete pragma Suppress (All_Checks), no longer needed.
20748 * s-taskin.ads, s-taskin.adb:
20749 Move with clauses outside Warnings Off now that dependent units are
20751 Make this unit Preelaborate.
20752 (Initialize): New proceduure, replace elaboration code and makes the
20753 set up of the tasking run-time cleaner.
20754 (Detect_Blocking): Now a function instead of a deferred boolean, to
20755 obey Preelaborate rules.
20757 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20758 soft links, no longer used.
20760 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20761 packages are suitable for this categorization.
20763 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20764 since we compile run-time sources in Ada 2005 mode.
20765 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20766 avoid having s-taprop*.adb depend on s-soflin and to avoid code
20768 Remove reference to *Machine_State_Addr*, no longer needed.
20770 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20772 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20773 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20774 Remove reference to System.Exceptions.
20776 * s-mastop-x86.adb: Removed, no longer used.
20778 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20780 * a-excach.adb: Minor reformatting.
20782 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20783 instead fix new warnings that were hidden by this change.
20784 (AAA, ZZZ): Removed, replaced by...
20785 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20786 are used instead of constants, to help make Ada.Exception truly
20788 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20789 Raise_Storage_Error): File is now a System.Address, to simplify code.
20790 (Elab code): Removed, no longer used.
20791 (Null_Occurrence): Remove Warnings Off and make this construct
20793 Remove code related to front-end zero cost exception handling, since
20794 it is no longer used.
20795 Remove -gnatL/-gnatZ switches.
20797 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20798 Update use of Except.Msg.
20800 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20801 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20802 to front-end zero cost exception handling, since it is no longer used.
20803 Remove -gnatL/-gnatZ switches.
20805 * lib-writ.ads: Minor reformatting
20808 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20810 * Make-lang.in: Remove references to s-except.ads
20812 * s-except.ads: Removed, no longer used.
20814 * s-mastop.ads, s-mastop.adb:
20815 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20816 Remove reference to System.Exceptions.
20818 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20819 switch-b.adb: Remove code related to front-end zero cost exception
20820 handling, since it is no longer used.
20821 Remove -gnatL/-gnatZ switches.
20823 2005-09-01 Robert Dewar <dewar@adacore.com>
20824 Gary Dismukes <dismukes@adacore.com>
20825 Javier Miranda <miranda@adacore.com>
20827 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20828 type by valid test and generate warning.
20829 (Tagged_Membership): Generate call to the run-time
20830 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20831 Change formal name Subtype_Mark to Result_Definition in several calls to
20832 Make_Function_Specification.
20833 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20834 check for proper accessibility of the operand of a class-wide allocator.
20835 The check can be left out if checks are suppressed or if the expression
20836 has a specific tagged type whose level is known to be safe.
20838 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20839 generates the run-time check associated with null-excluding entities.
20840 (Expand_N_Return_Statement): Add tests to determine if the accessibility
20841 check on the level of the return expression of a class-wide function
20842 can be elided. The check usually isn't needed if the expression has a
20843 specific type (unless it's a conversion or a formal parameter). Also
20844 add a test for whether accessibility checks are suppressed. Augment
20845 the comments to describe the conditions for performing the check.
20847 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
20848 Javier Miranda <miranda@adacore.com>
20849 Gary Dismukes <dismukes@adacore.com>
20850 Ed Schonberg <schonberg@adacore.com>
20852 * a-tags.adb (IW_Membership): Give support to
20853 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20854 subprogram has been extended to look for the tag in the ancestors tag
20856 Update the structure of the GNAT Dispatch Table to reflect the
20857 additional two tables used in dispatching selects.
20858 Introduce appropriate array types and record components in
20859 Type_Specific_Data to reflect the two tables.
20860 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20861 the TSD of a tag, indexed by position.
20862 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20863 operation kind in the TSD of a tag, indexed by position.
20865 * a-tags.ads: Introduce an enumeration type to capture different
20866 primitive operation kinds. Define a constant reflecting the number of
20867 predefined primitive operations.
20868 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20869 of an entry wrapper.
20870 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20871 callable entity of a primitive operation.
20873 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20874 primitive operations used in dispatching selects for limited
20875 interfaces, limited tagged, task and protected types what implement a
20877 (Freeze_Type): Generate the bodies of the primitive operations used in
20878 dispatching selects for limited tagged, task and protected types that
20879 implement a limited interface. Generate statements to populate the two
20880 auxiliary tables used for dispatching in select statements.
20881 (Freeze_Record_Type): Add call to initialize the dispatch table entries
20882 associated with predefined interface primitive operations.
20883 (Build_Dcheck_Function): Change Set_Subtype_Mark to
20884 Set_Result_Definition.
20885 (Build_Variant_Record_Equality): Change Subtype_Mark to
20887 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20888 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20889 (Build_Assignment): Simplify the code that adds the run-time-check.
20890 (Expand_N_Object_Declaration): Code cleanup.
20892 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20893 entries when there is a protected type that implements a limited
20896 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20897 common routines used in expansion of dispatching selects.
20898 (Add_Private_Declarations): Select the appropriate protection type when
20899 there is a protected type that implements a limited interface.
20900 (Build_Parameter_Block): Generate a wrapped parameter block.
20901 (Build_Protected_Subprogram_Body): Select the appropriate type for
20902 locking entries when there is a protected type that implements a
20904 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20905 classified as entry wrappers.
20906 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20907 asynchronous selects.
20908 (Expand_N_Conditional_Entry_Call): Add support for expansion of
20909 dispatching conditional selects.
20910 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20911 protection when there is a protected type that implements limited
20913 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20915 (Extract_Dispatching_Call): Extract the entity of the name of a
20916 dispatching call, the object parameter, actual parameters and
20917 corresponding formals.
20918 (Make_Initialize_Protection): Correct logic of protection initialization
20919 when there is a protected type that implements a limited interface.
20920 (Parameter_Block_Pack): Populate a wrapped parameter block with the
20921 values of actual parameters.
20922 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20923 block and assign them to the original actual parameters.
20925 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20926 (Build_Protected_Sub_Specification): Change the type and name of the
20927 last formal to account for the increased variety of protection modes.
20929 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20930 entities. Used to save the value of the Is_Hidden attribute when the
20931 limited-view is installed.
20932 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20933 the attribute of procedures classified as entry wrappers.
20934 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20935 entity of a primitive wrapper.
20936 (Write_Entity_Flags): Output the name and value of the
20937 Is_Primitive_Wrapper attribute.
20938 (Write_Field27_Name): Output the name and entity of the field Wrapped_
20940 (Underlying_Type): If we have an incomplete entity that comes from
20941 the limited view then we return the Underlying_Type of its non-limited
20942 view if it is already available.
20943 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20944 including operators.
20945 (Write_Field26_Name): Add entry for Overridden_Operation
20946 (Overridden_Operation): New attribute of functions and procedures.
20948 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20949 predefined position in the dispatch table for the primitive operations
20950 used in dispatching selects.
20951 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20952 predefined primitive operations and replace it with
20953 Default_Prim_Op_Count.
20954 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20955 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20956 the names of the generated primitive operations used in dispatching
20958 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20959 case of abstract interface types. They will be inherit by the objects
20960 implementing the interface.
20961 (Make_DT): There is no need to inherit the dispatch table of the
20962 ancestor interface for the elaboration of abstract interface types.
20963 The dispatch table will be inherited by the object implementing the
20965 (Copy_Secondary_DTs): Add documentation.
20966 (Validate_Position): Improve this static check in case of
20967 aliased subprograms because aliased subprograms must have
20969 (Init_Predefined_Interface_Primitives): New subprogram that initializes
20970 the entries associated with predefined primitives of all the secondary
20972 (Build_Anonymous_Access_Type): Removed.
20973 (Expand_Interface_Actuals): With the previous cleanup there is no need
20974 to build an anonymous access type. This allows further cleanup in the
20975 code generated by the expander.
20976 (Expand_Interface_Conversion): If the actual is an access type then
20977 build an internal function to handle the displacement. If the actual
20978 is null this function returns null because no displacement is
20979 required; otherwise performs a type conversion that will be
20980 expanded in the code that returns the value of the displaced actual.
20981 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20982 conversions that have no effect in the generated code because no
20983 displacement is required. Code cleanup; use local variables to
20984 avoid repeated calls to the subprogram directly_designated_type().
20986 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20987 Classify the primitive operations used in dispatching selects as
20989 (Implements_Limited_Interface): Determine whether some type either
20990 directly implements a limited interface or extends a type that
20991 implements a limited interface.
20992 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20993 (Expand_Subtype_From_Expr): Do not build actual subtype if the
20994 expression is limited.
20995 (Find_Interface_Tag): Add code to handle class-wide types and
20996 entities from the limited-view.
20998 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20999 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21000 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21001 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21004 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21005 of procedure name or prefix that appears as a trigger in a triggering
21008 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21010 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21012 * s-tataat.adb, a-tasatt.adb:
21013 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21015 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21016 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21017 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21020 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21021 Jose Ruiz <ruiz@adacore.com>
21023 * s-taprop-vxworks.adb:
21024 Move with clauses outside Warnings Off now that dependent units are
21026 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21027 initialization of this unit.
21028 (Specific): Add new procedures Initialize and Delete so that this
21029 package can be used for VxWorks 5.x and 6.x
21030 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21031 differences between VxWorks 5.x and 6.x
21032 Minor reformatting.
21033 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21035 Use only Preelaborate-compatible constructs.
21037 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21038 Primitives.Operations.
21039 (Delete, Initialize): New procedures.
21041 * s-osinte-vxworks.adb: Body used to handle differences between
21042 VxWorks 5.x and 6.x
21043 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21045 * s-osinte-vxworks.ads: Minor reformatting.
21046 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21047 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21049 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21050 between Vxworks 5 and 6.
21051 (taskLock, taskUnlock): Removeed, no longer used.
21053 * adaint.c: The wait.h header is not located in the sys directory on
21054 VxWorks when using RTPs.
21055 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21057 (__gnat_dup): dup is available on Vxworks when using RTPs.
21058 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21060 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21062 * expect.c: The wait.h header is not located in the sys directory on
21063 VxWorks when using RTPs.
21065 2005-09-01 Thomas Quinot <quinot@adacore.com>
21067 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21069 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21071 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21072 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21073 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21074 g-soccon-freebsd.ads: Add new constants:
21076 SO_RCVTIMEO/SO_SNDTIMEO
21080 Move all target-specific file inclusions and macro definitions to
21081 gsocket.h, in order to ensure that any C code in socket.c will see a
21082 set of constants that is consistent with the contents of g-soccon.ads.
21084 * gsocket.h: Code imported from gen-soccon.c:
21085 Move all target-specific file inclusions and macro definitions to
21086 gsocket.h, in order to ensure that any C code in socket.c will see a set
21087 of constants that is consistent with the contents of g-soccon.ads.
21088 This change also makes gen-soccon self-contained (removing dependencies
21089 upon GCC internal headers).
21091 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21093 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21095 * socket.c: Minor reformatting.
21097 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21098 Thomas Quinot <quinot@adacore.com>
21100 * fname-sf.adb, mlib-tgt.ads,
21101 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21102 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21103 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21104 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21105 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21106 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21107 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21108 makegpr.adb: Remove redundant use_clauses.
21110 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21112 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21113 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21114 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21115 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21116 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21117 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21118 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21119 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21120 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21121 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21122 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21123 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21124 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21125 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21126 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21127 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21128 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21129 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21130 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21131 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21132 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21133 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21134 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21135 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21136 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21137 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21138 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21139 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21140 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21141 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21142 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21143 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21144 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21145 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21146 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21147 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21148 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21149 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21150 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21151 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21152 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21153 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21154 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21155 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21156 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21157 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21158 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21159 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21160 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21161 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21162 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21163 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21164 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21165 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21166 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21167 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21168 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21169 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21170 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21171 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21172 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21173 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21174 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21175 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21176 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21177 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21178 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21179 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21180 and always use the no parameter form for consistency.
21182 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21184 2005-09-01 Robert Dewar <dewar@adacore.com>
21186 * binde.adb: Minor reformatting
21187 (Find_Elab_Order): Output warning if -p used with static elab order
21189 2005-09-01 Robert Dewar <dewar@adacore.com>
21191 * checks.adb (Check_Needed): New procedure, deals with removing checks
21192 based on analysis of short-circuited forms. Also generates warnings for
21193 improper use of non-short-circuited forms.
21196 2005-09-01 Robert Dewar <dewar@adacore.com>
21198 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21201 2005-09-01 Robert Dewar <dewar@adacore.com>
21203 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21205 Implement new insertion char < (conditional warning)
21206 * errutil.adb, erroutc.adb: Implement new insertion char <
21207 (conditional warning).
21208 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21209 (Error_Msg_Warn): New variable for < insertion char.
21210 * prj-nmsc.adb: Implement new errout insertion char < (conditional
21212 (Check_For_Source): Change value of Source_Id only after the current
21213 source has been dealt with.
21215 2005-09-01 Robert Dewar <dewar@adacore.com>
21216 Doug Rupp <rupp@adacore.com>
21218 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21219 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21220 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21221 (Valid_D, Valid_F, Valid_G): New functions
21223 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21224 Hristian Kirtchev <kirtchev@adacore.com>
21225 Javier Miranda <miranda@adacore.com>
21227 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21228 from object notation, the original node is unanalyzed and carries no
21229 semantic information, so that accessiblity checks must be performed on
21230 the type of the actual itself.
21231 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21232 compatibility with Build_Protected_Sub_Specification.
21233 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21234 overloaded primitives.
21235 (Register_Interface_DT_Entry): Use the new name of the formal
21236 the the calls to Expand_Interface_Thunk
21238 * exp_dbug.ads: Augment comments on encoding of protected types to
21239 include the generation of dispatching subprograms when the type
21240 implements at least one interface.
21242 * lib.ads: Extend information in Load_Stack to include whether a given
21243 load comes from a Limited_With_Clause.
21245 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21246 whether a potential circularity is harmless, because it includes units
21247 loaded through a limited_with clause. Extends previous treatment which
21248 did not handle properly arbitrary combinations of limited and
21249 non-limited clauses.
21251 2005-09-01 Nicolas Setton <setton@adacore.com>
21253 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21254 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21255 typ___XB_lowerbound__upperbound.
21257 2005-09-01 Thomas Quinot <quinot@adacore.com>
21259 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21260 dummy access formal for RACW/RAS TypeCode TSS.
21261 (Build_TypeCode_Call): Do not generate dummy null access actual for
21262 calls to the TypeCode TSS.
21264 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21266 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21267 fully qualified name, to distinguish instances with the same local name.
21269 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21272 2005-09-01 Robert Dewar <dewar@adacore.com>
21274 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21277 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21279 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21280 (Free): New deallocation procedure for filter elements
21281 (Close): Deallocate any existing filter for the concerned connection
21283 2005-09-01 Laurent Pautet <pautet@adacore.com>
21285 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21286 position set is provided, we compute one in order to reduce the maximum
21287 length of the keys. This computation first selects a character
21288 position between 1 and the minimum length of the keys in order to
21289 avoid reducing one of the keys to an empty string.
21290 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21291 does not converge. The initialization procedure now comes with a
21292 maximum number of iterations such that when exceeded, an exception is
21293 raised in Compute. The user can initialize this ratio to another value
21295 Reformating and updated headers.
21297 2005-09-01 Javier Miranda <miranda@adacore.com>
21299 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21300 that given an entity T creates and returns an Itype that duplicates the
21301 contents of T. The returned Itype has the null-exclusion
21302 attribute set to True, and its Etype attribute references T
21303 to keep the association between the two entities.
21304 Update copyright notice
21306 * sem_aggr.adb (Check_Can_Never_Be_Null,
21307 Aggregate_Constraint_Checks, Resolve_Aggregate,
21308 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21310 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21312 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21313 Robert Dewar <dewar@adacore.com>
21314 Hristian Kirtchev <kirtchev@adacore.com>
21316 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21319 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21321 Call Set_Result_Definition instead of Set_Subtype_Mark.
21322 (P_Subprogram_Specification): Add parsing of anonymous access result
21323 plus null exclusions. Call Set_Result_Definition instead of
21326 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21327 (P_Access_Type_Definition): Add parsing for an anonymous access result
21328 subtype, plus parsing for null exclusions. Call Set_Result_Definition
21329 instead of Set_Subtype_Mark.
21331 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21332 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21333 (Result_Definition): New function for N_Function_Specifications.
21334 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21335 N_Function_Specification.
21336 (Set_Null_Exclusion_Present): Allow this flag for
21337 N_Function_Specification.
21338 (Set_Result_Definition): New procedure for N_Function_Specifications.
21339 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21340 and N_Function_Specification.
21342 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21343 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21344 Add support for LIMITED NEW for Ada 2005 AI-419
21345 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21346 syntax for anonymous access results.
21347 Replace Subtype_Mark field by Result_Definition in
21348 N_Function_Specification and N_Access_Definition specs.
21349 Add Null_Exclusion_Present to spec of N_Function_Specification.
21350 (Result_Definition): New function for N_Function_Specification and
21351 N_Access_Function_Definition.
21352 (Set_Result_Definition): New procedure for N_Function_Specification and
21353 N_Access_Function_Definition.
21355 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21356 Result_Definition for cases of N_Access_Function_Definition and
21357 N_Function_Specification.
21358 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21360 2005-09-01 Vincent Celier <celier@adacore.com>
21362 * lib-writ.adb: Update Copyright notice
21363 (Write_With_Lines): On platforms where file names are case-insensitive,
21364 record the file names in lower case.
21365 (Write_ALI): For D lines, on platforms where file names are
21366 case-insensitive, record the file names in lower case.
21368 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21369 Emmanuel Briot <briot@adacore.com>
21371 * lib-xref.adb (Output_Overridden_Op): Display information on
21372 overridden operation.
21374 * lib-xref.ads: Add documentation on overridden operations.
21376 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21379 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21380 overriding entity information.
21382 2005-09-01 Vincent Celier <celier@adacore.com>
21384 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21385 including those that are inherited.
21387 2005-09-01 Robert Dewar <dewar@adacore.com>
21389 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21391 * par-prag.adb: Implement new pragma Debug_Policy
21393 * sem_prag.adb Implement new pragma Debug_Policy
21394 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21395 Component_Size attribute specification. Give warning for ignored pragma
21398 * snames.h, snames.ads, snames.adb: Introduce entries in
21399 Preset_Names for Name_Disp_Asynchronous_Select,
21400 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21401 Name_Disp_Timed_Select.
21402 New pragma Debug_Policy
21404 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21406 Switch -gnata also sets Debug_Pragmas_Enabled
21408 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21409 handle an explicit -gnata when compiling predefined files.
21411 2005-09-01 Vincent Celier <celier@adacore.com>
21413 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21414 directories of projects that have no Ada sources.
21416 2005-09-01 Robert Dewar <dewar@adacore.com>
21418 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21419 (makes a difference for wide characters)
21421 * widechar.adb, widechar.ads:
21422 Add Wide_Char_Byte_Count feature to count chars vs bytes
21424 2005-09-01 Thomas Quinot <quinot@adacore.com>
21425 Ed Schonberg <schonberg@adacore.com>
21426 Robert Dewar <dewar@adacore.com>
21428 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21429 'Address attribute reference with an overloaded prefix, use the
21430 location of the prefix (not the location of the attribute reference) as
21431 the error location.
21432 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21433 a function renaming thereof, is a valid prefix for 'Size (where it is
21434 intepreted as a function call).
21435 (Statically_Denotes_Entity): New predicate to determine whether the
21436 prefix of an array attribute can be considered static.
21439 (Eval_Attr): Fix failure to evaluate Component_Size for
21440 unconstrained arrays (resulted in wrong value in packed case, since
21441 back end cannot handle this case)
21443 2005-09-01 Robert Dewar <dewar@adacore.com>
21445 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21446 error msgs for most common cases.
21447 Use new errout insertion char < (conditional warning)
21449 2005-09-01 Javier Miranda <miranda@adacore.com>
21450 Ed Schonberg <schonberg@adacore.com>
21452 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21453 become local to the whole package.
21454 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21455 the package was already analyzed the new algorithm "replaces" the
21456 real entities by the shadow ones. This is required to ensure that
21457 the order of these entities in the homonym chains does not change;
21458 otherwise we can have undefined references at linking time because
21459 in case of conflicts the external name of the entities will have
21460 a suffix that depends on the order of the entities in the chain.
21461 (Remove_Limited_With_Clause): Complementary code that completes the
21462 new algorithm and replaces the shadow entities by the real ones.
21463 (Install_Limited_Withed_Unit): When unchaining entities before the
21464 installation of the shadow entities, only regular entities of the
21465 public part must be taken into account. This is required to
21466 keep this routine in synch with the work done by Remove_Limited_
21468 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21469 even if unit is analyzed, because the analysis of the unit is
21470 idempotent in any case, and the limited view of the unit may have to
21471 be installed for proper visibility.
21472 (Expand_Limited_With_Clause): Even if the unit in the implicit
21473 with_clause has been analyzed already, a limited view of the package
21474 must be built for the current context, if it does not exist yet.
21476 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21477 Javier Miranda <miranda@adacore.com>
21478 Gary Dismukes <dismukes@adacore.com>
21480 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21481 defining entity for the instance body, make a new defining identifier
21482 rather than copying the entity of the spec, to prevent accidental
21483 sharing of the entity list.
21484 (Check_Private_View): When exchanging views of private types, build the
21485 list of exchanged views as a stack, to ensure that on exit the exchanges
21486 are undone in the proper order.
21487 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21488 Restore the compilation environment in case of instantiation_error.
21489 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21490 for an anonymous access result.
21491 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21492 (Formal_Entity): Handle properly the case of a formal package that
21493 denotes a generic package renaming.
21495 2005-09-01 Thomas Quinot <quinot@adacore.com>
21497 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21498 clause if the array aggregate is surrounded by parentheses.
21500 2005-09-01 Cyrille Comar <comar@adacore.com>
21501 Gary Dismukes <dismukes@adacore.com>
21502 Ed Schonberg <schonberg@adacore.com>
21503 Javier Miranda <miranda@adacore.com>
21505 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21507 to check if a type is Constrained in cases related to code generation
21508 (rather than semantic checking) since otherwise we do not generate
21509 similar code for mutable private types depending if their
21510 discriminants are visible or not.
21511 (Check_Abstract_Overriding): Do not complain about failure to override
21512 the primitive operations used in dispatching selects since they will
21513 always be overriden at the freeze point of the type.
21514 (Access_Definition): Separate out handling for resetting the scope
21515 of an anonymous access function result type. Retrieve the scope
21516 of the associated function rather than using Current_Scope, which
21517 does not have a consistent value (depends on whether we're in the
21518 middle of analyzing formal parameters). Add ??? comment about
21519 finding a cleaner way to handle the special cases of scope setting.
21520 (Process_Incomplete_Dependents): A protected operation is never a
21521 dispatching operation (only its wrapper may be).
21522 (Build_Derived_Record_Type): In case of tagged private types that
21523 implement interfaces add derivation of predefined primitive
21525 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21526 by two parameters that are used in case of derivation from abstract
21527 interface types: No_Predefined_Prims is used to avoid the derivation
21528 of predefined primitives from the interface, and Predefined
21529 Prims_Only is used to complete the derivation predefined primitives
21530 in case of private tagged types implementing interfaces.
21531 Fix typo in comments
21532 (Find_Interface_In_Descendant): Protect the frontend against
21533 wrong code with large circularity chains.
21534 (Is_Private_Overriding): Add support for entities overriding interface
21535 subprograms. The test failed because Entities associated with overriden
21536 interface subprograms are always marked as hidden (and used to build
21537 the secondary dispatch table); in this case the overriden entity is
21538 available through the field abstract_interface_alias (cf. override_
21539 dispatching_operation)
21540 (Access_Definition): Set the scope of the type to Current_Scope for the
21541 case of a function with an anonymous access result type.
21542 (Access_Subprogram_Declaration): Handle creation of the type entity for
21543 an access-to-function type with an anonymous access result.
21544 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21545 in handling for N_Access_Function_Definition.
21546 (Analyze_Subtype_Declaration): Modify the text of error message.
21547 (Derived_Type_Declaration): Modify the text of error message.
21548 (Process_Subtype): Modify the text of error message plus cleanup
21549 of one redundant error message.
21550 (Analyze_Component_Declaration): Code cleanup.
21551 (Analyze_Object_Declaration): Code cleanup.
21552 (Analyze_Subtype_Declaration): Propagate the null-exclusion
21553 attribute in case of access types. Code cleanup.
21554 (Array_Type_Declaration): Code cleanup.
21555 (Process_Discriminants): Create the new null-excluding itype
21556 if required. Code cleanup.
21557 (Process_Subtype): Create the new null-excluding itype if
21558 required. Code cleanup.
21559 (Build_Derived_Record_Type): Code cleanup to avoid calling
21560 twice the subprogram derive_subprograms in case of private
21561 types that implement interfaces. In this particular case the
21562 subprogram Complete_Subprograms_Derivation already does the
21563 job associated with the second call.
21565 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21566 conversion to the full view when generating an operation for a
21567 discriminant whose type may currently be private.
21569 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21570 Javier Miranda <miranda@adacore.com>
21572 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21573 V (Obj.F), the rewriting does not involve the indexed component, but
21574 only the selected component itself.
21575 Do not apply the transformation if the analyzed node is an actual of a
21576 call to another subprogram.
21577 (Complete_Object_Operation): Retain the entity of the
21578 dispatching operation in the selector of the rewritten node. The
21579 entity will be used in the expansion of dispatching selects.
21580 (Analyze_One_Call): Improve location of the error message associated
21582 (Analyze_Selected_Component): No need to resolve prefix when it is a
21583 function call, resolution is done when parent node is resolved, as
21585 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21586 when attempting to resolve a call transformed from its object notation.
21587 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21588 of the argument list for each interpretation of the operation.
21589 (Try_Object_Operation): The designated type of an access parameter may
21590 be an incomplete type obtained through a limited_with clause, in which
21591 case the primitive operations of the type are retrieved from its full
21593 (Analyze_Call): If this is an indirect call, and the return type of the
21594 access_to_subprogram is incomplete, use its full view if available.
21596 2005-09-01 Javier Miranda <miranda@adacore.com>
21597 Gary Dismukes <dismukes@adacore.com>
21599 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21600 access types the null-exclusion and access-to-constant attributes must
21602 (Analyze_Return_Statement): When the result type is an anonymous access
21603 type, apply a conversion of the return expression to the access type
21604 to ensure that appropriate accessibility checks are performed.
21605 (Analyze_Return_Type): For the case of an anonymous access result type,
21606 generate the Itype and set Is_Local_Anonymous_Access on the type.
21607 Add ??? placeholder for check to disallow returning a limited object
21608 in Ada 2005 unless it's an aggregate or a result of a function call.
21609 Change calls from Subtype_Mark to Result_Definition.
21610 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21611 Result_Definition in call to Make_Function_Specification.
21612 (Build_Body_To_Inline): Change Set_Subtype_Mark to
21613 Set_Result_Definition.
21614 (Make_Inequality_Operator): Change formal Subtype_Mark to
21615 Result_Definition in call to Make_Function_Specification.
21616 (Process_Formals): Create the new null-excluding itype if required.
21617 (New_Overloaded_Entity): For an entity overriding an interface primitive
21618 check if the entity also covers other abstract subprograms in the same
21619 scope. This is required to handle the general case, that is, overriding
21620 other interface primitives and overriding abstract subprograms inherited
21621 from some abstract ancestor type.
21622 (New_Overloaded_Entity): For an overriding entity that comes from
21623 source, note the operation that it overrides.
21624 (Check_Conformance, Type_Conformant): Addition of one new formal
21625 to skip controlling formals in the analysis. This is used to
21626 handle overloading of abstract interfaces.
21627 (Base_Types_Match): Add missing case for types imported from
21628 limited-with clauses
21629 (New_Overloaded_Entity): Add barrier to protect the use of
21630 the "alias" attribute.
21632 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21634 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21635 verify that the procedure and the entry are mode conformant.
21636 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21637 as a different operator, which is often a cut-and-paste error.
21639 2005-09-01 Javier Miranda <miranda@adacore.com>
21640 Ed Schonberg <schonberg@adacore.com>
21642 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21643 used in controlling parameters exclude null because it is necessary to
21644 read the tag to dispatch, and null has no tag.
21645 (Override_Dispatching_Operation): If the previous operation is inherited
21646 from an interface, it becomes hidden and does not participate in later
21649 2005-09-01 Javier Miranda <miranda@adacore.com>
21650 Ed Schonberg <schonberg@adacore.com>
21651 Gary Dismukes <dismukes@adacore.com>
21653 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21654 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21655 the expander will generate the corresponding run-time check to evaluate
21657 (Resolve_Call): Check for legal type of procedure name or prefix that
21658 appears as a trigger in a triggering alternative.
21659 (Valid_Conversion): If expression is ambiguous and the context involves
21660 an extension of System, remove System.Address interpretations.
21661 (Resolve_Qualified_Expression): Reject the case of a specific-type
21662 qualification applied to a class-wide argument. Enhance comment
21663 to explain checking of Original_Node.
21664 (Resolve_Type_Conversion): The location of the error message was not
21665 general enough to handle the general case and hence it has been removed.
21666 In addition, this patch improves the text of the message.
21667 (Resolve_Type_Conversion): Add missing support for access to interface
21669 (Resolve_Type_Conversion): If the target is a class-wide interface type,
21670 do not expand if the expression is the actual in a call, because proper
21671 expansion will take place when the call itself is expanded.
21672 (Resolve_Allocator): If the context is an unchecked conversion, the
21673 allocator inherits its storage pool, if any, from the target type of
21676 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21677 Javier Miranda <miranda@adacore.com>
21679 * sem_type.adb (Add_One_Interp): If a candidate operation is an
21680 inherited interface operation that has an implementation, use the
21681 implementation to avoid spurious ambiguities.
21682 (Interface_Present_In_Ancestor): In case of concurrent types we can't
21683 use the Corresponding_Record_Typ attribute to look for the interface
21684 because it is set by the expander (and hence it is not always
21685 available). For this reason we traverse the list of interfaces
21686 (available in the parent of the concurrent type).
21687 (Interface_Present_In_Ancestor): Handle entities from the limited view
21689 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21691 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21692 from the list of required components.
21693 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21694 primitive procedure of a limited interface with a controlling first
21696 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21698 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21699 capture if it is generated in the second operand of a short-circuit
21701 Do not capture values for variables with address clauses.
21702 (Is_Object_Reference): Treat a function call as an object reference only
21703 if its type is not Standard_Void_Type.
21705 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21707 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21708 to a variable that is statically known to be constant.
21710 2005-09-01 Geert Bosch <bosch@adacore.com>
21711 Robert Dewar <dewar@adacore.com>
21713 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21714 (VAXGF_Safe_First): Idem.
21716 2005-09-01 Robert Dewar <dewar@adacore.com>
21717 Arnaud Charlet <charlet@adacore.com>
21719 * g-dirope.ads: Minor reformatting
21720 Document that bounds of result of Base_Name match the input index
21722 Add documentation on environment variable syntax for Expand_Path
21724 * gnat_ugn.texi: Update documentation to include mention of -m switches
21725 Document new treatment of wide characters in max line length
21727 Remove -gnatL/-gnatZ switches, no longer used.
21728 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21731 * gnat_rm.texi: Add doc for two argument form of pragma
21732 Float_Representation.
21733 Add documentation for pragma No_Strict_Aliasing
21734 Add note that explicit component clause overrides pragma Pack.
21735 Add documentation of pragma Debug_Policy
21737 2005-09-01 Matthew Heaney <heaney@adacore.com>
21739 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21740 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21741 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21742 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21743 draft (Draft 13, August 2005) of Ada Amendment 1.
21745 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21747 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21748 Note that the platform-specific version of g-soccon.ads for VMS is now
21749 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21750 really is a package spec).
21751 Replace s-taspri-linux.ads by s-taspri-posix.ads
21752 Remove references to s-mastop-x86.adb
21754 * system-vxworks-xscale.ads: Removed, no longer used.
21755 * s-vxwork-xscale.ads: Removed, no longer used.
21757 2005-09-01 Robert Dewar <dewar@adacore.com>
21759 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21760 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21761 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21762 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21763 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21764 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21765 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21766 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21767 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21768 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21769 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21770 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21771 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21772 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21773 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21774 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21775 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21776 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21777 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21778 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21779 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21781 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21785 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21787 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21788 Doug Rupp <rupp@adacore.com>
21790 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21792 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21793 this code in the GNAT run-time.
21795 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21798 * init.c (__gnat_error_handler [many]): Mark "msg" as const
21799 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21801 (__gnat_inside_elab_final_code): Moved here from
21802 Standard_Library and only defined for the compiler.
21803 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21804 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21805 using RTPs because directly vectored Interrupt routines are not
21806 supported on this configuration.
21807 (getpid): Do not redefine this function on VxWorks when using RTPs
21808 because this primitive is well supported by the RTP libraries.
21809 (copy_msg): Correct the code that checks for buffer overflow.
21810 Discovered during code reading.
21812 2005-08-29 Olivier Hainque <hainque@adacore.com>
21814 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21815 a library level mutable variable with an initializer, tell
21816 build_allocator to ignore the initializer's size. It may not be large
21817 enough for all the values that might be assigned to the variable later
21820 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21821 Eric Botcazou <ebotcazou@adacore.com>
21823 * trans.c: Protect < in error msg with quote
21824 Replace GCC_ZCX by Back_End_Exceptions.
21825 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21826 has been sufficiently aligned in the record.
21828 2005-08-15 James E. Wilson <wilson@specifix.com>
21830 * system-linux-alpha.ads: Change ia64 to alpha.
21832 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
21834 * decl.c, utils.c: Fix comment typos.
21836 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
21838 * decl.c, init.c, initialize.c: Fix comment typos.
21840 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
21842 Make CONSTRUCTOR use VEC to store initializers.
21843 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21845 * trans.c (extract_values): Likewise.
21846 * utils.c (convert, remove_conversions): Likewise.
21847 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21848 gnat_build_constructor): Likewise.
21850 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21852 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21854 (compare_field_bitpos): Likewise.
21856 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21858 * utils.c (create_var_decl): Only set DECL_COMMON on
21859 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21860 VAR_OR_FUNCTION_DECL_P.
21862 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
21864 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21867 2005-07-07 Pascal Obry <obry@adacore.com>
21869 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21870 returned type on Windows.
21872 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21875 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21876 exception in this case.
21877 Simplify the code as "Image (Image'Range)" = "Image".
21879 2005-07-07 Vincent Celier <celier@adacore.com>
21881 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21882 the destructor/constructor attributes for <lib>final/<lib>init.
21884 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21886 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
21888 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21889 type if the parameter is not passed by copy but reference by default.
21891 2005-07-07 Javier Miranda <miranda@adacore.com>
21893 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21894 Reimplementation of the support for abstract interface types in order
21895 to leave the code more clear and easy to maintain.
21897 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21898 abstract interface types in order to leave the code clearer and easier
21901 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21902 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21903 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21904 appropriate entry of the secondary dispatch table.
21905 (Make_DT): Add code to inherit the secondary dispatch tables of
21908 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21909 implementing both functionalities by means of a common routine, each
21910 routine has its own code.
21912 2005-07-07 Javier Miranda <miranda@adacore.com>
21914 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21916 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21919 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21922 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21923 use of tag incomplete types.
21925 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21926 give support to tagged incomplete types.
21928 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21929 expression is a discriminant reference and its type is private, as can
21930 happen within a stream operation for a mutable record, use the full
21931 view of the type to resolve the case alternatives.
21932 (Analyze_Assignment): Check wrong dereference of incomplete types.
21934 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21937 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21940 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21941 N_Incomplete_Type_Declaration nodes.
21943 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21944 Tag_Present to give support to tagged incomplete types:
21946 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21949 2005-07-07 Olivier Hainque <hainque@adacore.com>
21952 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21953 definitions for the Unwind wrappers in the compiler case.
21955 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21956 Javier Miranda <miranda@adacore.com>
21958 * par-load.adb (Load): If a child unit is loaded through a limited_with
21959 clause, each parent must be loaded as a limited unit as well.
21961 * sem_ch10.adb (Previous_Withed_Unit): Better name for
21962 Check_Withed_Unit. Return true if there is a previous with_clause for
21963 this unit, whether limited or not.
21964 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21966 (Is_Visible_Through_Renamings): New local subprogram of install_limited
21967 _withed_unit that checks if some package installed through normal with
21968 clauses has a renaming declaration of package whose limited-view is
21969 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21970 of the current Draft document for Ada 2005.
21971 (Analyze_Context): Complete the list of compilation units that
21972 are allowed to contain limited-with clauses. It also contains
21973 checks that were previously done by Install_Limited_Context_Clauses.
21974 This makes the code more clear and easy to maintain.
21975 (Expand_Limited_With_Clause) It is now a local subprogram of
21976 Install_Limited_Context_Clauses, and contains the code that adds
21977 the implicit limited-with clauses for parents of child units.
21978 This functionality was prevously done by Analyze_Context.
21980 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21983 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21984 been erroneously named in a limited-with clause of its own context.
21985 In this case the error has been previously notified by Analyze_Context.
21987 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21989 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21990 generic package that contains local declarations with the same name.
21991 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21993 2005-07-07 Bernard Banner <banner@adacore.com>
21995 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21996 ia64 platform only on platforms that you the GCC unwind library
21997 rather than the system unwind library.
21999 2005-07-07 Thomas Quinot <quinot@adacore.com>
22001 * expect.c: Minor reformatting
22003 2005-07-07 Sergey Rybin <rybin@adacore.com>
22005 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22008 * gnat_ugn.texi: Add description for new gnatpp option
22011 2005-07-04 Thomas Quinot <quinot@adacore.com>
22013 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22014 (Get_Command_Output): New subprogram to launch a process and get its
22015 standard output as a string.
22017 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22018 Olivier Hainque <hainque@adacore.com>
22020 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22021 fetch a code-range descriptor associated with the machine state. On
22022 failure set the machine state's PC to 0; on success, pass the
22023 descriptor to exc_virtual_unwind.
22025 * init.c (Tru64 section): New function __gnat_set_code_loc.
22027 2005-07-04 Vincent Celier <celier@adacore.com>
22029 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22030 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22031 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22032 Remove all auto-initialization code, as this is now done through the
22033 constructor mechanism.
22035 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22036 __gnat_sals_init_using_constructors): New functions.
22038 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22039 Linker_Constructor and Linker_Destructor when switch -a is used.
22041 * bindusg.adb: Add line for new switch -a
22043 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22044 (Gnatbind): When switch -a is used, check if it is allowed
22046 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22048 2005-07-04 Joel Brobecker <brobecker@adacore.com>
22050 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22051 This prevents us from hitting a limitation during the debug info
22052 generation when using stabs.
22053 (Prims_Ptr): Likewise.
22055 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22056 Ed Schonberg <schonberg@adacore.com>
22057 Javier Miranda <miranda@adacore.com>
22059 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22060 N_Object_Declaration, only perform the checks if the Object_Definition
22061 is not an Access_Definition.
22063 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22064 where the parent of an the access definition is an N_Object_Declaration
22065 when determining the Associated_Node_For_Itype and scope of an
22066 anonymous access-to-subprogram type.
22068 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22069 Corresponding_Spec on the body created for a null procedure. Add ???
22070 comment. Remove New_Copy_Tree call on body argument to
22071 Set_Body_To_Inline.
22073 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22074 discriminants, use the type of the actual as well, because the
22075 discriminants may be read by the called subprogram.
22077 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22078 access type we do not need to handle non-limited views.
22079 (Build_Derived_Record_Type): Additional check to check that in case of
22080 private types, interfaces are only allowed in private extensions.
22082 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22084 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22085 <Pragma_Linker_Destructor>: Likewise.
22087 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22088 Pragma_Linker_Destructor.
22090 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22091 ATTR_LINK_DESTRUCTOR.
22092 (static_ctors, static_dtors): New variables.
22094 * misc.c (gnat_expand_body): Output current function as constructor
22095 and destructor if requested.
22097 * par-prag.adb: Add processing for pragma Linker_Constructor and
22100 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22101 extracted from Check_Interrupt_Or_Attach_Handler.
22102 (Check_Interrupt_Or_Attach_Handler): Invoke it.
22103 Implement pragma Linker_Constructor and Linker_Destructor with the
22104 help of Find_Unique_Parameterless_Procedure.
22105 Replace Name_Alias with Name_Target for pragma Linker_Alias.
22107 * snames.h, snames.ads, snames.adb:
22108 Add Name_Linker_Constructor and Name_Linker_Destructor.
22109 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22110 * snames.adb: Remove Name_Alias.
22112 * trans.c: Include cgraph.h.
22113 (build_global_cdtor): New function.
22114 (Compilation_Unit_to_gnu): Build global constructor and destructor if
22116 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22118 (addressable_p) <COMPONENT_REF>: Unconditionally test
22119 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22121 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22122 variable if it is external.
22124 (static_ctors, static_dtors): New global variables.
22125 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22126 <ATTR_LINK_DESTRUCTOR>: Likewise.
22127 (end_subprog_body): Chain function as constructor and destructor
22130 * exp_util.adb (Force_Evaluation): Unconditionally invoke
22131 Remove_Side_Effects with Variable_Ref set to true.
22132 (Remove_Side_Effects): Handle scalar types first. Use a renaming
22133 for non-scalar types even if Variable_Ref is true and for class-wide
22136 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22138 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22139 to prevent spurious warnings.
22141 2005-07-04 Thomas Quinot <quinot@adacore.com>
22143 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22144 Itypes. Itypes are really unexpected there.
22145 (Build_TypeCode_Function): Generalise special processing for Itypes to
22146 handle the case of numeric implicit base types as well as enumerated
22149 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22151 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22152 controlled, indicate the expected type of the dereference that is
22153 created for the call to Deep_Finalize, to prevent spurious errors when
22154 the designated type is private and completed with a derivation from
22155 another private type.
22157 2005-07-04 Vincent Celier <celier@adacore.com>
22159 * make.adb (Change_To_Object_Directory): When unable to change the
22160 current dir to the object directory, output the full path of the
22163 2005-07-04 Matthew Gingell <gingell@adacore.com>
22165 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22167 * indepsw-linux.adb: Replace by...
22169 * indepsw-gnu.adb: ...this new file
22171 2005-07-04 Vincent Celier <celier@adacore.com>
22173 * mlib-prj.adb (Auto_Initialize): New constant String
22174 (SALs_Use_Constructors): New Boolean function
22175 (Build_Library): Call gnatbind with Auto_Initialize switch when
22176 SALs_Use_Constructors returns True.
22178 * mlib-tgt.ads: Minor reformatting
22180 * mlib-utl.ads: Minor reformatting
22182 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22184 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22186 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22187 single protected declarations can have an interface list.
22188 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22189 with seriously malformed entry declarations, and lead to compilation
22190 abandoned messages.
22192 2005-07-04 Javier Miranda <miranda@adacore.com>
22194 * par-load.adb: Load the context items in two rounds.
22196 2005-07-04 Robert Dewar <dewar@adacore.com>
22198 * scng.adb: Do not consider Mod used as an attribute to be a keyword
22200 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22201 Javier Miranda <miranda@adacore.com>
22203 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22204 type extension needs a limited view.
22205 Remove previous restriction on private types available through the
22206 limited-view (only tagged private types were previously allowed).
22207 (Install_Withed_Unit): In the code that implements the
22208 legality rule given in AI-377, exclude a child unit with the name
22209 Standard, because it is a homonym of the Standard environment package.
22211 2005-07-04 Thomas Quinot <quinot@adacore.com>
22213 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22214 overloaded function call, carry interpretations from the original tree
22217 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22219 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22220 types check whether some designated type is a limited view, and use
22221 the non-limited view if available.
22223 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22225 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22226 constraint of full view of a private view T1 if present, when T2 is a
22227 discriminated full view.
22229 2005-07-04 Thomas Quinot <quinot@adacore.com>
22231 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22232 actual that is a view conversion of a bit packed array reference.
22234 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22236 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22237 present before checking whether an interface type covers a synchronized
22240 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22242 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22243 whose prefix is an implicit dereference is an object reference. Removes
22244 spurious errors when compiling with -gnatc.
22246 2005-07-04 Robert Dewar <dewar@adacore.com>
22249 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22251 2005-07-04 Matthew Gingell <gingell@adacore.com>
22253 * tracebak.c: Enable tracebacks on ia64 platforms
22255 2005-07-04 Vincent Celier <celier@adacore.com>
22257 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22258 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22259 the -L or -n switches.
22261 2005-07-04 Vincent Celier <celier@adacore.com>
22263 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22264 correctly computed and the main project data is not modified while
22266 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22267 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22268 c++linker as this does not work on some platforms.
22270 2005-07-04 Matthew Heaney <heaney@adacore.com>
22272 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22274 * a-coinve.adb: Perform constraint checks explicitly.
22276 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22277 Thomas Quinot <quinot@adacore.com>
22279 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22280 new target gen-soccon.
22282 2005-07-04 Robert Dewar <dewar@adacore.com>
22284 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22286 2005-07-04 Thomas Quinot <quinot@adacore.com>
22288 * g-socket.ads (Check_Selector): Minor rewording of comment.
22290 2005-07-04 Vincent Celier <celier@adacore.com>
22292 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22294 2005-07-04 Thomas Quinot <quinot@adacore.com>
22296 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22298 2005-07-04 Sergey Rybin <rybin@adacore.com>
22300 * gnat_ugn.texi: Add description of --eol gnatpp option
22302 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22303 Thomas Quinot <quinot@adacore.com>
22305 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22306 if the user wants all calls of a subprogram to be flagged,
22307 independently of whether they are made from within the same unit or
22309 Mention restriction for pragma Linker_Alias on some platforms.
22310 Document pragma Linker_Constructor and Linker_Destructor.
22311 Rewrite documentation of Weak_External, Linker_Section and
22312 Linker_Alias pragmas.
22314 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22316 * s-stausa.ads, s-stausa.adb: New files.
22318 2005-06-30 Kelley Cook
22320 * all files: Update FSF address in copyright headers.
22321 * gen-soccon.co (main): Output new FSF address in generated files.
22323 2005-06-28 Paul Brook <paul@codesourcery.com>
22325 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22327 2005-06-14 Olivier Hainque <hainque@adacore.com>
22328 Eric Botcazou <ebotcazou@adacore.com>
22330 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22331 exc_unwind, now that we are generating proper .debug_frame output for
22334 * tracebak.c: Remove the mips-irix section, as we are now using the
22335 s-mastop based unwinder again.
22336 Under SPARC/Solaris, take into account the stack bias to compute the
22337 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
22340 2005-06-14 Doug Rupp <rupp@adacore.com>
22342 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22344 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22346 2005-06-14 Pascal Obry <obry@adacore.com>
22348 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22349 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22350 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22353 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22354 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22355 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22356 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22357 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22358 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22359 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22360 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22361 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22362 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22363 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22364 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22365 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22366 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22367 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22368 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22369 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22370 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22371 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22372 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22373 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22374 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22375 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22376 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22377 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22378 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22379 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22380 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22381 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22382 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22383 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22384 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22385 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22386 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22387 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22388 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22389 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22390 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22391 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22392 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22393 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22394 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22395 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22396 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22397 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22398 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22399 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22400 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22401 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22402 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22403 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22404 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22405 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22406 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22407 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22408 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22409 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22410 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22411 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22412 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22413 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22414 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22415 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22416 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22417 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22418 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22419 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22420 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22421 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22422 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22423 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22424 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22425 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22426 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22427 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22428 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22429 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22430 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22431 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22432 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22433 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22434 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22435 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22436 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22437 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22438 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22439 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22440 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22441 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22442 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22443 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22444 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22445 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22446 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22447 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22448 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22449 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22450 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22451 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22452 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22453 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22454 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22455 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22456 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22457 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22458 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22459 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22460 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22461 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22462 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22463 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22464 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22465 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22466 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22467 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22468 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22469 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22470 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22471 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22472 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22473 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22474 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22475 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22476 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22477 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22478 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22479 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22480 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22481 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22482 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22483 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22484 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22485 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22487 2005-06-14 Jose Ruiz <ruiz@adacore.com>
22488 Arnaud Charlet <charlet@adacore.com>
22490 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22491 longer protected objects. They have been replaced by lower-level
22492 suspension objects made up by a mutex and a condition variable (or
22493 their equivalent given a particular OS) plus some internal data to
22494 reflect the state of the suspension object.
22495 (Initialize, Finalize): Add this initialization procedure for
22496 Suspension_Object, which is a controlled type.
22497 (Finalize): Add the finalization procedure for Suspension_Object,
22498 which is a controlled type.
22500 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22501 Ada.Synchronous_Task_Control because there is no longer a need for a
22502 VxWorks specific version of this package. Target dependencies
22503 has been moved to System.Task_Primitives.Operations.
22505 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22507 (InitializeCriticalSection, EnterCriticalSection,
22508 LeaveCriticalSection, DeleteCriticalSection): Replace the type
22509 pCriticalSection by an anonymous access type so that we avoid problems
22510 of accessibility to local objects.
22512 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22513 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22514 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22515 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22516 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22517 set the environment task mask here.
22518 (Current_State): Add this function that returns the state of the
22520 (Set_False): Add this procedure that sets the state of the suspension
22522 (Set_True): Add this procedure that sets the state of the suspension
22523 object to True, releasing the task that was suspended, if any.
22524 (Suspend_Until_True): Add this procedure that blocks the calling task
22525 until the state of the object is True. Program_Error is raised if
22526 another task is already waiting on that suspension object.
22527 (Initialize): Add this procedure for initializing the suspension
22528 object. It initializes the mutex and the condition variable which are
22529 used for synchronization and queuing, and it sets the internal state
22531 (Finalize): Add this procedure for finalizing the suspension object,
22532 destroying the mutex and the condition variable.
22534 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22535 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22536 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22537 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22538 which provides a low-level abstraction (using operating system
22539 primitives) for Ada.Synchronous_Task_Control.
22540 This object is made up by a mutex (for ensuring mutual exclusion), a
22541 condition variable (for queuing threads until the condition is
22542 signaled), a Boolean (State) indicating whether the object is open,
22543 and a Boolean (Waiting) reflecting whether there is a task already
22544 suspended on this object.
22546 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22547 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22548 s-intman-vms.ads, s-intman-mingw.adb,
22549 (Initialize_Interrupts): Removed, no longer used.
22551 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22552 (Setup_Interrupt_Mask): New procedure.
22554 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
22556 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22558 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22559 this is no longer done in the body of s-taprop
22560 (Server_Task): Explicitely test for Pending_Action in case
22561 System.Parameters.No_Abort is True.
22563 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22564 is no longer done in the body of s-taprop
22566 2005-06-14 Robert Dewar <dewar@adacore.com>
22568 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22569 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22570 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22571 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22572 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22573 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22574 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22575 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22576 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22577 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22578 system-linux-hppa.ads, system-vms_64.ads,
22579 system-vxworks-alpha.ads: Minor comment update for
22580 AI-362 (unit is Pure).
22582 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22583 Add pragma Pure_05 for AI-362
22584 Make remaining conversion functions obsolescent in Ada 95
22586 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22587 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22588 Add entries for a-wichun and a-zchuni
22589 Add a-widcha a-zchara for AI-395
22590 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22592 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22593 Add entries for a-wichun.o and a-zchuni.o
22594 Entries for a-widcha.o and a-zchara.o
22595 Add entry for a-chacon.o
22597 * a-ztenau.adb: Add with of Ada.Characters.Conversions
22599 * a-chacon.ads, a-chacon.adb: New files.
22601 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22602 categorization violations.
22604 * a-strmap.ads: Add pragma Pure_05 for AI-362
22605 * a-strmap.ads: Add note on implicit categorization for AI-362
22607 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22609 * par-prag.adb: Dummy entry for pragma Persistent_BSS
22610 Set Ada_Version_Explicit, for implementation of AI-362
22611 Add processing for pragma Pure_05 and Preelaborate_05
22612 Add entry for Assertion_Policy pragma
22614 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22615 when needed for proper processing of categorization stuff
22618 For several cases, make errors in preealborate units warnings,
22619 instead of errors, if GNAT_Mode is set. For AI-362.
22621 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22622 preelaborate unit is now warning if in GNAT mode
22624 * s-stoele.ads: Document AI-362 for pragma preelaborate
22626 2005-06-14 Doug Rupp <rupp@adacore.com>
22628 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22629 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22630 Default_Exception_Msg_Max_Length: new parameter.
22632 * a-except.ads: (Exception_Msg_Max_Length): Set to
22633 System.Parameters.Default_Exception_Msg_Max_Length
22634 Add pragma Preelaborate_05 for AI-362
22635 Add warnings off to allow categorization violations for AI-362
22637 2005-06-14 Vincent Celier <celier@adacore.com>
22639 * gnatsym.adb: Adapt to modification of package Symbols: procedure
22640 Process is now in package Processing.
22642 * symbols.ads, symbols.adb:
22643 (Processing): New package, containing procedure Process
22645 * symbols-vms-alpha.adb:
22646 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22648 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22649 symbols-processing-vms-ia64.adb: New files.
22651 2005-06-14 Pascal Obry <obry@adacore.com>
22653 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22654 implementation. This new version generates the proper DllMain routine
22655 to initialize the SAL. The DllMain is generated in Ada and compiled
22656 before being added as option to the library build command.
22658 2005-06-14 Doug Rupp <rupp@adacore.com>
22659 Pascal Obry <obry@adacore.com>
22661 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22662 call to decc$translate_vms.
22663 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22664 need to remove those quotes before catenating the filename.
22665 (__gnat_locate_exec_on_path): improvements to the Win32 section:
22666 * avoid allocating the memory twice for better efficiency;
22667 * allocate 32K buffer for environment expansion as suggested by MSDN;
22668 * prepend ".;" to the path so that current directory is searched too.
22670 2005-06-14 Robert Dewar <dewar@adacore.com>
22672 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22673 instead of raising CE (AI-241)
22674 Add warnings off to allow categorization violations for AI-362
22676 2005-06-14 Robert Dewar <dewar@adacore.com>
22678 * ali-util.adb, gnatbind.adb: Remove references to
22679 Force_RM_Elaboration_Order.
22681 * switch-b.adb: Remove recognition of -f switch
22683 2005-06-14 Pascal Obry <obry@adacore.com>
22685 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22686 implementation which is slightly more efficient.
22688 2005-06-14 Gary Dismukes <dismukes@adacore.com>
22689 Javier Miranda <miranda@adacore.com>
22690 Ed Schonberg <schonberg@adacore.com>
22691 Hristian Kirtchev <kirtchev@adacore.com>
22693 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22694 allocator's designated type is a class-wide type, and compiling for
22695 Ada 2005, emit a run-time check that the accessibility level of the
22696 type given in the allocator's expression is not deeper than the level
22697 of the allocator's access type.
22699 (Tagged_Membership): Modified to gives support to abstract interface
22702 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22704 (Descendant_Tag): New predefined function
22705 (Is_Descendant_At_Same_Level): New predefined function
22706 (Get_Access_Level): New private function
22707 (Set_Access_Level): New private procedure
22708 (IW_Membership): New function. Given the tag of an object and the tag
22709 associated with an interface, evaluate if the object implements the
22711 (Register_Interface_Tag): New procedure used to initialize the table of
22712 interfaces used by the IW_Membership function.
22713 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22714 of the dispatch table.
22715 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22716 table of interfaces of the parent.
22717 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22718 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22719 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22720 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22721 Ada 2005 semantics for the new predefined function.
22723 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22724 call to Descendant_Tag rather than Internal_Tag.
22725 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22726 the accessibility level of the attribute's Item parameter is not deeper
22727 than the level of the attribute's prefix type. Tag_Error is raised if
22728 the check fails. The check is only emitted for Ada_05.
22729 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22730 requested stream attribute, use it.
22731 (Expand_N_Attribute_Reference): If the designated type is an interface
22732 then rewrite the referenced object as a conversion to force the
22733 displacement of the pointer to the secondary dispatch table.
22734 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22735 is a dereference of an object with a constrained partial view.
22737 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22738 type is a class-wide type, emit a run-time check that the accessibility
22739 level of the returned object is not deeper than the level of the
22740 function's master (only when compiling for Ada 2005).
22742 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22743 Action_Nb_Arg): Add entries for new Get_Access_Level and
22744 Set_Access_Level routines in these tables.
22745 (Make_DT): Generate a call to set the accessibility level of the
22746 tagged type in its TSD.
22747 (Make_DT): Code cleanup. The functionality of generating all the
22748 secondary dispatch tables has been moved to freeze_record_type.
22749 (Make_Abstract_Interface_DT): Minor code cleanup.
22750 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22751 this subprogram implements a new algorithm that provides the
22752 same functionality and it is more clear in case of primitives
22753 associated with abstract interfaces.
22754 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22755 clean up, the functionality of this subprogram is now provided
22756 by Set_All_DT_Position.
22757 (Write_DT): New subprogram: a debugging procedure designed to be called
22758 within gdb to display the dispatch tables associated with a tagged
22760 (Collect_All_Interfaces): New subprogram that collects the whole list
22761 of interfaces that are directly or indirectly implemented by a tagged
22763 (Default_Prim_Op_Position): New subprogram that returns the fixed
22764 position in the dispatch table of the default primitive operations.
22765 (Expand_Interface_Actuals): New subprogram to generate code that
22766 displaces all the actuals corresponding to class-wide interfaces to
22767 reference the interface tag of the actual object.
22768 (Expand_Interface_Conversion): New subprogram. Reference the base of
22769 the object to give access to the interface tag associated with the
22770 secondary dispatch table.
22771 (Expand_Interface_Thunk): New subprogram that generates the code of the
22772 thunk. This is required for compatibility with the C+ ABI.
22773 (Make_Abstract_Interface_DT): New subprogram that generate the
22774 declarations for the secondary dispatch tables associated with an
22775 abstract interface.
22776 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22777 attribute for each primitive operation covering interface subprograms
22778 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22779 These subprograms were upgraded to give support to abstract interfaces
22781 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22782 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22783 RE_Set_Access_Level.
22784 (RE_Unit_Table): Add entries for new Ada.Tags operations.
22785 Add support to call the followig new run-time subprograms:
22786 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22788 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22789 match its full declaration when both have an access definition with
22790 statically matching designated subtypes.
22791 (Analyze_Component_Declaration): Delete commented out code that was
22792 incorrectly setting the scope of an anonymous access component's type.
22793 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22794 an access discriminant when the containing type is nonlimited.
22795 (Make_Incomplete_Type_Declaration): Create an incomplete type
22796 declaration for a record type that includes self-referential access
22798 (Check_Anonymous_Access_Types): Before full analysis of a record type
22799 declaration, create anonymous access types for each self-referential
22801 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22802 an access component in this context is a Local_Anonymous_Access, for
22803 proper accessibility checks.
22804 (Access_Definition): Set properly the scope of the anonymous access type
22805 created for a stand-alone access object.
22806 (Find_Type_Of_Object): An object declaration may be given with an access
22808 (Complete_Subprograms_Derivation): New subprogram used to complete
22809 type derivation of private tagged types implementing interfaces.
22810 In this case some interface primitives may have been overriden
22811 with the partial-view and, instead of re-calculating them, they
22812 are included in the list of primitive operations of the full-view.
22813 (Build_Derived_Record_Type): Modified to give support to private
22814 types implemening interfaces.
22815 (Access_Definition): Reject ALL on anonymous access types.
22816 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22817 type derivation to occur at a deeper accessibility level than the
22819 For the case of derivation within a generic body however, disallow the
22820 derivation if the derived type has an ancestor that is a formal type
22821 declared in the formal part of an enclosing generic.
22822 (Analyze_Object_Declaration): For protected objects, remove the check
22823 that they cannot contain interrupt handlers if not declared at library
22825 (Add_Interface_Tag_Components): New subprogram to add the tag components
22826 corresponding to all the abstract interface types implemented by a
22827 record type or a derived record type.
22828 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22829 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22830 Process_Full_View, Record_Type_Declaration): Modified to give
22831 support to abstract interface types
22832 (Collect_Interfaces): New subprogram that collects the list of
22833 interfaces that are not already implemented by the ancestors
22834 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22835 when partial view has no discriminants and full view has defaults.
22836 (Constrain_Access): Reject a constraint on a general access type
22837 if the discriminants of the designated type have defaults.
22838 (Access_Subprogram_Declaration): Associate the Itype node with the inner
22839 full-type declaration or subprogram spec. This is required to handle
22840 nested anonymous declarations.
22841 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22842 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22843 Process_Full_View, Record_Type_Declaration): Modified to give
22844 support to abstract interface types
22845 (Derive_Subprograms): Addition of a new formal to indicate if
22846 we are in the case of an abstact-interface derivation
22847 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22848 to the specification because it is requied to analyze all the
22849 identifiers found in a list of interfaces
22851 * debug.adb: Complete documentation of flag "-gnatdZ"
22853 * exp_ch3.adb: Implement config version of persistent_bss pragma
22854 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22855 testing for TSS presence to properly enforce visibility rules.
22856 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22857 Make_Abstract_Interfaces_DT to generate the secondary tables
22858 associated with abstract interfaces.
22859 (Build_Init_Procedure): Modified to initialize all the tags
22861 (Component_Needs_Simple_Initialization): Similar to other tags,
22862 interface tags do not need initialization.
22863 (Freeze_Record_Type): Modified to give support to abstract interface
22865 (Expand_N_Object_Declaration): Do not generate an initialization for
22866 a scalar temporary marked as internal.
22868 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22869 in-out parameter that is a component in an initialization procedure,
22870 whose constraint might depend on discriminants, and that may be
22871 misaligned because of packing or representation clauses.
22872 (Is_Legal_Copy): New predicate to determine whether a possibly
22873 misaligned in-out actual can actually be passed by copy/return. This
22874 is an error in case the type is by_reference, and a warning if this is
22875 the consequence of a DEC import pragma on the subprogram.
22876 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22878 (Expand_Inlined_Call): Mark temporary generated for the return value as
22879 internal, so that no useless scalar normalization is generated for it.
22880 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22881 null procedure can always be inlined.
22882 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22883 procedure, generate an explicit empty body for it.
22885 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22886 Given a type implementing an interface, returns the corresponding
22887 access_disp_table value.
22888 (Find_Interface_Tag): New subprogram. Given a type implementing an
22889 interface, returns the record component containing the tag of the
22891 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22892 previous ones that return the corresponding tag and access_disp_table
22894 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22895 is a predefined primitive operation.
22896 (Expand_Subtype_From_Expr): If the expression is a selected component
22897 within an initialization procedure, compute its actual subtype, because
22898 the component may depend on the discriminants of the enclosing record.
22900 * i-cpp.ads, i-cpp.adb:
22901 This package has been left available for compatibility with previous
22902 versions of the frontend. As part of the new layout this is now a
22903 dummy package that uses declarations available at a-tags.ads
22905 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22906 "constant access" and "aliased [constant] access" when not compiling
22908 Suppress Ada 2005 keyword warning if -gnatwY used
22909 (P_Identifier_Declarations): Add support for object declarations with
22910 access definitions.
22911 (Private_Extension_Declaration): Complete the documentation
22912 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22913 attribute in case of private extension declaration
22914 (P_Type_Declaration): Mark as "abstract" the type declarations
22915 corresponding with protected, synchronized and task interfaces
22916 (P_Declarative_Items): "not" and "overriding" are overriding indicators
22917 for a subprogram or instance declaration.
22919 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22920 instantiation that is a dispatching operation has controlling access
22921 parameters that are null excluding.
22922 Save and restore Ada_Version_Explicit, for implementation of AI-362
22923 (Validate_Derived_Type_Instance): Add check for abstract interface
22925 (Analyze_Formal_Package): Establish Instantiation source for the copy of
22926 the generic that is created to represent the formal package.
22927 (Analyze_Package_Instantiation): Instantiate body immediately if the
22928 package is a predefined unit that contains inlined subprograms, and
22929 we are compiling for a Configurable_Run_Time.
22930 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22931 If the program has a null default, generate an empty body for it.
22933 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22934 error message condition, null procedures are correctly detected now.
22935 (New_Overloaded_Entity): Bypass trivial overriding indicator check
22936 for subprograms in the context of protected types. Instead, the
22937 indicator is examined in Sem_Ch9 while analysing the subprogram
22939 (Check_Overriding_Indicator): Check consistency of overriding indicator
22940 on subprogram stubs as well.
22941 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22943 (Analize_Subprogram_Specification): When analyzing a subprogram in which
22944 the type of the first formal is a concurrent type, replace this type
22945 by the corresponding record type.
22946 (Analyze_Subprogram_Body): Undo the previous work.
22947 (Analyze_Procedure_Call): If the call has the form Object.Op, the
22948 analysis of the prefix ends up analyzing the call itself, after which
22950 (Has_Interface_Formals): New subprogram subsidiary to analyze
22951 subprogram_specification that returns true if some non
22952 class-wide interface subprogram is found
22953 (New_Overloaded_Entity): Modified to give support to abstract
22955 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22956 access to subprograms must be recursive.
22957 (Is_Unchecked_Conversion): Improve the test that recognizes
22958 instantiations of Unchecked_Conversion, and allows them in bodies that
22959 are to be inlined by the front-end. When the body comes from an
22960 instantiation, a reference to Unchecked_Conversion will be an
22961 Expanded_Name, even though the body has not been analyzed yet.
22962 Replace Is_Overriding and Not_Overriding in subprogram_indication with
22963 Must_Override and Must_Not_Override, to better express intent of AI.
22964 (Analyze_Subprogram_Body): If an overriding indicator is given, check
22965 that it is consistent with the overrinding status of the subprogram
22967 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22969 If the subprogram is a null procedure, indicate that it does not need
22972 * sem_disp.adb (Check_Controlling_Type): Give support to entities
22973 available through limited-with clauses.
22974 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22975 allowed as the last primitive of a tagged type if it has no previous
22977 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22978 to give support to abstract interface types
22980 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22981 in the case where the target type is an anonymous access type of an
22982 object or component (that is, when Is_Local_Anonymous_Access is true).
22983 Prevent the special checks for conversions of access discriminants in
22984 the case where the discriminant belongs to a nonlimited type, since
22985 such discriminants have their accessibility level defined in the same
22986 way as a normal component of an anonymous access type.
22987 (Resolve_Allocator): When an allocator's designated type is a class-wide
22988 type, check that the accessibility level of type given in the
22989 allocator's expression or subtype indication is not statically deeper
22990 than the level of the allocator's access type.
22991 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22992 name in a discriminant constraint of a record component.
22993 (Resolve_Explicit_Dereference): Do not check whether the type is
22994 incomplete when the dereference is a use of an access discriminant in
22995 an initialization procedure.
22996 (Resolve_Type_Conversion): Handle conversions to abstract interface
22998 (Valid_Tagged_Conversion): The conversion of a tagged type to an
22999 abstract interface type is always valid.
23000 (Valid_Conversion): Modified to give support to abstract interface types
23001 (Resolve_Actuals): Enable full error reporting on view conversions
23002 between unrelated by_reference array types.
23003 The rule for view conversions of arrays with aliased components is
23004 weakened in Ada 2005.
23005 Call to obsolescent subprogram is now considered to be a violation of
23006 pragma Restrictions (No_Obsolescent_Features).
23007 (Check_Direct_Boolean_Operator): If the boolean operation has been
23008 constant-folded, there is nothing to check.
23009 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23010 check on possible violation of restriction No_Direct_Boolean_Operators
23011 until after expansion of operands, to prevent spurious errors when
23012 operation is constant-folded.
23014 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23015 Has_Compatible_Type): Modified to give support to abstract interface
23017 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23018 of a given type implements a given interface
23020 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23021 prefix is a parameterless function that returns an access_to_procedure.
23022 (Transform_Object_Operation): Handle properly function calls of the
23023 form Obj.Op (X), which prior to analysis appear as indexed components.
23024 (Analyze_One_Call): Complete the error notification to help new Ada
23026 (Analyze_Allocator): For an allocator without an initial value, where
23027 the designated type has a constrained partial view, a discriminant
23028 constraint is illegal.
23030 2005-06-14 Robert Dewar <dewar@adacore.com>
23032 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23033 do with treatment of Set_Col when positioned at end of line character.
23035 2005-06-14 Robert Dewar <dewar@adacore.com>
23037 * atree.adb: (Elist*): Protect against uninitialized field
23039 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23041 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23042 for an attribute reference that returns an access type.
23043 (Apply_Discriminant_Check): No need for check if (designated) type has
23044 constrained partial view.
23046 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23047 both bound checks, rather than a conjunction.
23048 (Insert_Valid_Check): If the expression is an actual that is an indexed
23049 component of a bit-packed array, force expansion of the packed element
23050 reference, because it is specifically inhibited elsewhere.
23052 2005-06-14 Vincent Celier <celier@adacore.com>
23054 * clean.adb (Clean_Project): Correctly delete executable specified as
23055 absolute path names.
23057 * make.adb (Gnatmake): Allow relative executable path names with
23058 directory information even when project files are used.
23059 (Change_To_Object_Directory): Fail gracefully when unable to change
23060 current working directory to object directory of a project.
23061 (Gnatmake): Remove exception handler that could no longer be exercized
23062 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23063 may be deallocated by Normalize_Arguments.
23064 (Collect_Arguments): Eliminate empty arguments
23066 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23067 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23068 (Check_Project): Return False when Project is No_Project. Return True
23069 when All_Projects is True.
23070 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23071 All_Projects to True.
23074 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23075 Javier Miranda <miranda@adacore.com>
23076 Thomas Quinot <quinot@adacore.com>
23077 Robert Dewar <dewar@adacore.com>
23078 Hristian Kirtchev <kirtchev@adacore.com>
23079 Gary Dismukes <dismukes@adacore.com>
23081 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23082 anonymous access types, to indicate that the accessibility level of
23083 the type is determined by that of the enclosing declaration.
23084 (Has_Persistent_BSS): New flag
23085 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23086 of this attribute with functions.
23087 (Is_Primitive_Wrapper): Remove the barrier.
23088 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23089 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23091 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23092 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23094 (Is_Pure_Unit_Access_Type): New flag
23095 (Abstract_Interfaces): Complete the assertion to cover all usages.
23096 (Set_Is_Interface): Complete the assertion to cover all usages.
23097 (Is_Primitive_Wrapper): New attribute.
23098 (Is_Obsolescent): Now applies to all entities (though it is only set
23099 for subprograms currently)
23100 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23101 which solves various problems concerning access subtypes.
23102 (Has_Persistent_BSS): New flag
23103 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23104 Remove these subprograms because this attribute is currently
23107 Has_Specified_Stream_Input (Flag190)
23108 Has_Specified_Stream_Output (Flag191)
23109 Has_Specified_Stream_Read (Flag192)
23110 Has_Specified_Stream_Write (Flag193)
23111 Present in all type and subtype entities. Set for a given view if the
23112 corresponding stream-oriented attribute has been defined by an
23113 attribute definition clause. When such a clause occurs, a TSS is set
23114 on the underlying full view; the flags are used to track visibility of
23115 the attribute definition clause for partial or incomplete views.
23116 (Is_Pure_Unit_Access_Type): New flag
23117 Clarify use of Is_Internal.
23118 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23119 internally generated to wrap the invocation of tasks and protected
23120 types that implement interfaces.
23121 (Implementation_Base_Type): Documentation correction
23122 (Is_Obsolescent): Now applies to all entities (though it is only set
23123 for subprograms currently)
23124 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23125 which solves various problems concerning access subtypes.
23127 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23128 for examined parameters. Identify unequal parameter list lengths as
23129 non-conformant parameters.
23130 (Overriding_Possible): Do not check for "All" qualifier in declaration
23131 of controlling access parameter, following prescription of AI-404.
23132 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23133 that build the procedure body that wraps an entry invocation
23134 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23135 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23136 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23137 give support to abstract interface types
23139 * freeze.adb (Freeze_Entity): Issue error message if
23140 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23141 type has no storage pool (Ada 2005) AI-366.
23142 Also modified to give support to abstract interface types
23143 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23144 Inline_Always pragma.
23146 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23147 now begin an entry declaration.
23148 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23149 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23150 a subprogram declaration preceded by an overriding indicator.
23151 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23152 declarations or subprogram declarations preceded by reserved words
23153 "not" or "overriding".
23154 (P_Entry_Declaration): Update comment. Parse and check overriding
23155 indicator, set semantic flags of entry declarations.
23156 (P_Task): New error message in case of private applied
23157 to a task type declaration.
23158 (P_Protected): New error message in case of private applied
23159 to a task type declaration.
23161 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23162 in which the full view of a type implementing an interface is a
23164 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23165 Declare_Inherited_Private_Subprograms): If an explicit operation
23166 overrides an operation that is inherited in the private part, mark the
23167 explicit one as overriding, to enable overriding indicator checks.
23168 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23169 full view to partial view, to simplify handling in back-end.
23171 * sprint.adb: Print interface lists where needed: derived types,
23172 protected types, task types.
23173 output "is null" for null procedures. Part of implementation of
23175 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23176 relaxation of rules for access types in pure, shared passive partitions.
23178 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23179 first read discriminants into temporary objects, performing checks on
23180 the read values, then possibly performing discriminant checks on the
23181 actual (if it is constrained), and only finally reading the components
23182 into a constrained temporary object.
23183 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23184 case of reading discriminants of a mutable record type to recognize
23185 the new form of the code generated by
23186 Build_Mutable_Record_Read_Procedure.
23188 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23189 of a simple call to Make_TSS_Name.
23190 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23191 buffer, in order for Is_TSS to work correctly on local TSS names.
23193 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23194 Is_Local_Anonymous_Access to check legaliy of attributes in the
23195 context of access components and stand-alone access objects.
23196 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23197 treated as available for a limited private type if there is an
23198 attribute_definition_clause that applies to its full view, but not in
23199 other cases where the attribute is available for the full view
23200 (specifically, the sole fact that the full view is non-limited does not
23201 make the attribute available for the partial view).
23202 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23203 non-overloaded intrinsic subprogram.
23204 (Check_Stream_Attribute): Reject an attribute reference for an
23205 unavailable stream attribute even if the prefix is not a limited type
23206 (case of a 'Input attribute reference for an abstract, non-classwide
23208 (Stream_Attribute_Available): New function to determine whether a stream
23209 attribute is available at a place.
23210 (Check_Attribute): Use Stream_Attribute_Available instead of just
23211 testing for TSS presence on the implementation base type.
23212 (Analyze_Attribute): Modified to give support to task interfaces.
23213 (Analyze_Access_Attribute): Add error check for use of an Access (or
23214 Unrestricted_Access) attribute with a subprogram marked as
23216 (Analyze_Attribute, case Attribute_Address): Add error check for use of
23217 an Address attribute with a subprogram marked as Inline_Always.
23218 Update Eval_Attribute to handle new value of Width from AI-395
23220 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23221 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23222 Factor common code across the stream-oriented attribute circcuits into
23223 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23224 processing is functionally identical to the previous duplicated one,
23225 except that an expression that denotes an abstract subprogram will now
23226 be rejected, as mandated by AI-195 item 5.
23228 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23229 Is_Local_Anonymous_Access to apply accessibility checks to access
23230 components and stand-alone access objects.
23231 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23233 (Is_Potentially_Persistent_Type): New function
23234 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23235 a heap-object whose type has a constrained partial view, the object is
23236 unconstrained and the component may depend on a discriminant, making its
23239 * sinfo.ads, sinfo.adb
23240 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23241 (Must_Override): Flag applicable to N_Entry_Declaration.
23242 Indicate that interface_list can appear in single task and single
23243 protected declarations.
23244 Replace Is_Overriding and Not_Overriding with Must_Override and
23245 Must_Not_Override, to better express intent of AI.
23246 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23247 of an overriding indicator in a subprogram or instance.
23248 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23249 Add the overriding indicator [[not] overriding] construct to the
23250 following grammar productions:
23252 GENERIC_INSTANTIATION
23253 SUBPROGRAM_SPECIFICATION
23255 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23256 can start with an overriding indicator.
23258 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23259 flags accordingly on subrogram specifications or instances.
23262 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23263 overriding_indicator, if present, is consistent with status of spec.
23264 Improve error message for null-excluding checks on controlling access
23266 (Check_In_Previous_With_Clause): Protect the frontend against
23267 previously reported critical errors in the context clauses.
23268 Save and restore Ada_Version_Explicit, for implementation of AI-362
23269 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23270 operation verify that controlling formals of the renamed entity that
23271 are access parameters are explicitly non-null.
23272 (Find_Expanded_Name): Improve error message when prefix is an illegal
23273 reference to a private child unit.
23275 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23276 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23277 Rewrite to correspond to new wide character names in AI-395
23279 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23280 default procedures.
23282 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23283 Robert Dewar <dewar@adacore.com>
23285 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23286 code, not on the bodies of predefined operations, to cut down on
23289 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23291 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23292 be expanded in place. The size computation does not require a
23293 subtraction, which would raise an exception on a compiler built with
23294 assertions when the upper bound is Integer'first.
23295 (Flatten): For an array of composite components, take into account the
23296 size of the components to determine whether it is safe to expand the
23297 array into a purely positional representation.
23299 2005-06-14 Thomas Quinot <quinot@adacore.com>
23301 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23302 denoting a formal parameter into account.
23304 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23306 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23307 the entry_call alternative of a conditional entry call, wrap the
23308 conditional entry call itself.
23310 2005-06-14 Nicolas Setton <setton@adacore.com>
23311 Ed Schonberg <schonberg@adacore.com>
23313 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23314 the "simple_choice" member in a variant record, in accordance with the
23315 description in the package spec: the information output for a constant
23316 should be "S number", not "SS number".
23317 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23318 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23320 2005-06-14 Thomas Quinot <quinot@adacore.com>
23322 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23323 RACW without any primitives, do not generate the if statement for
23324 dispatching by name in the PolyORB/DSA case, as it would be malformed
23325 (it would have an Elsif_Parts list that is not No_List, but with a
23328 2005-06-14 Robert Dewar <dewar@adacore.com>
23330 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23332 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23334 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23335 can determine whether pragma Suppress_Exception_Locations is in effect.
23337 * utils2.c (build_call_raise): Do not pass the file name to the
23338 exception handler if pragma Suppress_Exception_Locations is in effect.
23339 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23341 2005-06-14 Emmanuel Briot <briot@adacore.com>
23343 * g-debpoo.adb (Deallocate, Dereference): Improve output.
23345 2005-06-14 Nicolas Roche <roche@adacore.com>
23347 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23349 (Next_Level): Fix minor bug in handling of ../dir case
23350 (Read): Add dir separator to Directory name so that "" is understood as
23353 2005-06-14 Pascal Obry <obry@adacore.com>
23355 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23356 releasing the items.
23358 2005-06-14 Vincent Celier <celier@adacore.com>
23359 Cyrille Comar <comar@adacore.com>
23361 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23362 with output file descriptor and with output file name.
23363 (Dup, Dup2): Now global procedures as they are used by two subprograms
23364 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23366 2005-06-14 Thomas Quinot <quinot@adacore.com>
23369 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23371 (Create_Selector): Bind listening socket used to create the signalling
23372 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23373 Set listen backlog to 1 to ensure that we detect socket theft by a
23374 failure of our own connect(2) call.
23375 (Check_Selector): Improve documentation of the selector mechanism.
23376 (Broadcast_Inet_Addr): New constant.
23378 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23380 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23381 type which turns out to be an incomplete and incorrect fix.
23382 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23383 of the type is declared in a record (for determination of insertion
23385 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23386 a private type and ensure that the primary entity is used for the type
23387 of the newly created function's V formal by taking the Etype of the
23390 2005-06-14 Javier Miranda <miranda@adacore.com>
23391 Jose Ruiz <ruiz@adacore.com>
23392 Robert Dewar <dewar@adacore.com>
23393 Ed Schonberg <schonberg@adacore.com>
23395 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23396 that indicates if we are parsing a compilation unit found in a
23397 limited-with clause.
23398 It is use to avoid the circularity check.
23400 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23401 we are parsing a compilation unit found in a limited-with clause. This
23402 is use to avoid the circularity check.
23404 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23405 unit as a consequence of parsing a limited-with clause. This is used
23406 to avoid the circularity check.
23408 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23409 (Analyze_Context): Limited-with clauses are now allowed
23410 in more compilation units.
23411 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23412 againts previously reported critical errors in context clauses
23413 (Install_Limited_Withed_Unit): Code cleanup plus static detection
23414 of two further errors: renamed subprograms and renamed packages
23415 are not allowed in limited with clauses.
23416 (Install_Siblings): Do not install private_with_clauses on the package
23417 declaration for a non-private child unit.
23418 (Re_Install_Parents): When a parent of the subunit is reinstalled,
23419 reset visibility of child units properly.
23420 (Install_Withed_Unit): When a child unit appears in a with_clause of its
23421 parent, it is immediately visible.
23423 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23424 Emmanuel Briot <briot@adacore.com>
23426 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23427 declared within an inlined body as referenced, to prevent spurious
23429 (Output_One_Ref): If an entity renames an array component, indicate in
23430 the ALI file that this aliases (renames) the array. Capture as well
23431 function renamings that rename predefined operations.
23432 Add information about generic parent for package and subprogram
23434 (Get_Type_Reference): For a subtype that is the renaming of an actual in
23435 an instantiation, use the first_subtype to ensure that we don't generate
23436 cross-reference information for internal types.
23437 For objects and parameters of a generic private type, retain the '*'
23438 indicator to distinguish such an entity from its type.
23440 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23441 to store information about instantiated entities.
23443 * ali.adb (Scan_ALI): Add support for parsing the reference to the
23446 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23447 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23450 2005-06-10 Doug Rupp <rupp@adacore.com>
23451 Arnaud Charlet <charlet@adacore.com>
23452 Olivier Hainque <hainque@adacore.com>
23453 Jose Ruiz <ruiz@adacore.com>
23455 * Make-lang.in: Add initialize.o when needed.
23456 Remove obsolete references to RT_FLAGS.
23457 Add missing dependencies for sdefault.o
23459 * initialize.c: New file.
23461 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23462 [VMS] cond_signal_table: Fix problem in declaration.
23463 [VMS] __gnat_error_handler: rewrite.
23464 Move all __gnat_initialize() routines to initialize.c
23465 Specialize the former "hpux" section to "hppa hpux", as this is what the
23466 section really is here for and we now have other hpux ports that need
23467 different contents.
23468 (__gnat_adjust_context_for_raise) i386-linux: First version of this
23469 function for this target. Adjust PC by one in the machine context. This
23470 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23471 it is more reliable to do that in the signal handler itself.
23472 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23473 flags, so that the handler is passed the context structure to adjust
23474 prior to the raise.
23475 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23476 SA_SIGINFO sigaction should look like. Call
23477 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23478 Machine_State_Operations stuff.
23479 Add conditional code so that the x86_64 is also supported.
23481 2005-06-14 Pascal Obry <obry@adacore.com>
23483 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23486 2005-06-14 Robert Dewar <dewar@adacore.com>
23488 * opt.ads, opt.adb: New flags for persistent_bss mode
23489 Add Ada_Version_Explicit, for implementation of AI-362
23490 Add Assertions_Enabled_Config and associated handling
23491 Needed since setting can be changed with Assertion_Policy pragma
23492 Add new flag Warn_On_Ada_2005_Compatibility
23494 * switch-c.adb: Recognize -gnatwy/Y
23495 Set Ada_Version_Explicit, for implementation of AI-362
23496 The -gnatg switch now includes -gnatyu
23498 * usage.adb: Add -gnatwy/Y
23499 Remove wrong asterisk on -gnatwX line
23500 Add line for -gnatyu switch
23502 2005-06-14 Vincent Celier <celier@adacore.com>
23504 * osint.adb (Add_Default_Search_Dirs): Put source and object
23505 directories of project files before directories coming from
23506 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23508 2005-06-14 Robert Dewar <dewar@adacore.com>
23511 * par-ch2.adb (Scan_Pragma_Argument): New procedure
23512 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23514 2005-06-14 Vincent Celier <celier@adacore.com>
23516 * prep.adb (Preprocess): Ignore error when scanning the first token of
23519 2005-06-14 Vincent Celier <celier@adacore.com>
23521 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23522 (Check_Stand_Alone_Library): If the specified reference symbol file does
23523 not exist, only issue a warning when the symbol policy is not
23524 Controlled. And, when symbol policy is Compliant, set the symbol
23525 policy to Autonomous.
23527 2005-06-14 Vincent Celier <celier@adacore.com>
23529 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23530 when the project file in a with clause is not the last one, that is the
23531 project file name is followed by a comma.
23532 * prj-pp.adb: (First_With_In_List): New Boolean global variable
23533 (Print): Issue list of project files separated by commas in with clauses
23534 according to the values returned by Is_Not_Last_In_List.
23535 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23536 (Set_Is_Not_Last_In_List): New procedure
23538 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23540 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23542 2005-06-14 Robert Dewar <dewar@adacore.com>
23544 * scng.adb: Add call to new Check_EOF routine
23545 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23546 Add some comments regarding wide character handling
23548 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23550 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23552 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23553 characters are now considered graphic characters and hence yield false
23556 * nmake.adt: Modify header so that xnmake does not generate output
23557 files with multiple blank lines.
23559 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23560 not have an extra blank line
23562 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23564 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23565 expression when the component type is an anonymous access type to
23566 ensure that appropriate accessibility checks are done.
23568 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23569 expression of an assignment when the target object is of an anonymous
23570 access type. This ensures that required accessibility checks are done.
23571 (One_Bound): Move the check for type Universal_Integer to
23573 (Process_Bounds): Check whether the type of the preanalyzed range is
23574 Universal_Integer, and in that case set Typ to Integer_Type prior
23575 to setting the type of the original range and the calls to One_Bound.
23577 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23579 * sem_case.adb (Expand_Others_Choice): Improve warning.
23581 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23583 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23584 constraint of full view if present, when other type is discriminated.
23585 (Eval_Relational_Op): Recognize tests of pointer values against Null,
23586 when the pointer is known to be non-null, and emit appropriate warning.
23588 2005-06-14 Robert Dewar <dewar@adacore.com>
23589 Ed Schonberg <schonberg@adacore.com>
23592 * sem_prag.adb: Implement pragma Persistent_BSS
23593 Remove obsolete pragma Persistent_Data, Persistent_Object
23594 Set Ada_Version_Explicit, for implementation of AI-362
23595 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23596 Add processing for pragma Pure_05 and Preelaborate_05
23597 Add processing for Assertion_Policy pragma
23598 Add pragma identifiers for Assert
23599 (Analyze_Pragma, case Assert): Check number of arguments
23600 (Process_Inline): Additional guard against an illegal program, where the
23601 argument of the pragma is undefined, and warnings on redundant
23602 constructs are enabled.
23603 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23604 Ada_05 to this pragma, specifying that the pragma is only active in
23606 (Check_Arg_Order): New procedure
23607 Add appropriate calls to this procedure throughout
23608 Also throughout, check entity name before doing any other checks
23610 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23611 Remove obsolete pragma Persistent_Data, Persistent_Object
23612 Add entries for pragma Pure_05 and Preelaborate_05
23613 Add entries for Assertion_Policy pragma and associated names
23614 Add some names for pragma argument processing
23616 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23618 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23620 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23621 appears within a negation (either from source or as a rewriting of
23622 inequality) adjust text of warning accordingly.
23624 2005-06-14 Thomas Quinot <quinot@adacore.com>
23626 * s-strxdr.adb: Follow AI95-00132
23628 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23630 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23632 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23633 Jose Ruiz <ruiz@adacore.com>
23635 * s-tposen.adb, s-tpobop.adb
23636 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23638 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23639 there is no violation of the Max_Entry_Queue_Length restriction (if it
23640 has been set); Program_Error is raised otherwise.
23641 (Requeue_Call): Before requeuing the task on the target entry queue we
23642 check that there is no violation of the Max_Entry_Queue_Length
23643 restriction (if it has been set); Program_Error is raised otherwise.
23645 2005-06-14 Robert Dewar <dewar@adacore.com>
23647 * styleg.adb: Fix several remaining problems in -gnatyu switch
23648 Blank line count not reset at start
23649 Scanning outside source buffer in some cases
23650 Confusing message for blanks at end of file
23651 Non-empty blank lines not recognized
23653 * nmake.adt: Modify header so that xnmake does not generate output
23654 files with multiple blank lines.
23656 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23657 not have an extra blank line
23659 2005-06-14 Sergey Rybin <rybin@adacore.com>
23661 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23663 2005-06-14 Doug Rupp <rupp@adacore.com>
23664 Vincent Celier <celier@adacore.com>
23666 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23669 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23670 Remove "Library" command.
23671 Change keyword for style check -gnatyd from NOCRLF to
23673 Remove useless second style check keyword NONE
23674 Remove help documentation for inexistent style check keyword
23676 Add help documentation for style check keywords DOS_LINE_ENDINGS,
23677 UNNECESSARY_BLANK_LINES and XTRA_PARENS
23678 Add UNNECESSARY_BLANK_LINES for -gnatyu
23679 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23681 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23683 2005-06-14 Vincent Celier <celier@adacore.com>
23685 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23686 gprmake was invoked with -d.
23687 (Compile_Sources): If -d was used, output the "completed ..." message
23688 for each compilation.
23689 (Scan_Arg): Recognize new switch -d
23690 When -c and at least one main is specified, set
23691 Unique_Compile to True to guarantee that no other sources will be
23694 2005-06-14 Matthew Heaney <heaney@adacore.com>
23696 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23697 * a-swuwha.ads, a-swuwha.adb: New files
23699 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23700 * a-szuzha.ads, a-szuzha.adb: New files.
23702 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23703 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23704 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23705 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23706 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23707 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23708 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23709 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23710 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23711 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23714 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
23715 Olivier Hainque <hainque@adacore.com>
23716 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23717 Pascal Obry <obry@adacore.com>
23719 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23721 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23722 making a temporary around a procedure call because of non-addressable
23724 (process_freeze_entity): If entity is a private type, capture size
23725 information that may have been computed for the full view.
23726 (tree_transform, case N_Allocator): If have initializing expression,
23727 check type for Has_Constrained_Partial_View and pass that to
23729 (tree_transform, case N_Return_Statement): Pass extra arg to
23732 * decl.c (annotate_value): Remove early return if -gnatR is not
23734 (gnat_to_gnu_field): Don't make a packable type for a component clause
23735 if the position is byte aligned, the field is aliased, and the clause
23736 size isn't a multiple of the packable alignment. It serves no useful
23737 purpose packing-wise and would be rejected later on.
23738 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23741 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23742 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23744 (create_concat_name): Idem.
23746 2005-06-10 Robert Dewar <dewar@adacore.com>
23747 Eric Botcazou <ebotcazou@adacore.com>
23748 Ben Brosgol <brosgol@adacore.com>
23749 Cyrille Comar <comar@adacore.com>
23750 Sergey Rybin <rybin@adacore.com>
23751 Pascal Obry <obry@adacore.com>
23753 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23754 Document second argument (Ada_05) of pragma Obsolescent
23755 Add note that call to subprogram marked with pragma Obsolescent
23756 is now considered to be a violation of program Restrictions
23757 (No_Obsolescent_Features).
23758 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23759 that only machine-dependent attributes are supported.
23762 Commented out menu lines and empty section for gnatclean examples
23764 Fix some over long lines
23765 Clarify and enhance documentation of ADA_PROJECT_PATH.
23766 Rework section 2.11.2(3) about linking with a non-GNU compiler.
23767 Mention new switch -fcallgraph-info.
23768 Mention new switch -fstack-usage.
23769 For gnatpp, replace '-notab' with '-N' and add this option to Index
23770 Corrected VMS example.
23771 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23773 Add documentation for -gnatyu switch (unnecessary blank lines)
23774 Document new switch -U for GNAT PRETTY and GNAT METRIC
23775 Add note about Stdcall being handled as C convention on non Windows OS.
23776 Remove some junk typo in description of gnatbind -S switch
23777 Remove reference to Extensions_Allowed pragma
23778 Document the new order of the directories to be searched (source and
23779 object directories of project files before directories in ADA_*_PATH
23780 environment variables.
23782 * g-trasym.ads: Document that IRIX is supported
23784 2005-06-10 Arnaud Charlet <charlet@adacore.com>
23786 * Makefile.in: Add initialize.o when needed.
23787 Adapt to new VMS package body Symbols and subunits
23788 No specialized version of a-sytaco is needed for VxWorks.
23790 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23791 * a-zchara.ads, a-widcha.ads: New files.
23793 * system-hpux-ia64.ads: New file.
23795 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23796 is imported from the VxWorks kernel.
23798 2005-06-14 Robert Dewar <dewar@adacore.com>
23800 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23801 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23802 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23803 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23804 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23805 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23806 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23807 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23808 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23809 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23810 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23811 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23813 2005-06-14 Thomas Quinot <quinot@adacore.com>
23815 * xeinfo.adb: Fix typo in comment
23817 2005-06-14 Javier Miranda <miranda@adacore.com>
23819 * repinfo.ads: Fix typo in comment
23821 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23823 * s-finimp.adb (Parent_Tag): Delete this imported function (function
23824 Parent_Tag is now in the visible part of Ada.Tags).
23825 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23826 using imported function.
23828 2005-06-14 Bernard Banner <banner@adacore.com>
23830 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23831 also apply for handling support for VxSim 653.
23833 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23835 * xsnames.adb: Add automatic generation of snames.h.
23837 2005-06-14 Thomas Quinot <quinot@adacore.com>
23839 * gen-soccon.c: Add IP_MULTICAST_IF constant
23840 Minor reformatting and adjustments to prevent warnings.
23842 2005-06-14 Pascal Obry <obry@adacore.com>
23844 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23846 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
23848 * trans.c (gnat_gimplify_expr): Call
23849 recompute_tree_invarant_for_addr_expr when we change
23850 the operand of the ADDR_EXPR.
23852 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23854 * misc.c: Don't include errors.h.
23856 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23858 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23860 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
23862 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23864 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23866 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
23869 * Makefile.in: Make TGT_LIB behave correctly.
23871 2005-04-23 DJ Delorie <dj@redhat.com>
23873 * misc.c: Adjust warning() callers.
23875 2005-04-16 Laurent Guerby <laurent@guerby.net>
23878 * a-nudira.adb (Value): Check for valid string.
23879 * a-nuflra.adb (Value): Likewise.
23881 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
23883 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23885 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
23887 * adaint.c, init.c, tracebak.c: Fix comment typos.
23888 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23890 2005-04-07 Laurent Guerby <laurent@guerby.net>
23891 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23893 * Makefile.in: Add make ifeq define for hppa linux tasking support.
23894 * system-hpux.ads: Define Signed_Zeros to be True.
23895 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23897 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
23899 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23900 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23903 2005-03-30 Tom Tromey <tromey@redhat.com>
23905 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23907 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23909 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23911 2005-03-29 Robert Dewar <dewar@adacore.com>
23913 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23914 fixed-point expression has value that is not a multiple of the Small
23917 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23919 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23922 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23924 2005-03-29 Vincent Celier <celier@adacore.com>
23926 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23927 (Build_Dynamic_Library.Version_String): Return the empty string when
23928 Lib_Version is empty or when the symbol policy is not Autonomous.
23930 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23931 a symbol is not in the reference symbol file, increase the Major ID
23932 and set the Minor ID to 0.
23933 Use gsmatch=lequal instead of gsmatch=equal
23935 2005-03-29 Doug Rupp <rupp@adacore.com>
23937 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23938 name and translate.
23940 2005-03-29 Javier Miranda <miranda@adacore.com>
23942 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23943 (Inherit_DT): The first formal has been redefined as a Tag.
23944 This allows us the removal of the subprogram Get_TSD.
23945 (TSD): Replace the call to Get_TSD by the actual code.
23947 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23948 (Make_DT): Upgrade the call to Inherit_TSD according to the
23949 new interface: the first formal is now a Tag.
23951 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23952 redefined as a Tag.
23953 This change allows us to remove the subprogram Get_TSD.
23954 (CPP_Get_TSD): Subprogram removed.
23955 (TSD): Replace the call to CPP_Get_TSD by the actual code.
23957 * rtsfind.ads: Remove support to call the run-time
23960 2005-03-29 Robert Dewar <dewar@adacore.com>
23962 * errutil.adb, errout.adb:
23963 Minor comment updates on Line_Terminator references
23965 * par-ch10.adb: Add ??? comment about line terminator
23967 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23968 (check dos line terminator).
23969 (Check_Line_Max_Length): New procedure, split off from the existing
23970 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23971 be properly recognized.
23973 * styleg.adb: Add ??? comment for line terminator reference
23975 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23976 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23978 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23979 (check dos line terminator).
23980 (Check_Line_Max_Length): New procedure, split off from the existing
23981 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23982 be properly recognized.
23984 * stylesw.ads, stylesw.adb:
23985 Add handling for new -gnatyd switch (check dos line terminator)
23987 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23988 Recognize -gnatwb/-gnatwB switches
23989 Include Warn_On_Bad_Fixed_Value for -gnatg
23992 Add line for new -gnatyd switch (check dos line terminator)
23994 * usage.adb: Add lines for -gnatwb/-gnatwB
23996 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23998 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24000 * gnat_ugn.texi: Fix overlong lines
24001 Document new -gnatyd switch
24002 Document new -gnatwb/-gnatwB switches
24004 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24006 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24007 order to retrieve the component list of the type, before examining
24008 individual components.
24010 * sem_type.adb (Covers): Types are compatible if one is the base type
24011 of the other, even though their base types might differ when private
24012 views are involved.
24014 2005-03-29 Thomas Quinot <quinot@adacore.com>
24016 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24017 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24018 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24019 analyzed if expansion is disabled (which could otherwise cause spurious
24020 error messages if expansion has been disabled due to previous
24021 (unrelated) errors).
24023 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24024 is disabled, the entity denoted by the argument is the access type
24025 itself, not an underlying record type, so there is no need to go back
24026 to the Corresponding_Remote_Type.
24028 2005-03-29 Gary Dismukes <dismukes@adacore.com>
24029 Robert Dewar <dewar@adacore.com>
24031 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24032 expand a call to an instance of
24033 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24034 Constructor actual of the instance. A class-wide membership
24035 check is also generated, to ensure that the tag passed to the instance
24036 denotes a type in the class.
24037 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24038 of Name_Generic_Dispatching_Constructor.
24040 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24041 05 unit for AI-260-02).
24043 * a-tgdico.ads: New file.
24045 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24046 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24048 * snames.ads, snames.adb (Preset_Names): Add entry for
24049 Generic_Dispatching_Constructor.
24052 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24053 character type cases.
24054 (Analyze_Subprogram_Renaming): Add special handling for
24055 the case of renaming of stream attributes when the renaming denotes a
24056 generic formal subprogram association for an abstract formal subprogram.
24057 Check that the attribute is a primitive stream attribute (and not
24058 a class-wide stream attribute) and then rewrite the attribute name
24059 as the name of the appropriate compiler-generated stream primitive.
24061 2005-03-29 Robert Dewar <dewar@adacore.com>
24063 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24065 (Is_Possibly_Unaligned_Object): Correct typo that
24066 resulted in inaccurate result for unaligned scalars within records.
24068 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24070 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24071 itype whose parent is controlled and not yet frozen, do not create a
24072 freeze node for the itype if expansion is disabled.
24074 2005-03-29 Vincent Celier <celier@adacore.com>
24076 * make.adb (Gnatmake): Don't fail if the main project file is declared
24077 as having no Ada sources. Do not display message "no sources to
24078 compile" in quiet output.
24080 2005-03-29 Doug Rupp <rupp@adacore.com>
24082 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24085 2005-03-29 Robert Dewar <dewar@adacore.com>
24087 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24090 2005-03-29 Robert Dewar <dewar@adacore.com>
24092 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24093 missing TYPE Improve the error message generated when compiling a
24094 limited interface in Ada83 or Ada95 mode.
24096 2005-03-29 Robert Dewar <dewar@adacore.com>
24098 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24099 rather than proceed ahead using a junk attribute name.
24101 2005-03-29 Vincent Celier <celier@adacore.com>
24103 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24105 * prj-part.adb (Parse_Single_Project): Set the location of a project
24106 on its defining identifier, rather than on the reserved word "project".
24108 * prj-proc.adb (Expression): Adapt to the fact that default of external
24109 references may be string expressions, not always literal strings.
24110 (Recursive_Process): Set Display_Name equal to Name
24111 when Location is No_Location, that is when there is no actual file.
24112 Get the Display_Name of the project from the source, when it is not a
24114 (Process): Use the Display_Name in error messages
24116 * prj-strt.adb (External_Reference): Allow default to be string
24117 expressions, not only literal strings.
24119 2005-03-29 Vincent Celier <celier@adacore.com>
24121 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24122 file and the reference symbol file to be the same file.
24124 2005-03-29 Thomas Quinot <quinot@adacore.com>
24126 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24127 forbid conversion of a local access-to-subprogram type to a remote one.
24129 * sem_util.adb (Wrong_Type): For a record type that is the expanded
24130 equivalent type for a remote access-to-subprogram type, go back to the
24131 original RAS entity when displaying an error message, so the casing is
24132 the original source casing.
24134 2005-03-29 Robert Dewar <dewar@adacore.com>
24136 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24139 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24141 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24142 subtype if code is being pre-analyzed, to prevent un-expanded
24143 references to protected formals, among others.
24144 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24145 interpretation that can be a call, include the result of the call as a
24146 possible interpretation of the dereference.
24148 * sem_ch5.adb (Process_Bounds): Determine type of range by
24149 pre-analyzing a copy of the original range, and then analyze the range
24150 with the expected type.
24152 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24153 with an overloaded prefix where not all interpretations yield an
24154 access to subprogram, do not rewrite node as a call.
24155 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24156 the node as a call once the context identifies the interpretation of
24157 the prefix whose call yields the context type.
24158 (Valid_Conversion): For the case of a conversion between
24159 local access-to-subprogram types, check subtype conformance using
24160 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24161 detailed error message.
24163 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24165 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24166 indicator, indicate that the formal can never be null.
24167 (Process_Formals): If a formal has a non_null indicator, insert the
24168 resulting subtype immediately before the enclosing subprogram decl,
24169 and not at the beginning of the corresponding declarative part, to
24170 prevent access before elaboration (Ada2005).
24172 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24175 * utils.c (finish_record_type): Use variable_size when setting sizes.
24177 2005-03-29 Robert Dewar <dewar@adacore.com>
24179 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24180 guarantee Unix style line terminators for the output files, even when
24181 running on windows.
24183 2005-03-29 Robert Dewar <dewar@adacore.com>
24185 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24186 buffer if an exception is raised.
24188 2005-03-29 Ed Falis <falis@adacore.com>
24190 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24193 2005-03-29 Robert Dewar <dewar@adacore.com>
24195 * sem_util.ads: Minor reformatting
24196 * gnat_rm.texi: Minor editing.
24198 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
24200 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24201 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24203 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24205 * adaint.c (__gnat_portable_spawn): Adjust cast.
24207 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
24209 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24211 2005-03-17 Pascal Obry <obry@adacore.com>
24213 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24216 * expect.c (__gnat_waitpid): Moved here from adaint.c.
24217 Reimplement under Win32 using Win32 API.
24219 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24222 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24224 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24225 (DECL_RENAMED_OBJECT): New accessor macro.
24226 (SET_DECL_RENAMED_OBJECT): New setter macro.
24228 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24229 object in all cases. Attach the renamed object to the VAR_DECL.
24230 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24231 field is not prescribed.
24233 * misc.c (gnat_handle_option): Handle -gnatO separately.
24234 (gnat_print_decl) <VAR_DECL>: New case.
24235 Print the DECL_RENAMED_OBJECT node.
24237 * lang.opt: Declare separate -gnatO option.
24239 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24240 pointer, replace it with the renamed object.
24241 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24242 pointer type if the source is not a fat pointer type whose underlying
24243 array has the same non-zero alias set as that of the destination array.
24245 2005-03-17 Javier Miranda <miranda@adacore.com>
24247 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24248 (Get_Inheritance_Depth): Removed.
24249 (Set_Inheritance_Depth): Removed.
24251 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24252 subprogram Get_Expanded_Name because it is not referenced by the
24255 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24256 (CPP_Get_Inheritance_Depth): Removed.
24257 (CPP_Set_Inheritance_Depth): Removed.
24259 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24261 2005-03-17 Robert Dewar <dewar@adacore.com>
24263 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24264 3, since we now expect GCC 3 to do all the work.
24266 2005-03-17 Javier Miranda <miranda@adacore.com>
24268 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24269 of one barrier to avoid wrong usage of this attribute.
24271 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24272 First_Private_Entity.
24274 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24275 the subprogram against wrong usage.
24276 Adapt the code to traverse the entities in the
24277 scope of a record_type because in addition to its usage regarding
24278 packages, this subprogram is also called by Expand_N_Freeze_Entity
24279 to install the visible declarations of the enclosing scope of a
24280 record_type_with_private to establish the proper visibility before
24281 freezing the entity and related subprograms.
24283 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24285 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24288 2005-03-17 Thomas Quinot <quinot@adacore.com>
24290 * exp_ch3.adb (Check_Attr): New subprogram.
24291 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24292 into a new Check_Attr subprogram, in order to provide a more
24293 explanatory error message (including the name of the missing attribute).
24294 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24295 subprogram determines whether a default implementation exists for a
24296 given stream attribute.
24297 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24298 Determine whether to generate a default implementation for each stream
24299 attribute separately, as this depends on the specific attribute.
24301 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24302 limited extension where a stream attribute is missing for a limited
24303 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24304 generate a bogus reference to the missing attribute to prevent
24305 cascaded errors. Instead, generate a null statement.
24307 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24308 available for a limited type if it has been specified for an ancestor
24311 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24313 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24314 entity is an operator.
24316 2005-03-17 Thomas Quinot <quinot@adacore.com>
24318 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24319 spec, to make this predicate available to other units.
24321 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24324 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24325 when no distribution runtime library is available.
24327 * sem_res.adb, sem_dist.adb: Disable expansion of remote
24328 access-to-subprogram types when no distribution runtime library is
24330 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24331 predicate available to other units.
24333 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24334 spec, to make this predicate available to other units.
24336 2005-03-17 Vincent Celier <celier@adacore.com>
24338 * make.adb (Insert_Project_Sources): Make sure the Q is always
24341 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24342 the default for the tree, not the global default naming.
24344 * prj-proc.adb (Recursive_Process): No need to put the default naming
24345 in the project data, it's already there.
24347 2005-03-17 Doug Rupp <rupp@adacore.com>
24349 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24351 * 5xcrtl.ads: Renamed to...
24352 * s-crtl-vms64.ads: ...this new file
24354 2005-03-17 Robert Dewar <dewar@adacore.com>
24357 * namet.adb (Copy_One_Character): Set proper wide character encoding
24358 for upper half character if we have upper half encoding.
24360 2005-03-17 Robert Dewar <dewar@adacore.com>
24362 * par.adb (Par): Improved msg for attempt to recompile predefined unit
24364 2005-03-17 Thomas Quinot <quinot@adacore.com>
24366 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24367 tagged limited type, the TSS is a newly built renaming declaration:
24368 insert it using Set_TSS, not Copy_TSS.
24370 2005-03-17 Javier Miranda <miranda@adacore.com>
24372 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24373 Try_Object_Operation): Analyze the object that is accessible
24374 through the prefix of the subprogram call before we apply
24375 the transformation of the object-operation notation.
24377 2005-03-17 Jose Ruiz <ruiz@adacore.com>
24379 * s-taprob.adb (Initialize_Protection): Initialize the protected
24380 object's owner to Null_Task.
24381 (Lock): If pragma Detect_Blocking is in effect and the caller of this
24382 procedure is already the protected object's owner then Program_Error
24383 is raised. In addition the protected object's owner is updated.
24384 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24385 of this procedure is already the protected object's owner then
24386 Program_Error is raised.
24387 In addition the protected object's owner is updated.
24388 (Unlock): Remove the ownership of the protected object.
24390 * s-taprob.ads (Protection): Add the field Owner, used to store the
24391 protected object's owner.
24392 This component is needed for detecting one type of potentially blocking
24393 operations (external calls on a protected subprogram with the same
24394 target object as that of the protected action). Document the rest of
24397 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24398 Initialize the protected object's owner to Null_Task.
24399 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24400 caller of this procedure is already the protected object's owner then
24401 Program_Error is raised.
24402 Do not raise Program_Error when this procedure is called from a
24404 (Unlock_Entries): Remove the ownership of the protected object.
24405 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24406 of this procedure is already the protected object's owner then
24407 Program_Error is raised.
24408 Do not raise Program_Error when this procedure is called from
24409 a protected action.
24411 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24412 used to store the protected object's owner.
24414 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24415 effect and this procedure (a potentially blocking operation) is called
24416 from whithin a protected action, Program_Error is raised.
24417 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24418 and this procedure (a potentially blocking operation) is called from
24419 whithin a protected action, Program_Error is raised.
24421 2005-03-17 Vincent Celier <celier@adacore.com>
24422 Nicolas Setton <setton@adacore.com>
24424 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24425 switch, not supported by the linker on Darwin. Add '_' before
24426 <library>init, as this character is added unconditionally by the
24428 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24429 correct one ".dylib". This fixes detection of the archive files when
24430 building library projects.
24432 2005-03-17 Vincent Celier <celier@adacore.com>
24434 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24435 -gnat83, -gnat95 and -gnat05.
24437 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
24439 * gnat_ugn.texi: Document gnatmem restriction
24441 2005-03-17 Thomas Quinot <quinot@adacore.com>
24443 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24446 2005-03-17 Robert Dewar <dewar@adacore.com>
24448 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24449 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24450 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24452 * casing.adb: Comment improvements
24454 2005-03-17 Pascal Obry <obry@adacore.com>
24456 * g-expect.adb: Minor reformatting.
24458 2005-03-15 Zack Weinberg <zack@codesourcery.com>
24460 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24461 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24464 2005-03-15 Vincent Celier <celier@adacore.com>
24466 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24467 Add new parameter In_Tree to specify the project tree: needed
24468 by the project manager. Adapt to changes in project manager
24469 using new parameter In_Tree.
24471 2005-03-15 Jakub Jelinek <jakub@redhat.com>
24473 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24474 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24475 ada/bldtools to avoid make -jN failures.
24477 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24479 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24480 to NULL_TREE on entry.
24482 2005-03-15 Robert Dewar <dewar@adacore.com>
24484 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24485 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24486 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24487 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24488 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24489 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24490 system-interix.ads, system-solaris-sparc.ads,
24491 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24492 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24493 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24494 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24495 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24496 Compiler_System_Version to be False.
24498 * opt.ads: Add new flag Opt.Address_Is_Private
24500 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24501 Add new parameter Compiler_System_Version to avoid checking for
24502 completeness of parameters when compiler is compiling itself.
24503 Allows old versions of GNAT to be compiled with new compiler.
24505 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24507 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24508 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24510 (Stack_Base_Available): New flag.
24511 (Get_Page_Size): New overloaded functions imported from C.
24512 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24513 PROT_ON, PROT_OFF): New constants.
24514 (mprotect): New function imported from C.
24515 (pthread_teb_t): New record type.
24517 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24518 (Create_Task): Account for the Yellow Zone and the guard page.
24520 2005-03-15 Vincent Celier <celier@adacore.com>
24522 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24523 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24524 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24525 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24526 Library_File_Name_For): Add new parameter In_Tree
24527 to specify the project tree: needed by the project manager.
24528 Adapt to changes in project manager using new parameter In_Tree.
24529 Remove local imports, use functions in System.CRTL.
24531 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24532 to use the project manager.
24534 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24535 In_Tree to designate the project tree. Adapt to changes in the project
24536 manager, using In_Tree.
24538 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24539 Copy_Interface_Sources): Add new parameter In_Tree to specify the
24540 project tree: needed by the project manager.
24541 (Build_Library): Check that Arg'Length >= 6 before checking if it
24542 contains "--RTS=...".
24544 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24545 Library_File_Name_For): Add new parameter In_Tree to specify the
24546 project tree: needed by the project manager.
24548 * prj.ads, prj.adb: Major modifications to allow several project trees
24549 in memory at the same time.
24550 Change tables to dynamic tables and hash tables to dynamic hash
24551 tables. Move tables and hash tables from Prj.Com (in the visible part)
24552 and Prj.Env (in the private part). Move some constants from the visible
24553 part to the private part. Make other constants deferred.
24554 (Project_Empty): Make it a variable, not a function
24555 (Empty_Project): Add parameter Tree. Returns the data with the default
24556 naming data of the project tree Tree.
24557 (Initialize): After updating Std_Naming_Data, copy its value to the
24558 component Naming of Project Empty.
24559 (Register_Default_Naming_Scheme): Use and update the default naming
24560 component of the project tree, instead of the global variable
24562 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24563 Tree is not defaulted, return the default naming data of the Tree.
24564 (Initial_Buffer_Size): Constant moved from private part
24565 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24566 variables initialized in procedure Initialize.
24567 (Add_To_Buffer): Add two in out parameters to replace global variables
24568 Buffer and Buffer_Last.
24569 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24571 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24573 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24574 for the project tree.
24575 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24576 constant at the beginning of the package spec, so that they cane be used
24577 in subprograms before their full declarations.
24578 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24579 (Empty_Project): Add parameter of type Project_Node_Ref
24580 (Private_Project_Tree_Data): Add component Default_Naming of type
24582 (Buffer, Buffer_Last): remove global variables
24583 (Add_To_Buffer): Add two in out parameters to replace global variables
24584 Buffer and Buffer_Last.
24585 (Current_Packages_To_Check): Remove global variable
24586 (Empty_Name): Move to private part
24587 (No-Symbols): Make it a constant
24588 (Private_Project_Tree_Data): New type for the private part of the
24590 (Project_Tree_Data): New type for the data of a project tree
24591 (Project_Tree_Ref): New type to designate a project tree
24592 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24593 for the project tree.
24595 * prj-attr.ads: Add with Table; needed, as package Prj no longer
24596 imports package Table.
24598 * prj-com.adb: Remove empty, no longer needed body
24600 * prj-com.ads: Move most of the content of this package to package Prj.
24602 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24603 designate the project node tree and Packages_To_Check to replace
24604 global variable Current_Packages_To_Check.
24605 Add new parameters In_Tree and Packages_To_Check to local subprograms,
24606 when needed. Adapt to changes in project manager with project node tree
24609 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24610 project tree to most subprograms. Move tables and hash tables to
24611 private part of package Prj.
24612 Adapt to changes in project manager using project tree In_Tree.
24614 * prj-makr.adb (Tree): New constant to designate the project node tree
24615 Adapt to change in project manager using project node tree Tree
24617 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24618 display the Library_Src_Dir and the Library_Dir.
24619 Add new parameter In_Tree to designate the project node tree to most
24620 subprograms. Adapt to changes in the project manager, using project tree
24622 (Check_Naming_Scheme): Do not alter the casing on platforms where
24623 the casing of file names is not significant.
24624 (Check): Add new parameter In_Tree to designate the
24626 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24627 designate the project tree.
24628 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24630 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24631 to replace those that were in the private part of package Prj.
24632 Add new parameter In__Tree to designate the project node tree to most
24633 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24634 (Post_Parse_Context_Clause): When specifying the project node of a with
24635 clause, indicate that it is a limited with only if there is "limited"
24636 in the with clause, not necessarily when In_Limited is True.
24637 (Parse): Add new parameter In_Tree to designate the project node tree
24639 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24640 designate the project node tree. Adapt to change in Prj.Tree with
24641 project node tree In_Tree.
24643 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24644 tree In_Tree in the call to function Empty_Process to give its initial
24645 value to the project data Processed_Data.
24646 Add new parameters In_Tree to designate the project tree and
24647 From_Project_Node_Tree to designate the project node tree to several
24648 subprograms. Adapt to change in project manager with project tree
24649 In_Tree and project node tree From_Project_Node_Tree.
24651 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24652 to replace those that were in the private part of package Prj.
24653 Add new parameter In_Tree to designate the project node tree to most
24654 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24656 * prj-tree.ads, prj-tree.adb: Add new parameter of type
24657 Project_Node_Tree_Ref to most subprograms.
24658 Use this new parameter to store project nodes in the designated project
24660 (Project_Node_Tree_Ref): New type to designate a project node tree
24661 (Tree_Private_Part): Change table to dynamic table and hash tables to
24662 dynamic hash tables.
24664 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24665 the project tree to most subprograms. Adapt to changes in project
24666 manager using project tree In_Tree.
24668 * makegpr.adb (Project_Tree): New constant needed to use project
24671 2005-03-15 Olivier Hainque <hainque@adacore.com>
24673 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24674 for sigactions with SA_SIGINFO set. Call
24675 __gnat_adjust_context_for_raise before raising, to perform the
24676 potentially required adjustments to the machine context for the GCC
24679 * raise.h (__gnat_adjust_context_for_raise): New prototype.
24681 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24682 Adjust PC by one in the provided machine context.
24683 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24684 so that the handler is passed the context structure to adjust prior to
24686 (__gnat_error_handler) HPUX: Adjust the signature to match what an
24687 SA_SIGINFO sigaction should look like. Call
24688 __gnat_adjust_context_for_raise before actually raising.
24689 (__gnat_adjust_context_for_raise): Default noop to help PC
24690 adjustments before raise from signal handlers.
24691 (__gnat_error_handler): Indirectly call a predicate function to
24692 determine if a condition should be resignaled or not.
24693 (__gnat_set_resignal_predicate): User interface to modify the predicate.
24694 (__gnat_default_resignal_p): Default GNAT predicate.
24696 2005-03-15 Doug Rupp <rupp@adacore.com>
24698 * adaint.c: Prefix #include of VMS system header files with vms/
24699 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24700 Do not define a dummy function "convert_addresses" under Darwin,
24703 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24706 2005-03-15 Nicolas Setton <setton@adacore.com>
24708 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24711 2005-03-15 Robert Dewar <dewar@adacore.com>
24713 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24716 * a-retide.ads: Minor comment changes
24718 2005-03-15 Robert Dewar <dewar@adacore.com>
24720 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24721 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24722 Realloc_For_Chunk to private part of package.
24723 New subprograms for AI-301
24725 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24726 Get_Line procedure.
24727 Avoid unnecessary use of Get/Set_Wide_String
24729 2005-03-15 Robert Dewar <dewar@adacore.com>
24732 * a-stunau.ads, a-stunau.adb:
24733 Change interface to allow efficient (and correct) implementation
24734 The previous changes to allow extra space in unbounded strings had
24735 left this interface a bit broken.
24737 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24739 * g-spipat.ads, g-spipat.adb: New interface for Get_String
24740 Minor reformatting (function specs)
24742 * g-spitbo.adb: New interface for Get_String
24744 * g-spitbo.ads: Minor reformatting
24746 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24748 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24750 2005-03-15 Javier Miranda <miranda@adacore.com>
24751 Robert Dewar <dewar@adacore.com>
24752 Thomas Quinot <quinot@adacore.com>
24753 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24755 * atree.ads, atree.adb: Add support for Elist24 field
24757 * atree.h: Fix wrong definition of Field27
24758 Add support for Elist16 field
24759 Add support for Elist24 field
24761 * einfo.ads, einfo.adb (Abstract_Interfaces,
24762 Set_Abstract_Interfaces): New subprograms.
24763 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24765 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24766 entities rather than a single node.
24767 (Is_Interface, Set_Is_Interface): New subprogram
24768 (First_Tag_Component): New syntesized attribute
24769 (Next_Tag_Component): New synthesized attribute
24770 (Write_Entity_Flags): Upgraded to write Is_Interface
24771 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24772 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24773 (Task_Body_Procedure): New subprogram to read this attribute.
24774 (Set_Task_Body_Procedure): New subprogram to set this attribute.
24775 (Has_Controlled_Component): Now applies to all entities.
24776 This is only a documentation change, since it always worked to apply
24777 this to other than composite types (yielding false), but now this is
24779 Update documentation on Must_Be_Byte_Aligned for new spec
24781 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24782 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24783 uses of the Access_Disp_Table attribute to reference the first dispatch
24784 table associated with a tagged type. As
24785 part of the implementation of abstract interface types,
24786 Access_Disp_Table has been redefined to contain a list of dispatch
24787 tables (rather than a single dispatch table).
24788 Similarly, upgrade all the references to Tag_Component by the
24789 new attribute First_Tag_Component.
24790 (Find_Inherited_TSS): Moved to exp_tss.
24791 Clean up test in Expand_N_Object_Declaration for cases
24792 where we need to do a separate assignment of the initial value.
24793 (Expand_N_Object_Declaration): If the expression in the
24794 declaration of a tagged type is an aggregate, no need to generate an
24795 additional tag assignment.
24796 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24798 Bit packed array ops are only called if operands are known to be
24800 (Component_Equality): When returning an N_Raise_Program_Error statement,
24801 ensure that its Etype is set to Empty to avoid confusing GIGI (which
24802 expects that only expressions have a bona fide type).
24803 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24804 determine the amount of data to be copied.
24806 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24807 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24808 INTERFACE_TYPE_DEFINITION ::=
24809 [limited | task | protected | synchronized] interface
24810 [AND interface_list]
24812 * par-ch3.adb (P_Type_Declaration): Modified to give support to
24814 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24816 (P_Interface_Type_Definition): New subprogram that parses the new
24817 syntax rule of Ada 2005 interfaces
24818 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24819 messages by the correct RENAMES (quotes removed).
24821 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24822 attribute First_Tag_Component.
24824 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24825 (Interface_List, Set_Interface_List): New subprograms.
24826 (Interface_Present, Set_Interface_Present): New subprograms.
24827 (Limited_Present, Set_Limited_Present): Available also in derived
24828 type definition nodes.
24829 (Protected_Present, Set_Protected_Present): Available also in
24830 record type definition and
24831 derived type definition nodes.
24832 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24833 (Task_Present, Set_Task_Present): New subprogram.
24834 (Task_Body_Procedure): Removed.
24835 (Set_Task_Body_Procedure): Removed.
24836 These subprogram have been removed because the attribute
24837 Task_Body_Procedure has been moved to the corresponding task type
24838 or task subtype entity to leave a field free to store the list
24839 of interfaces implemented by a task (for AI-345)
24840 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24841 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24842 expression flag Do_Range_Check
24843 (Exception_Junk): Change to Flag7 to accomodate above change
24844 (Box_Present, Default_Name, Specification, Set_Box_Present,
24845 Set_Default_Name, Set_Specification): Expand the expression
24846 "X in N_Formal_Subprogram_Declaration" into the corresponding
24847 two comparisons. Required to use the csinfo tool.
24849 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24850 "with string" given.
24852 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24855 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24858 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24859 attribute Task_Body_Procedure rather than the old semantic field that
24860 was available in the task_type_declaration node.
24862 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24863 interface type definitions.
24864 (P_Formal_Derived_Type_Definition): Modified to handle the list of
24867 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24868 task type declaration.
24869 (P_Protected): Modified to handle the list of interfaces in a
24870 protected type declaration.
24872 2005-03-15 Doug Rupp <rupp@adacore.com>
24873 Vincent Celier <celier@adacore.com>
24875 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24876 (Gen_Output_File_C): Likewise.
24877 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24879 2005-03-15 Thomas Quinot <quinot@adacore.com>
24881 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24882 is an N_Raise_Constraint_Error node, create a new copy of it without
24883 going through a call to Duplicate_Subexpr.
24885 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24886 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24887 Nicolas Setton <setton@adacore.com>
24888 Ed Schonberg <schonberg@adacore.com>
24894 * decl.c (gnat_to_gnu_field): Reject aliased components with a
24895 representation clause that prescribes a size not equal to the rounded
24896 size of their types.
24897 (gnat_to_gnu_entity, case E_Component): Always look at
24898 Original_Record_Component if Present and not the entity.
24899 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24900 of tagged extension types by not making field for components that are
24902 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24903 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24904 expression to the type of the object when the object is constant.
24905 Reverse defer_debug_incomplete_list before traversing it, so that trees
24906 are processed in the order at which they were added to the list. This
24907 order is important when using the stabs debug format.
24908 If we are deferring the output of debug information, also defer this
24909 output for a function return type.
24910 When adding fields to a record, prevent emitting debug information
24911 for incomplete records, emit the information only when the record is
24913 (components_to_record): New parameter defer_debug.
24914 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24915 (gnat_to_gnu_field_decl): New function.
24916 (substitution_list, annotate_rep): Call it.
24917 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24918 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24919 No longer update discriminants to not be a COMPONENT_REF.
24920 (copy_alias_set): Strip padding from input type; also handle
24921 unconstrained arrays properly.
24923 * gigi.h (write_record_type_debug_info): New function.
24924 Convert to use ANSI-style prototypes. Remove unused
24925 declarations for emit_stack_check, elab_all_gnat and
24926 set_second_error_entity.
24927 (gnat_to_gnu_field_decl): New decl.
24929 * utils.c (write_record_type_debug_info): New function.
24930 (finish_record_type): Delegate generation of debug information to
24931 write_record_type_debug_info.
24932 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24933 (update_pointer_to): Fix pasto.
24934 (convert) <UNION_TYPE>: Accept slight type variations when
24935 converting to an unchecked union type.
24937 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24938 replace the N_Freeze_Entity with a null statement.
24940 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24941 within a constrained subcomponent of an enclosing record, place the
24942 freeze nodes in the scope stack entry for the enclosing record.
24943 (Undelay_Type): New Subprogram.
24944 (Set_Small_Size): Pass T, the type to modify; all callers changed.
24945 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24946 within records; allow them to have freeze nodes if their base types
24949 * exp_util.adb (Remove_Side_Effects): Properly test for
24950 Expansion_Delayed and handle case when it's inside an
24951 N_Qualified_Expression.
24953 * sem_ch3.adb (Derived_Type_Declaration): New predicate
24954 Comes_From_Generic, to recognize accurately that the parent type in a
24955 derived type declaration can be traced back to a formal type, because
24956 it is one or is derived from one, or because its completion is derived
24958 (Constrain_Component_Type): If component comes from source and has no
24959 explicit constraint, no need to constrain in in a subtype of the
24961 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24962 Minor change to propagate Is_Ada_2005 flag
24964 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24965 Expansion_Delayed is False.
24966 (assoc_to_constructor): Ignore fields that have a
24967 Corresponding_Discriminant.
24968 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24969 function returns "by target", dereference the target pointer using the
24970 type of the actual return value.
24971 <all>: Be prepared for a null gnu_result.
24972 (processed_inline_subprograms): Check flag_really_no_inline
24973 instead of flag_no_inline.
24974 (set_second_error_entity): Remove unused function.
24975 (gnat_to_gnu, case N_Selected_Component): Call
24976 gnat_to_gnu_field_decl.
24977 (assoc_to_constructor): Likewise.
24979 2005-03-15 Robert Dewar <dewar@adacore.com>
24980 Ed Schonberg <schonberg@adacore.com>
24981 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24983 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24984 Must_Be_Byte_Aligned for cases where we do not need to use a
24985 System.Pack_nn unit.
24987 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24989 Needed now that we do some processing for IN parameters as well. This
24990 may well fix some unrelated errors.
24991 (Expand_Call): Handle case of unaligned objects (in particular those
24992 that come from packed arrays).
24993 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24994 renamed entity is an inherited operation, re-expand the call using the
24995 original operation, which is the one to call.
24996 Detect attempt to inline parameterless recursive subprogram.
24997 (Represented_As_Scalar): Fix to work properly with private types
24998 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24999 accurate estimate. Yields True in far fewer cases than before,
25000 improving the quality of code that depends on this test.
25002 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25003 over both visible and private declarations to remove them from tree,
25004 and mark subprograms declared in package as eliminated, to prevent
25005 spurious use in subsequent compilation of generic units in the context.
25007 * exp_util.ads: Minor cleanup in variable names
25009 * sem_eval.ads, sem_eval.adb: Minor reformatting
25010 (Compile_Time_Known_Bounds): New function
25012 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25014 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25015 determining whether an unchecked conversion is needed for the argument
25016 of an initialization call.
25018 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25020 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25021 that appears in the instantiation rather than the internal subtype
25022 generated in the wrapper package, to avoid anomalies in gigi when the
25023 target is derived from a private type whose full view is an access type.
25025 2005-03-15 Robert Dewar <dewar@adacore.com>
25027 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25029 Add documentation to replace the use of this flag
25030 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25033 2005-03-15 Thomas Quinot <quinot@adacore.com>
25035 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25036 here from exp_attr so it can be shared between exp_attr and exp_dist.
25037 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25038 all TSS names, not a subset thereof, and the previous name introduced
25039 an unnecessarily confusion that a distinction might exist between
25040 "OK" TSS names and some "not OK" TSS names.
25042 2005-03-15 Doug Rupp <rupp@adacore.com>
25044 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25047 2005-03-15 Pascal Obry <obry@adacore.com>
25048 Eric Botcazou <ebotcazou@adacore.com>
25052 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25053 when IN_RTS. This is to work around a bootstrap path problem.
25055 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25056 table and pass it to __gnat_install_SEH_handler().
25057 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25059 * lang.opt: Fix specification of -fRTS=.
25061 2005-03-15 Doug Rupp <rupp@adacore.com>
25062 Bernard Banner <banner@adacore.com>
25063 Vincent Celier <celier@adacore.com>
25064 Arnaud Charlet <charlet@adacore.com>
25067 This change works fine when gnatlib is built from the gcc directory,
25068 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25069 is not passed to ada/Makefile.in, so more work is needed by a
25070 Makefile/configure expert.
25072 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25073 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25074 Setup gnatlink switch -M for x86_64 linux, as it is already setup
25076 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25077 Run ranlib on libgccprefix.a
25078 Define PREFIX_OBJS for Darwin, to build libgccprefix.
25079 (ADA_INCLUDE_SRCS): Split Ada packages.
25081 2005-03-15 Robert Dewar <dewar@adacore.com>
25083 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25085 * impunit.adb: Add GNAT.UTF_32
25087 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25089 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25090 now uses GNAT.UTF_32).
25092 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25093 capabilities for categorizing characters using Unicode categories
25095 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25097 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25098 instantiation that has been rewritten as a package body, retrieve spec
25099 to generate proper name for implicit_with_clause.
25100 (Install_Parents): Recognize a parent that is an instantiation but has
25101 been rewritten as a package declaration during analysis.
25103 2005-03-15 Javier Miranda <miranda@adacore.com>
25104 Ed Schonberg <schonberg@adacore.com>
25106 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25107 parameter reported some error we immediately return. This improves the
25108 behaviour of the frontend in case of errors.
25109 (Install_Parent, Remove_Parent): Introduce new flag
25110 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25111 ancestor of a generic child unit, when the child is being instantiated.
25112 (Inline_Instance_Body): If we are compiling the private
25113 part or the body of a child unit, restore the proper visibility of the
25114 parents after compiling the instance body.
25116 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25117 Javier Miranda <miranda@adacore.com>
25120 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25121 of a private type, in which case it is underlying_type that denotes
25122 the proper task. Also modified to use the new entity attribute
25123 that is directly available in the task type and task subtype entities
25124 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25125 arrays when other dimensions than the first are constrained by
25126 discriminants of an enclosing record.
25127 (Insert_Explicit_Dereference): If the prefix is an indexed component or
25128 a combination of indexed and selected components, find ultimate entity
25129 and generate the appropriate reference for it, to suppress spurious
25131 (Note_Possible_Modification): If an entity name has no entity, return.
25132 (Is_Variable): A function call never denotes a variable.
25133 (Requires_Transient_Scope): For record types, recurse only on
25134 components, not on internal subtypes that may have been generated for
25135 constrained components.
25137 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25139 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25140 Eliminated as candidates for resolution. Both efficient, and avoids
25141 anomalies with operators declared in deleted code.
25142 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25143 expansion is disabled (as when compiling a generic) to prevent spurious
25144 warnings on prefixes of selected components.
25146 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25148 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25149 attached to a list before checking whether it appears in the private
25150 declarations of the current package.
25151 (Make_Inequality_Operator): Insert declaration in proper declarative
25152 list rather than just setting the Parent field, so that
25153 Is_Private_Declaration can handle it properly.
25155 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25157 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25158 a renaming a body, check that the renamed subprogram in not intrinsic.
25159 (Find_Direct_Name): If several use_visible entities hide
25160 each other, and the context is a predefined file compiled through
25161 rtsfind, keep only the entity that comes from a predefined file.
25163 2005-03-15 Geert Bosch <bosch@adacore.com>
25165 * s-fatgen.adb (Valid): Extend special exceptions to account for long
25166 long float padding to also cover AMD64 and IA64.
25168 2005-03-15 Gary Dismukes <dismukes@adacore.com>
25170 * s-imgwch.adb: Add with and use of Interfaces.
25171 (Img_Wide_Character): Change type of Val to Unsigned_16.
25172 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25174 2005-03-15 Matthew Gingell <gingell@adacore.com>
25176 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25178 2005-03-15 Robert Dewar <dewar@adacore.com>
25180 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25182 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25184 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25186 2005-03-15 Robert Dewar <dewar@adacore.com>
25188 * s-bitops.adb, s-bitops.ads,
25189 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25190 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25191 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25192 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25193 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25194 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25195 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25196 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25199 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25201 * utils2.c (build_binary_op): Fix typo.
25203 2005-03-15 Doug Rupp <rupp@adacore.com>
25205 * s-crtl.ads (popen,pclose): New imports.
25207 2005-03-15 Cyrille Comar <comar@adacore.com>
25209 * comperr.adb (Compiler_Abort): remove references to obsolete
25210 procedures in the bug boxes for various GNAT builds.
25212 2005-03-15 Vincent Celier <celier@adacore.com>
25214 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25216 2005-03-15 Geert Bosch <bosch@adacore.com>
25217 Arnaud Charlet <charlet@adacore.com>
25218 Robert Dewar <dewar@adacore.com>
25219 Cyrille Comar <comar@adacore.com>
25220 Sergey Rybin <rybin@adacore.com>
25222 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25223 too specific and long-winded to be appropriate for the GNAT User's
25225 Warn about use of GCC switches not documented in the GNAT User's Guide,
25226 as these may cause generated code to not conform to Ada semantics.
25227 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25228 Add documentation for -gnat95 and -gnat05 switches
25229 Remove paragraph documenting obsolete way to refer to third party
25231 Add a few references to Ada_05 that were missing.
25232 Update documentation on -gnatZ/-gnatL.
25233 Document limitation when using -m64 under Solaris.
25234 Change the "Name Casing" subsection of the pretty-printer section
25235 according to the changes in the dictionary processing.
25237 * gnat_rm.texi: Document the Ada_05 pragma.
25238 Section on record representation clauses describes the new more
25239 relaxed rules about placement of large packed bit array components.
25240 Add documentation of GNAT.UTF_32
25242 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25244 * misc.c (gnat_post_options): Turn off structural
25247 2005-03-08 Laurent Guerby <laurent@guerby.net>
25249 * system-linux-sparc.ads: Fix typo in previous commit.
25251 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25252 Laurent Guerby <laurent@guerby.net>
25255 * system-linux-sparc.ads: New.
25256 * Makefile.in: Add sparc linux entry.
25258 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25260 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25261 parameters as unused.
25263 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25264 Partial merge from libada-gnattools-branch:
25266 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25267 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25268 into code in gnattools/Makefile.in. Remove direct dependencies on
25269 stamp-tools by tools clauses.
25270 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25271 * config-lang.in: Add gnattools to $lang_dirs.
25273 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25276 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25277 we asked for an unknown mode.
25279 2005-02-12 Richard Henderson <rth@redhat.com>
25281 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25282 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25284 2005-02-10 Andreas Jaeger <aj@suse.de>
25286 * init.c (__gnat_initialize): Mark parameter as unused.
25288 2005-02-09 Doug Rupp <rupp@adacore.com>
25290 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25291 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25293 2005-02-09 Doug Rupp <rupp@adacore.com>
25295 * gnatchop.adb (dup, dup2),
25296 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25298 * gnatlbr.adb (mkdir),
25299 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25301 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25303 2005-02-09 Doug Rupp <rupp@adacore.com>
25305 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25307 2005-02-09 Robert Dewar <dewar@adacore.com>
25308 Thomas Quinot <quinot@adacore.com>
25309 Javier Miranda <miranda@adacore.com>
25310 Pascal Obry <obry@adacore.com>
25311 Ed Schonberg <schonberg@adacore.com>
25312 Doug Rupp <rupp@adacore.com>
25313 Gary Dismukes <dismukes@adacore.com>
25314 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25316 * g-zstspl.ads: New file.
25318 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25320 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25322 Add definition of Wide_Wide_Space for AI-285
25324 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25325 interface (to support Ada 95 and Ada 2005 units).
25326 Add Unbounded_IO files
25327 Add entries for Wide_Wide packages for AI-285
25328 Add list of containers packages to Ada 2005 unit list
25330 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25331 support new Unbounded_IO package cleanly.
25333 * g-utf_32.ads, g-utf_32.adb: New files.
25335 * Makefile.rtl: Add entry for g-utf_32
25336 Add new files for Unbounded_IO
25337 Adjust make file for new AI-285 wide wide packages
25338 Add AI-302 containers to the run time.
25340 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25341 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25342 subprograms for AI-301.
25344 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25346 * a-stunau.ads: Minor comment correction
25348 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25350 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25351 (Check_RPC): Update to match changes in expanded code.
25352 Clean up unused entity.
25354 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25355 was not taken into account.
25356 This includes proper initialization with Normalize_Scalars.
25357 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25358 normalize scalars cases (particularly the latter) to do a better job
25359 of finding invalid representations.
25361 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25363 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25366 * exp_dist.adb: Add support for wide wide character type
25367 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25368 private part, generate stub bodies at the end of the private part,
25369 not the visible part.
25370 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25372 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25373 generic wrapper to execute final processing after completing the
25374 expansion of the RPC receiver for an RACW.
25376 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25377 packages and attributes.
25378 (Preset_Names): Addition of the new reserved words of Ada 2005,
25379 that is interface, overriding and synchronized.
25380 (Get_Pragma_Id): Give support to the use of the new reserved word
25381 "interface" as a pragma name.
25382 (Is_Pragma_Name): Give support to the use of the new reserved word
25383 "interface" as a pragma name.
25384 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25385 attribute implementation.
25387 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25388 checks to entities that are output parameters of Asm operations.
25389 Handle the Stream_Size attribute.
25390 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25392 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25394 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25395 for second parameter being 0.0.
25396 Add support for wide wide character type.
25397 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25399 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25400 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25401 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25402 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25403 for wide wide character cases.
25405 * cstand.adb: Create entities for Wide_Wide_Character and
25408 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25409 accordance with AI-258.
25410 Add new declarations for 16/32 bit C character types (Part of AI285)
25412 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25413 (Obsolescent_Warning): New field
25414 (Rep_Clause): New local subprogram used to share code. Returns the rep
25415 clause for which the name is given in parameter.
25416 (Has_Stream_Size_Clause): New routine.
25417 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25418 (Address_Clause): Implementation is now using Rep_Clause.
25419 (Alignment_Clause): Idem.
25420 (Size_Clause): Idem.
25422 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25423 entity in non-Ada 2005 mode and generate warning.
25425 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25426 (Prag): Code cleanup. Remove old gnat pragma "overriding"
25428 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25429 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25430 on the named unit if the pragma is not in the current compilation unit,
25431 so that elaboration calls in the current unit can set up an elaboration
25432 dependency on the named unit, as needed.
25433 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25434 subprogram as well as for subprograms declared within a package.
25435 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25438 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25439 to z) to avoid some instances of duplication for Wide_Wide packages.
25441 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25444 * scn.adb: Char_Literal_Value field is now a Uint
25446 * scng.adb: Significant rewrite to handle new Ada 2005 features
25447 allowing wide and wide wide characters in program text, e.g. for
25448 identifiers, as described in AI-285.
25449 (Set_Reserved): New procedure, makes setting up keywords cleaner.
25450 (Initialize_Scanner): Register the new reserved words of Ada 2005.
25451 (Scan): Give support to the new reserved words.
25453 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25454 warning notifying that interface, overriding, and synchronized are
25455 new reserved words.
25456 (P_Pragma): Allow the use of the new reserved word "interface" as
25459 * gnatls.adb, gnatbind.adb,
25460 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25461 identifiers named "interface" to "SAL_Interface".
25463 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25464 (Structured Exception handling).
25465 (Gen_Main_C): Idem.
25468 (Gen_Main_Ada): Set the default exit code if specified.
25469 (Gen_Main_C): Likewise.
25471 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25472 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25474 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25477 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25478 has a collision with the new Ada 2005 "interface" reserved word.
25480 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25481 generate a warning notifying that interface, overriding, and
25482 synchronized are new reserved words.
25484 * scans.ads (Token_Type): Addition of the tokens corresponding to the
25485 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25486 and Tok_Synchronized.
25488 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25489 "dispatching" rather than "primitive" operations, since dispatching
25490 calls are now allowed to abstract formal subprograms (which are not
25492 Char_Literal_Value field is now a Uint
25493 (Resolve_Slice): If the prefix is an access to an unconstrained array,
25494 compute the actual subtype of the designated object to impose the proper
25496 (Resolve_Selected_Component): Do not insert an access check if the
25497 prefix is an access type: such a node is expanded into an explicit
25498 dereference, on which the access check is performed anyway. Removes
25499 expensive duplicate checks.
25500 (Resolve_Call): Use new flag Is_Obsolescent and field
25501 Obsolescent_Warning so that pragma Obsolescent works on library
25503 Add support for wide wide character type
25504 (Resolve_Allocator): Replace the error message on wrong null-exclusion
25505 value by a warning message.
25506 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25507 as fixed-point, and one of the operands is non-static and universal, it
25508 can only be an illegal exponentiation operation, in which case there is
25509 no real value to retrieve.
25511 * exp_strm.adb: Add support for wide wide character type
25512 (Build_Elementary_Input_Call): Compute the size of the stream element by
25513 querying the rep chain to find the Stream_Attribute attribute value.
25514 (Build_Elementary_Write_Call): Ditto.
25516 * sem_aggr.adb: Char_Literal_Value field is now a Uint
25517 Add support for wide wide character type
25518 Replace the error messages on wrong null-exclusion value by warnings
25519 as described in Ada 2005.
25520 (Resolve_Extension_Aggregate): Document the fact that the error
25521 message on class-wide expressions in extensions aggregates.
25523 * sem_case.adb: Add support for wide wide character type
25525 * sem_ch13.adb: Add support for wide wide character type
25526 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25528 * sem_ch3.adb: Add support for wide wide character type
25529 (Process_Subtype): If constraint is illegal for the type, set Ekind of
25530 now-useless Itype, to prevent cascaded errors on a compiler built
25533 * sem_ch8.adb: Add with and use of Sem_Disp.
25534 (Analyze_Subprogram_Renaming): Replace unclean uses of
25535 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25536 of Corresponding_Spec to Empty).
25537 (Attribute_Renaming): Replace use of Corresponding_Spec with
25538 Corresponding_ Formal_Spec and simplify condition.
25539 (Use_One_Package): Check that scope of homonym of identifier is defined,
25540 before checking whether it is a wrapper package.
25541 Add support for wide wide character type
25543 * sem_eval.adb: Add support for wide wide character type.
25544 (Eval_Arithmetic_Op): Check for compile time known signed integer
25545 overflow in the non-static case.
25546 (Subtypes_Statically_Match): A formal scalar type and its base type do
25547 not statically match.
25549 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25550 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25552 (Unit_Declaration_Node): Ditto.
25553 (Is_Variable_Prefix): For the case of an indexed component whose prefix
25554 has a packed array type, the prefix has been rewritten into a type
25555 conversion. Determine variable-ness from the converted expression.
25556 Handle wide wide character cases.
25558 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25560 * stringt.ads, stringt.adb: Handle full UTF-32 range.
25561 Remove ["0A"] from comment, since it can look like a line terminator.
25562 Currently we don't permit this, but this is under discussion by the
25563 ARG, and it is easy enough to use a different example.
25565 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25566 handling UTF-32 encoding for wide wide character.
25567 Implement new brackets coding ["hhhhhhhh"]
25568 Add UTF-8 encodings for full UTF-32 range
25570 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25572 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25573 bit range Add full UTF-32 support.
25574 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25575 notify that constraint error will be raised at run-time
25576 because a null value is assigned to a null-excluding object.
25577 Remove some obsolete declarations and make Char_Code
25580 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25581 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25582 Rcheck subprograms.
25584 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25585 wrong null-exclusion value by a warning message.
25586 (Enable_Range_Check): Do range check if the prefix is an
25587 explicit dereference whose designated object is an unconstrained array.
25588 Current algorithm for removing duplicate checks is over-eager in this
25591 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25592 null-exclusion value by a warning message
25594 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25595 completely. Add support for Uint2 field
25597 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25598 exp_prag.adb: Char_Literal_Value field is now a Uint.
25600 * exp_util.adb (Insert_Actions): Replace
25601 N_Formal_Subprogram_Declaration by
25602 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25603 Char_Literal_Value field is now a Uint.
25605 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25606 defined for subprogram renaming declarations. When set, the field
25607 indicates the defining entity of a corresponding formal subprogram
25608 when the renaming corresponds to a formal subprogram association in an
25610 (Set_Corresponding_Formal_Spec): New procedure to return
25611 Corresponding_Formal_Spec field.
25612 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25613 (which is now a subtype).
25614 Char_Literal_Value field is now a Uint
25616 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25617 pointer to the base of the dispatch table.
25618 Minor changes to comments.
25619 (Controlling_Type): New function for determining the tagged type
25620 associated with a tagged primitive subprogram.
25621 (Expand_Dispatching_Call): Add support for a controlling actual that is
25622 directly a value of type Ada.Tag rather than a tagged object.
25624 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25625 describing the new layout.
25626 (Dispatch_Table): The expander computes the actual array size, allocates
25627 the Dispatch_Table record accordingly, and generates code that displaces
25628 the base of the record after the Typeinfo_Ptr component. The access to
25629 these components is done by means of local functions.
25630 (Offset_To_Top): New function.
25631 (Typeinfo_Ptr): New function.
25632 (Get_TSD): Modified to access the new position of the TSD.
25633 (Set_TSD): Modified to save the TSD in its new position.
25635 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25636 case of formal abstract subprograms. Add check and message for -gnat05.
25639 * sem_ch12.adb: Add with and use for Sem_Disp.
25640 (Analyze_Associations): Minor change from "=" to "in" for use of
25641 N_Formal_Subtype_Declaration (which is now a subtype).
25642 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25643 N_Formal_Subtype_Declaration (which is now a subtype).
25644 (Analyze_Formal_Subprogram): Add handling for
25645 N_Formal_Abstract_Subprogram, marking the formal as abstract and
25646 dispatching, setting the controlling status of the formal parameters
25647 and result, and issuing an error if there is no controlling type for
25648 the formal subprogram.
25649 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25650 which is an unclean use of that field, we set the new field
25651 Corresponding_Formal_Spec to make the formal subprogram available to
25652 processing in Analyze_Subprogram_Declaration.
25653 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25654 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25655 Constrained, so that it is is does not statically match its anonymous
25658 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25659 abstract formal subprograms in error check for functions returning
25660 abstract types. Set scope of new designator for
25661 a parameterless subprogram, so that it is available when checking the
25662 body for nested subprograms, before full analysis of said body.
25663 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25664 subprogram only if inner one comes from source.
25665 (Analyze_Function_Call): If the call is given in object notation, the
25666 analysis of the name rewrites the node and analyzes it with the proper
25667 argument list. After analyzing the name, if the call has been rewritten
25668 and the result type is set, no further analysis is needed.
25669 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25670 mark in function specification, in a context where the formals are
25671 visible and hide outer homographs.
25673 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25674 as the tagged type for the cases of abstract formal subprograms and
25675 renamings of those. Clean up spec comments.
25676 (Check_Dispatching_Context): Add error message to indicate "abstract
25677 procedure", covering the case of a call to a formal abstract procedure
25678 that has statically tagged operands.
25679 (Check_Dispatching_Call): Check for the case of an actual given by
25680 a tag-indeterminate function call whose type is an ancestor of the
25681 containing call's associated tagged type. This situation can occur
25682 for inherited primitives with function defaults. In this case we
25683 use the tagged type's tag directly as the controlling argument for
25685 (Expand_Call): Name change on call to Expand_Dispatch_Call.
25687 * sprint.adb (Sprint_Node_Actual): Split
25688 N_Formal_Subprogram_Declaration into two alternatives for the new
25689 cases N_Formal_Abstract_Subprogram_Declaration and
25690 N_Formal_Concrete_Subprogram_Declaration.
25691 Char_Literal_Value field is now a Uint.
25693 * trans.c: Get rid of junk Uint2 reference.
25694 Char_Literal_Value field is now a Uint.
25695 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25696 (gigi): Correct third arg to gimplify_body.
25698 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25699 (TYPE_LANG_FLAG_0): Check for record or union.
25701 * treepr.adb: Char_Literal_Value field is now a Uint
25703 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25706 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25707 Add full UTF-32 support
25708 Char_Code is now 32 bits
25710 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25711 wide character UTF_32 line terminators.
25712 Initialize Main_Source_File to avoid error when no main
25715 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25716 (Main_Source_File) when no main source has been loaded, to avoid
25719 2005-02-09 Robert Dewar <dewar@adacore.com>
25721 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25722 Fix name of Set routine
25724 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25727 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25728 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25731 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25732 forms of Get_Line subprograms for AI-301.
25734 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25735 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25736 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25737 a-stwima.ads: Minor reformatting.
25739 2005-02-09 Doug Rupp <rupp@adacore.com>
25740 Thomas Quinot <quinot@adacore.com>
25742 * adaint.c, adaint.h
25743 [VMS] (to_ptr32): New function.
25744 (MAYBE_TO_PTR32): New macro.
25745 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25747 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25748 [VMS] (#define fork()): Remove since unneccessary.
25749 (__gnat_set_close_on_exec): New routine to support
25750 GNAT.OS_Lib.Set_Close_On_Exec.
25752 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25753 the parent side as close-on-exec so that they are not inherited by the
25756 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25757 set or clear the FD_CLOEXEC flag on a file descriptor.
25759 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
25760 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25764 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25765 on the field if Pragma Component_Alignment (Storage_Unit).
25766 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25767 side-effects as if it were a constant; also make SAVE_EXPR to protect
25769 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25771 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25772 (components_to_record): Test it.
25773 Fix improper usage of REFERENCE_CLASS_P.
25775 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25778 * utils2.c: Minor reformatting.
25780 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25781 handle other cases like RECORD_TYPE.
25783 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25785 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25787 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25788 component of an array of arrays in an assignment context, and the
25789 aggregate has component associations that require sliding on
25790 assignment, force reanalysis of the aggregate to generate a temporary
25791 before the assignment.
25792 (Must_Slide): Make global to the package, for use in Gen_Assign.
25794 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25796 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25797 unchecked union with no inferable discriminants, return a
25798 Raise_Program_Error node, rather than inserting it at the point the
25800 (Expand_Record_Equality, Component_Equality): Handle properly the case
25801 where some subcomponent is an unchecked union whose generated equality
25802 code raises program error.
25804 2005-02-09 Doug Rupp <rupp@adacore.com>
25806 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25807 [VMS] (#define exit hack): Remove.
25809 2005-02-09 Pascal Obry <obry@adacore.com>
25810 Arnaud Charlet <charlet@adacore.com>
25812 * init.c (__gnat_initialize): Add a new parameter eh which contains the
25813 address of the exception registration. The Win32 version of this
25814 routine calls __gnat_install_SEH_handler() to initialize the SEH
25815 (Structured Exception Handling) handler.
25816 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25817 SEH (Structured Exception Handling) now.
25818 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25819 (__gnat_initialize for ppc-vxworks): Adjust comments and the
25820 preprocessor condition protecting the call to the extra eh setup
25821 subprogram, which is only available for the ppc target.
25822 (__gnat_clear_exception_count): replaced reference to
25823 variable taskIdCurrent by call to taskIdSelf(), cleaner.
25825 * seh_init.c: New file.
25827 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25828 (GNATBIND_OBJS): Idem.
25830 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25831 routine takes a new parameter (a pointer to the exception registration
25832 for the SEH (Structured Exception Handling) support.
25834 * raise.h: (__gnat_install_SEH_handler): New prototype.
25835 Update copyright notice.
25837 * s-tassta.adb (Task_Wrapper): Declare the exception registration
25838 record and initialize it by calling __gnat_install_SEH_handler.
25840 2005-02-09 Vincent Celier <celier@adacore.com>
25842 * make.adb (Gnatmake): Do not fail when the main project has no object
25845 2005-02-09 Doug Rupp <rupp@adacore.com>
25847 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25848 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25849 [VMS]: Add translations for g-enblsp.adb.
25851 * s-asthan-vms.adb: Removed.
25852 * s-asthan-vms-alpha.adb: Added.
25854 2005-02-09 Pascal Obry <obry@adacore.com>
25856 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25857 (LIBGNAT_OBJS): Add seh_init.o.
25859 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25862 * Makefile.in: Link all gnat tools with -static-libgcc, since
25863 -shared-libgcc is now used by default on some systems (e.g. linux with
25865 Remove references to Makefile.prolog/generic, no longer used.
25867 2005-02-09 Vincent Celier <celier@adacore.com>
25869 * prj-makr.adb (Process_Directory): Put file name in canonical case
25870 before matching against the patterns.
25871 If gnatname has been invoked as <prefix>-gnatname
25872 then invoke the compiler as <prefix>-gcc, not just "gcc".
25874 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25876 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25877 with expansion disabled. The actual subtype is needed among other
25878 places when the selected component appears in the context of a loop
25879 bound, and denotes a packed array.
25880 (Operator_Check): Always use the first subtype in the
25881 error message, to avoid the appearance of internal base types.
25882 (Transform_Object_Operation): Copy each actual in full
25883 to the parameter associations of the constructed call, rather than
25884 using the shallow copy mechanism of New_Copy_List. This ensures that
25885 the chaining of named associations is done properly.
25886 (Complete_Object_Operation): Rewrite node, rather than
25887 replacing it, so that we can trace back to the original selected
25890 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25891 and calls that use object notation, if the called function is not
25892 declared in a withed unit, place the elaboration constraint on the
25893 unit in the context that makes the function accessible.
25894 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25895 imposes an elaboration constraint between two packages.
25897 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25899 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25900 views of a private type after handling its private dependents, to
25901 maintain proper stack discipline between entry and exit from the
25904 2005-02-09 Cyrille Comar <comar@adacore.com>
25906 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25907 Minor reformatting.
25909 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25911 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25912 fields for foreign threads.
25914 2005-02-09 Doug Rupp <rupp@adacore.com>
25916 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25917 recursion warnings when compiled with -gnatdm.
25919 2005-02-09 Robert Dewar <dewar@adacore.com>
25921 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25922 Slight fix to documentation of -gnaty with no parameters
25924 * xr_tabls.ads: Add ??? comment for missing overall comment
25926 * xsinfo.adb: Make default file name be sinfo.h, since this is what
25927 we now use by default.
25929 * xsnames.adb: Adjust end of file test to look for five space followed
25930 by '#' instead of six spaces. The format of xsnames.adb was modified
25931 in the last update.
25933 * a-numeri.ads: Add reference to AI-388 for greek letter pi
25936 * clean.adb: Minor reformatting.
25938 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25939 gnatname.adb: Minor reformatting
25940 Add 2005 to copyright output when utility is run
25942 * csets.adb: Eliminate obsolete comment
25944 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25947 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25949 2005-02-09 Sergey Rybin <rybin@adacore.com>
25951 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25952 the difference between compact and incompact layout and add the record
25953 representation clause to the example illustrating different layouts.
25954 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25955 component clauses").
25957 2005-02-09 Florian Villoing <villoing@adacore.com>
25959 * gnat_ugn.texi: Fix typos.
25960 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25962 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25963 in the generated documentation.
25965 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25967 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25969 Update linker wrapper when linking with non GNU C++.
25971 2005-02-09 Pascal Obry <obry@adacore.com>
25974 Document the procedure to debug the DllMain routine on Windows.
25975 Add note about -funwind-tables and mixed Ada and C/C++ programming in
25977 Document new BIND qualifer /RETURN_CODES=VMS.
25979 2005-02-09 Ben Brosgol <brosgol@adacore.com>
25981 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25982 Edited gnatmetric chapter
25984 2005-02-09 Robert Dewar <dewar@adacore.com>
25987 Changes to document new wide wide character support
25989 Update documentation on Normalize_Scalars and Initialize_Scalars
25991 2005-02-09 Pascal Obry <obry@adacore.com>
25993 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25995 2005-02-09 Jose Ruiz <ruiz@adacore.com>
25997 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25998 from the VxWorks kernel) that is needed for getting the active
25999 priority of the different tasks.
26001 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26002 Use a pragma Elaborate_Body in the spec file instead.
26003 Noticed by code reading.
26005 2005-02-09 Thomas Quinot <quinot@adacore.com>
26007 * exp_util.ads: Minor correction in comment.
26009 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26011 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26012 since this procedure is now too complex to be worth inlining.
26014 2005-02-09 Richard Henderson <rth@redhat.com>
26016 * utils.c (gnat_define_builtin): Remove.
26017 (gnat_install_builtins): Use build_common_builtin_nodes.
26019 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26021 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26022 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26023 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26024 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26025 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26026 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26027 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26028 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26029 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26030 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26031 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26032 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26033 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26034 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26035 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26036 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26037 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26038 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26039 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26040 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26041 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26042 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26043 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26044 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26045 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26046 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26047 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26048 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26049 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26050 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26051 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26052 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26053 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26054 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26057 2005-01-27 Laurent Guerby <laurent@guerby.net>
26059 * Makefile.in: Fix a-intnam.ads from previous commit,
26060 add 2005 to copyright.
26061 * a-intman-rtems.ads: Renamed to...
26062 * a-intnam-rtems.ads:
26064 2005-01-27 Laurent Guerby <laurent@guerby.net>
26066 * Makefile.in: Rename GNAT RTEMS specific files.
26067 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26068 5rosinte.ads, 5rparame.adb: Replaced by files below.
26069 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26070 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26072 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
26073 Laurent Guerby <laurent@guerby.net>
26076 * 5rosinte.ads: Add No_Key constant.
26077 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26078 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26080 2005-01-26 Laurent Guerby <laurent@guerby.net>
26083 * i-cobol.adb (Valid_Numeric): Handle zero length case.
26085 2005-01-20 Richard Henderson <rth@redhat.com>
26087 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26088 a-intnam-linux.ads and system-linux-alpha.ads.
26089 * a-intnam-linux-alpha.ads: Remove file.
26090 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26091 * system-linux-alpha.ads: New file.
26093 2005-01-18 Jakub Jelinek <jakub@redhat.com>
26096 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26097 set to the new string.
26099 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
26101 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26104 2005-01-18 Richard Henderson <rth@redhat.com>
26106 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26107 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26109 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26111 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
26113 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26114 (GCC_ZCX_Support): Likewise.
26116 2005-01-11 Bastian Blank <waldi@debian.org>
26118 * system-linux-s390.ads: Define Preallocated_Stacks.
26119 * system-linux-s390x.ads: Likewise.
26121 2005-01-04 Arnaud Charlet <charlet@adacore.com>
26123 * gnat_ugn.texi: Fix texi errors with null variables.
26125 2005-01-03 Thomas Quinot <quinot@adacore.com>
26127 * gen-soccon.c: New utility program to generate g-soccon.ads
26130 * socket.c, gsocket.h: Split inclusion of system header files into a
26131 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26133 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26134 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26135 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26136 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26137 should not be edited by hand anymore, but should be regenerated using
26140 2005-01-03 Robert Dewar <dewar@adacore.com>
26141 Ed Schonberg <schonberg@adacore.com>
26142 Vincent Celier <celier@adacore.com>
26144 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26145 on/off, since this is an obsolescent feature, for which we now generate
26148 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26149 warning mode is set and obsolescent usage of this attribute occurs.
26150 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26151 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26152 predates, and partly motivates, the adoption of the AI.
26153 Implement new Ada 2005 attribute Mod
26155 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26158 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26160 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26161 pragma restrictions.
26162 New entry for Ada 2005 attribute Mod.
26165 Add recognition of new pragma Restrictions No_Dependence
26166 Recognize restriction No_Obsolescent_Features at parse time
26168 * bcheck.adb: Add circuitry for checking for consistency of
26169 No_Dependence restrictions.
26171 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26174 * restrict.ads, restrict.adb: Add subprograms to deal with
26175 No_Dependence restrictions.
26177 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26180 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26181 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26183 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26184 dummy parameter to scng instantiation.
26185 Needed for new restriction No_Obsolescent_Features
26187 * scn.adb: (Obsolescent_Check): New procedure
26188 Needed for new restriction No_Obsolescent_Features
26190 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26191 specified by AI-285, needed for implementation of AI-388 (adding greek
26192 pi to Ada.Numerics).
26193 Add new generic formal to scng, needed for new restriction
26194 No_Obsolescent_Features.
26196 * s-rident.ads: Add new restriction No_Obsolescent_Features.
26198 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26199 restrictions lines.
26200 (Scan_ALI): When finding an unexpected character on an R line, raise
26201 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26202 Ignore_Errors is True, default restrictions are set and scanning of the
26203 ALI file continues with the next line. Also, when Bad_R_Line is raised
26204 and Ignore_Errors is True, skip to the end of le line.
26206 * sem_ch10.adb: Check that explicit with's do not violate
26207 No_Dependence restrictions.
26208 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26209 illegal context clauses containing child units of instance.
26211 * sem_prag.adb: Processing and checking for new No_Dependence
26213 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26214 analyze and check the External argument.
26216 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26218 2005-01-03 Robert Dewar <dewar@adacore.com>
26220 * atree.adb: Add a fifth component to entities
26221 This allows us to add 32 flags and four new fields
26223 * atree.ads: Add a fifth component to entities
26224 This allows us to add 32 flags and four new fields
26226 * einfo.ads, einfo.adb: Document new fields and new flags now available
26227 Add routines for printing new fields
26229 * treepr.adb: Call routines to print out additional fields if present
26231 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26233 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26234 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26236 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26237 Remove gpr2make, replaced by gprmake.
26238 Remove references to gnatmem and libaddr2line.
26239 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26240 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26241 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26242 a-numaux-darwin.ads and a-numaux-darwin.adb
26243 Enable mlib-tgt-lynxos.adb on lynxos.
26245 * Make-lang.in: Remove rules for gpr2make.
26246 When generating sdefault.adb, do not call Relocate_Path
26247 on S3 for function Target_Name, as it is not a path.
26248 Remove references to gnatmem and libaddr2line.
26250 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26253 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26255 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26256 address is incompatible with its base type alignment constraints when
26257 this can be decided statically.
26259 2005-01-03 Olivier Hainque <hainque@adacore.com>
26261 * decl.c (compatible_signatures_p): New function. The intended purpose
26262 is to check if two function signatures for a call-site and a callee are
26263 compatible enough for the call to be valid. The underlying purpose is
26264 to check if a call to a mapped builtin is using the right interface.
26265 The current code actually does not check antyhing - this a placeholder
26266 for future refinements.
26267 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26268 builtin calls for convention Intrinsic.
26270 * gigi.h (builtin_decl_for): Declare (new function).
26272 * utils.c (gnat_install_builtins): Install the target specific builtins.
26273 (builtin_decl_for): New function, provide a dummy body for now.
26275 2005-01-03 Geert Bosch <bosch@adacore.com>
26277 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26278 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26279 (Pred): Implement in terms of Succ.
26281 * trans.c (convert_with_check): Reimplement conversion of float to
26284 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26285 Vincent Celier <celier@adacore.com>
26287 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26288 bounds can be negative, and must be declared Int, not Nat.
26290 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26291 array is checked after using the index in the array.
26293 * makegpr.adb (Add_Switches): Check if there is a package for the
26294 processor. If there is no package, do not look for switches.
26296 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26298 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26299 generation of predefined stream operations (specs and bodies) should
26300 proceed. Under various restrictions these subprograms must not be
26303 2005-01-03 Thomas Quinot <quinot@adacore.com>
26306 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26307 amount of PCS-specific code in RACW stubs generation.
26308 (Copy_Specification): Set Etype on copied formal parameter entities, as
26309 this information is needed for PolyORB stubs generation.
26310 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26311 variable Dynamic_Async.
26312 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26313 (Build_RPC_Receiver_Specification): Make generic again, as recent
26314 changes have allowed RPC receivers to have the same profile for both
26315 variants of the PCS.
26316 Reorganise RPC receiver generation to reduce differences between the
26317 structure of GARLIC and PolyORB RPC receivers.
26318 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26320 Simplify elaboration code for RCI packages.
26322 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26323 generation to reduce differences between the structure of GARLIC and
26324 PolyORB RPC receivers.
26326 * s-stratt.adb: Fix typo in comment.
26328 2005-01-03 Thomas Quinot <quinot@adacore.com>
26330 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26331 copied from Make_Init_Call).
26333 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26334 reads and assignments on a temporary variable declared with appropriate
26337 2005-01-03 Robert Dewar <dewar@adacore.com>
26339 * i-c.adb (To_C): Raise CE if string is null and Append_Null
26341 2005-01-03 Robert Dewar <dewar@adacore.com>
26343 * i-cstrin.adb (Update): Do not append a null in form called with a
26344 String. This avoids unintended behavior.
26346 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26349 * init.c: Fix warnings on Free BSD section.
26351 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26354 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26357 2005-01-03 Vincent Celier <celier@adacore.com>
26359 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26360 libraries when Unique_Compile is True (-u switch).
26363 2005-01-03 Robert Dewar <dewar@adacore.com>
26365 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26366 upper case letter or underscore after W, as allowed by spec.
26368 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26370 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26371 darwin port by using proper type definitions from header files.
26372 Use SIGTERM instead of SIGABRT for SIGADAABORT.
26374 2005-01-03 Robert Dewar <dewar@adacore.com>
26376 * par.adb: Enhance error message handling for configuration file
26379 2005-01-03 Robert Dewar <dewar@adacore.com>
26381 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26382 removed during the previous update (test properly for case of dividing
26383 largest negative number by -1, which generates overflow).
26385 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26386 Sergey Rybin <rybin@adacore.com>
26388 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26389 to use as the defining identifier for a formal package.
26390 (Remove_Parent): If the instance takes place within (an instance of)
26391 a sibling, preserve private declarations of common parent.
26393 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26395 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26396 to determine whether one of the operands is a fixed-point type for
26397 which a user-defined multiplication or division operation might be
26400 * sem_res.adb (Valid_Conversion): The legality rules for conversions
26401 of access types are symmetric in Ada 2005: either designated type can
26404 2005-01-03 Vincent Celier <celier@adacore.com>
26406 * s-fileio.adb (Temp_File_Record): Change length of string component
26407 Name from L_tmpnam + 1 to max_path_len + 1.
26409 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26411 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26412 Self_Id.Deferral_Level = 0.
26413 (Do_Pending_Action): Move this function to the spec.
26415 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26416 Do_Pending_Action explicitely when needed, in case we're using
26417 No_Abort restrictions.
26419 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26420 deferral level since it will not get changed by the generated code.
26421 Keeping a default value of 1 would prevent some operations (e.g.
26422 select or delay) to proceed successfully.
26424 2005-01-03 Ben Brosgol <brosgol@adacore.com>
26425 Robert Dewar <dewar@adacore.com>
26426 Cyrille Comar <comar@adacore.com>
26428 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26429 porting guide chapter (vms version).
26430 Revised doc title (removed "for native platforms") and subtitle.
26431 Add discussion on warning flag for obsolescent features. First we
26432 note that it applies to obsolete GNAT features, which was previously
26433 omitted. Second we contrast the behavior with that of the new
26434 Ada 2005 AI-368 restriction No_Obsolescent_Features.
26435 Preliminary rewriting of GNAT & libraries chapter in order to take
26436 into account default project locations & new project manager
26439 2005-01-03 Robert Dewar <dewar@adacore.com>
26441 * cstand.adb (Create_Operators): Clean up format and documentation of
26442 unary and binary operator result tables. No change in code, just
26443 reformatting and addition of comments.
26445 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26446 sem_ch2.adb: Minor reformatting
26448 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26449 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26450 comments for Tree_Read and Tree_Write.
26452 2005-01-03 Pascal Obry <obry@adacore.com>
26454 * exp_attr.ads: Minor reformatting.
26456 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
26458 * comperr.adb (Compiler_Abort): Add specialized message for GAP
26461 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26463 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26464 whether the ancestor type is private, as may be the case with nested
26467 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
26470 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26472 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
26474 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26475 * utils2.c (build_unary_op): Likewise.
26477 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26479 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26481 2004-12-19 Richard Henderson <rth@redhat.com>
26483 * trans.c (gigi): Update gimplify_body call.
26485 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
26487 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26489 2004-12-07 Ed Falis <falis@adacore.com>
26491 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26492 current task being suspended.
26494 * init.c (__gnat_clear_exception): added to reset VxWorks exception
26496 (__gnat_map_signal): removed test for current task being suspended.
26498 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26500 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26501 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26502 targets (such as AAMP).
26504 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26506 * atree.adb (Visit_Itype): Create a new name for the generated itype,
26507 because the back-end may otherwise treat it as a redefinition of the
26510 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
26512 * back_end.adb (Scan_Back_End_Switches): Accept --param.
26514 * lang-specs.h: Accept --param.
26516 2004-12-07 Vincent Celier <celier@adacore.com>
26518 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26519 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26520 Current_Body_Suffix => Ada_Body_Suffix).
26521 Take into account Externally_Built attribute.
26523 * clean.adb (In_Extension_Chain): Always return False when one of the
26524 parameter is No_Project.
26525 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26526 Ada_Language_Index).
26527 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26528 Process_Languages for procedure Parse).
26530 * gnatcmd.adb (Carg_Switches): New table.
26531 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26532 Adapt to name changes in package Prj (Current_Spec_Suffix =>
26533 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26535 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26536 Header_Num and function Hash are now declared in package Prj,
26539 * prj.adb (Suffix_Of): New function.
26540 (Set (Suffix)): New procedure.
26541 (Hash): One function moved from Prj.Com
26542 (Is_Present, Language_Processing_Data_Of): New functions
26543 (Set): Two new procedures
26544 (Add_Language_Name, Display_Language_Name): New procedures
26546 * prj.ads: (Suffix_Of): New function
26547 (Set (Suffix)): New procedure
26548 Add several types and tables for multi-language support.
26549 (Header_Num): Type moved from Prj.Com
26550 (Hash): Two functions moved from Prj.Com
26551 (Is_Present, Language_Processing_Data_Of): New functions
26552 (Set): Two new procedures
26553 (Add_Language_Name, Display_Language_Name): New procedures
26554 (Naming): Component name changes:
26555 Current_Spec_Suffix => Ada_Spec_Suffix,
26556 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26557 Impl_Suffixes, Supp_Suffixes.
26558 (Project_Data): New components: Externally_Built, Supp_Languages,
26559 First_Language_Processing, Supp_Language_Processing, Default_Linker,
26560 Default_Linker_Path.
26562 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26563 new package Language_Processing with its attributes (Compiler_Driver,
26564 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26565 Binder_Driver, Default_Linker).
26567 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26568 (Header_Num): Type moved to package Prj
26570 * prj-env.adb: Adapt to name changes in package Prj
26571 (Current_Spec_Suffix => Ada_Spec_Suffix,
26572 Current_Body_Suffix => Ada_Body_Suffix).
26574 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26575 default to the project path, except the "-" is one of the directories
26576 in env var ADA_PROJECT_PATH.
26577 (Current_Project_Path): Global variable, replacing Project_Path
26578 that was in the body of Prj.Part.
26579 (Project_Path): New function
26580 (Set_Project_Path): New procedure
26581 Initialize Current_Project_Path during elaboration of the package
26582 Remove dependency on Prj.Com, no longer needed
26584 * prj-ext.ads (Project_Path): New function
26585 (Set_Project_Path): New procedure
26587 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26588 suffix is defined for language <lang>.
26589 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26590 accessing directly the components of Naming.
26591 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26592 Reorganise of this package.
26593 Break procedure Check in several procedures.
26595 * prj-nmsc.ads: Replace all procedures (Ada_Check,
26596 Other_Languages_Check and Language_Independent_Check) with a single
26599 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26600 Process_Languages, no longer needed.
26602 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26603 Current_Project_Path.
26604 Remove elaboration code, moved to the body of Prj.Ext
26605 Use new function Prj.Ext.Project_Path instead of old variable
26607 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26608 When comparing with project paths on the stack, first put the resolved
26609 path in canonical case.
26610 (Parse_Single_Project): Set the path name of the project file in the
26611 tree to the normalized path.
26613 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26614 parameter Process_Languages, no longer needed.
26615 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26616 Other_Languages_Check.
26618 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26619 to store the resolved canonical path of the project file.
26620 Remove dependency to Prj.Com, no longer needed
26622 * prj-util.adb: Adapt to name changes in package Prj
26623 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26626 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26627 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26628 Externally_Built, Include_Option, Language_Processing.
26630 * makegpr.adb: Numerous changes due to changes in packages
26633 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26634 default to the project path, except whe "-" is one of the directories
26635 in env var ADA_PROJECT_PATH.
26636 (Gnatls): In verbose mode, add the new section "Project Search Path:"
26638 2004-12-07 Robert Dewar <dewar@adacore.com>
26640 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26642 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26645 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26646 flag. No longer needed now that we handle this in gnat1drv.adb.
26648 * repinfo.ads: Minor reformatting
26650 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26651 Olivier Hainque <hainque@adacore.com>
26652 Eric Botcazou <ebotcazou@adacore.com>
26654 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26655 TYPE_SIZE_UNIT of result type if SIZE is not specified.
26656 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26657 of a bitfield, which we know is useless and causes trouble because of
26658 alignment implications.
26660 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26662 (process_attributes): Clear DECL_COMMON again when a section attribute
26664 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26665 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26666 (create_field_decl): Special case ADDRESSABLE negative to mean
26667 "no bitfield creation", to be used by make_aligning_type. Don't
26668 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26669 fields claimed addressable still have to be bitfields. Use
26670 value_factor_p instead of a raw binop construction to check for the
26671 position's alignment.
26673 2004-12-07 Geert Bosch <bosch@adacore.com>
26675 * eval_fat.adb: Revert previous change.
26677 2004-12-07 Thomas Quinot <quinot@adacore.com>
26678 Ed Schonberg <schonberg@adacore.com>
26680 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26681 with an implicit dereference as its prefix, use
26682 Insert_Explicit_Dereference instead of merely rewriting the prefix into
26683 an explicit dereference. This ensures that a reference to the original
26684 prefix is generated, if appropriate.
26686 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26687 dereference is rewritten to an explicit one, generate a reference to
26688 the entity denoted by its prefix using the original prefix node, so
26689 the dereference can be properly recorded as a read of the denoted
26690 access value, if appropriate.
26692 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26693 emitting 'assigned but never read' warning on a variable on the basis
26694 that it has an access type.
26695 (Check_References): Emit unreferenced warning when the scope is a
26698 2004-12-07 Robert Dewar <dewar@adacore.com>
26699 Ed Schonberg <schonberg@adacore.com>
26701 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26704 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26705 leaving call unchanged.
26706 This deals with the case where the pragma Import specified
26707 an external name, to be handled by the back end.
26709 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26710 subprogram which is Imported with convention Intrinsic if an
26711 External_Name argument is specified.
26712 (Process_Import_Or_Interface): Properly diagnose link name argument.
26713 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26714 with Sem_Ch6.Cannot_Inline.
26715 (Process_Inline): Provide separate warning for inapplicable inline
26717 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26718 treatment is uniform on different targets.
26720 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26722 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26723 construct is rewritten, preserve end label to permit source navigation.
26725 2004-12-07 Thomas Quinot <quinot@adacore.com>
26727 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26728 Specific_Build_Stub_Target): New subprograms.
26729 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26730 the PCS implementation used, using the above PCS-customized subprograms.
26731 Minor reformatting.
26732 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26733 for generation of DSA code targeted to the PolyORB PCS.
26734 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26735 implementation of the partition communication subsystem in ancillary
26737 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26738 PolyORB_Support.Build_Stub_Type): New subrograms containing the
26739 PCS-specific part of Add_Stub_Type.
26740 (Insert_Partition_Check): Use runtime library function to perform
26743 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26744 (RE_Same_Partition): New entity, from s-parint.
26746 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26748 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26750 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26751 Output the copyright message on a separate line from the version
26754 2004-12-07 Joel Brobecker <brobecker@adacore.com>
26756 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26757 compile-time warning.
26759 2004-12-07 Robert Dewar <dewar@adacore.com>
26761 * g-regpat.adb: (Match): Change a misuse of or to or else
26763 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26766 (Generate_Reference): Handle properly a reference to an entry formal,
26767 when an accept statement has a pragma Unreferenced for it.
26769 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26770 and the Has_Pragma_Unreferenced flag for each formal before analyzing
26771 the body, to ensure that warnings are properly emitted for each accept
26772 statement of a given task entry.
26774 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
26776 * Makefile.in: Add support for foreign threads on VMS.
26778 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26780 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26782 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26784 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26786 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26788 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26790 2004-12-07 Robert Dewar <dewar@adacore.com>
26792 * nlists.adb (Prepend_Debug): Remove parameters and nest within
26794 (Remove_Next_Debug): Same fix
26796 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26797 maintain back pointers now, though we did not used to, and comments
26799 (Prepend): Remove pragma Inline.
26800 (Remove_Next): Same cleanup
26802 2004-12-07 Thomas Quinot <quinot@adacore.com>
26804 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26805 used to record an implicit dereference as a read operation on its
26806 prefix when operating under -gnatc. Necessary to avoid spurious
26807 'variable assigned but never read' warnings in that mode.
26808 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26809 is a non-overloaded implicit dereference, call the above subprogram to
26810 ensure proper recording of references.
26812 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26814 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26815 to be resolved later as part of Analyze_Iteration_Scheme's call to
26818 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26820 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26821 prefix is not a scalar type, place error message on prefix, not on
26824 2004-12-07 Bernard Banner <banner@adacore.com>
26826 * vxaddr2line.adb: Add support for x86 vxworks
26828 2004-12-07 Thomas Quinot <quinot@adacore.com>
26830 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26831 documentation of the behaviour of these functions when passed an IP
26832 address that has no record in the system hosts database and no reverse
26835 * cstand.adb, a-tags.ads: Fix typos in comment.
26837 2004-12-07 Robert Dewar <dewar@adacore.com>
26839 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26840 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26841 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26842 s-poosiz.ads: Minor reformatting
26844 * make.adb: Minor reformatting
26845 Add some ??? comments asking for more comments
26847 * s-poosiz.adb: Minor reformatting
26848 Add comments on alignment requirement
26850 * sinfo.ads: Remove obsolete comment and fix typo.
26852 2004-12-07 Vincent Celier <celier@adacore.com>
26853 Sergey Rybin <rybin@adacore.com>
26855 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26856 Files" with the new tool and package names.
26857 Reformatting to suppress most of the warnings for line too long
26858 Document the new section "Project Search Path:" in the output of
26860 Add gnatmetric section
26862 2004-12-07 Vincent Celier <celier@adacore.com>
26864 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26865 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26866 and -eit to -ept. Added qualifier
26867 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26869 2004-11-27 Andreas Schwab <schwab@suse.de>
26871 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26873 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26875 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26876 internal implementation unit GNAT.Sockets.Thin,
26877 as their usage for sockets is non-portable (using the read and write
26878 functions from the system runtime library is fine on UNIX but won't
26879 work under Windows).
26881 * mingw32.h: Update copyright notice.
26883 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26885 * ada-tree.h: Minor reformatting of previous change to avoid lines
26886 longer than 79 characters.
26888 2004-11-25 Olivier Hainque <hainque@adacore.com>
26890 * tb-gcc.c: GCC infrastructure based implementation of
26893 2004-11-24 Steven Bosscher <stevenb@suse.de>
26895 * misc.c (gnat_post_options): Don't clear
26896 flag_inline_functions.
26898 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
26901 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26904 2004-11-21 Andreas Jaeger <aj@suse.de>
26906 * stylesw.adb: Change Style_Check_Subprogram_Order to
26907 Style_Check_Order_Subprograms.
26909 2004-11-18 Arnaud Charlet <charlet@adacore.com>
26911 * adaint.h, adaint.c
26912 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26914 Add also a cast to kill another warning.
26915 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26916 parameter with the priority class of the parent process instead of
26917 always using the NORMAL_PRIORITY_CLASS.
26918 (__gnat_dup): New function.
26919 (__gnat_dup2): New function.
26920 (__gnat_is_symbolic_link): Enable the effective body of this
26921 function when __APPLE__ is defined.
26923 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26926 2004-11-18 Olivier Hainque <hainque@adacore.com>
26928 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26929 address of which may be used to represent "others" and "all others"
26930 choices in exception tables, instead of the current harcoded
26931 (void *)0 and (void *)1.
26932 (Setup_Exception): Do nothing in the GNAT SJLJ case.
26934 * gigi.h (others_decl, all_others_decl): New decls representing the
26935 new Others_Value and All_Others_Value objects.
26936 (struct attrib): Rename "arg" component as "args", since GCC expects a
26937 list of arguments in there.
26939 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26940 corresponding objects exported by a-exexpr, instead of hardcoded dummy
26943 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26944 others_decl and all_others_decl instead of hardcoded dummy addresses
26945 to represent "others" and "all others" choices, which is cleaner and
26946 more flexible with respect to the possible eh pointer encoding policies.
26948 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26949 (process_attributes): Account for the naming change of the "args"
26950 attribute list entry component.
26952 * decl.c (build_attr_list): Rename into prepend_attributes to allow
26953 cumulating attributes for different entities into a single list.
26954 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26955 attributes for the current entity and propagate first subtype
26956 attributes to other subtypes.
26957 <E_Procedure>: Attribute arguments are attr->args and not
26958 attr->arg any more.
26959 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26960 argument provided, as this is what GCC expects. Use NULL_TREE instead
26963 2004-11-18 Robert Dewar <dewar@adacore.com>
26965 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26966 Minor reformatting througout (including new function specs)
26967 Add ??? comments asking for clarification.
26969 2004-11-18 Thomas Quinot <quinot@adacore.com>
26971 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26972 incomplete duplicate implementation of this subprogram from butil.
26974 2004-11-18 Thomas Quinot <quinot@adacore.com>
26976 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26977 procedures factors the common processing for building an RPC receiver
26978 for an RCI package or an RACW type.
26979 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26980 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26981 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26983 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26985 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26987 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26988 distribution subprogram identifiers that are either subprogram numbers
26990 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26991 string distribution identifiers assigned to a given subprogram.
26992 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26993 (Add_RAS_Dereference_TSS): Add comments.
26994 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26995 is not referenced yet because it will be used by the PolyORB DSA
26997 (Insert_Partition_Check): Remove fossile code.
26998 (First_RCI_Subprogram_Id): Document this constant.
26999 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27001 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27002 replaced with calls to Get_Library_Unit_Name_String. Previously there
27003 were several instances of the same code in different locations in the
27004 compiler; this checkin completes the replacement of all of these
27005 instances with calls to a common subprogram.
27006 Minor reformatting.
27008 * sem_dist.adb: Remove comment noting that RPC receiver generation
27009 should be disabled for RACWs that implement RASs.
27010 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27012 * sem_util.ads, sem_util.adb (Has_Stream): New function
27013 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27014 qualified name of a library unit into the name buffer.
27015 (Note_Possible_Modification): Generate a reference only
27016 if the context comes from source.
27018 * snames.ads (PCS_Names): New subtype corresponding to names of
27019 supported implementations of the Partition Communication Subsystem
27020 (PCS) (i.e. the runtime library support modules for the distributed
27023 2004-11-18 Robert Dewar <dewar@adacore.com>
27024 Ed Schonberg <schonberg@adacore.com>
27026 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27027 (Has_Rep_Pragma): New function
27028 (Has_Attribute_Definition_Clause): New function
27029 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27030 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27032 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27034 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27035 (Expand_Pragma_Psect_Object): New procedure
27036 These procedures contain the revised and cleaned up processing for
27037 these two pragmas. This processing was formerly in Sem_Prag, but
27038 is more appropriately moved here. The cleanup involves making sure
27039 that the pragmas are properly attached to the tree, and that no
27040 nodes are improperly shared.
27042 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27043 pragmas to Exp_Prag, which is more appropriate.
27044 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27045 check for duplicates Remove use of Is_Psected flag, no longer needed.
27046 Use new Make_String_Literal function with string.
27048 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27049 that are functions return universal values, that have to be converted
27050 to the context type.
27051 Use new Make_String_Literal function with string.
27052 (Get_Stream_Convert_Pragma): New function, replaces the use of
27053 Get_Rep_Pragma, which had to be kludged to work in this case.
27055 * freeze.adb: Use new Has_Rep_Pragma function
27057 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27058 function with string.
27059 Use new Has_Rep_Pragma function.
27061 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27064 2004-11-18 Robert Dewar <dewar@adacore.com>
27066 * errout.ads, errout.adb: (First_Sloc): New function
27068 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27069 check (-gnatyx) instead of being included as a redundant construct
27072 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27073 Style_Check_Order_Subprograms.
27075 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27076 stylesw.adb: Add Style_Check_Xtra_Parens
27078 * usage.adb: Add line for -gnatyx (check extra parens)
27080 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27082 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27083 Robert Dewar <dewar@adacore.com>
27085 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27086 discriminant of a constrained subtype, analyze the copy of the
27087 corresponding constraint, because in some cases it may be only
27088 partially analyzed.
27089 Removes long-lived ??? comments.
27091 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27092 handled controlled or secondary-stack expressions within the
27093 iteration_scheme of a loop.
27095 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27096 bounds that may contain functions calls, to prevent memory leaks when
27097 the bound contains a call to a function that uses the secondary stack.
27098 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27099 generate temporaries for loop bounds that might contain function calls
27100 that require secondary stack and/or finalization actions.
27102 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27103 selected component and the selector is overloadable (not just a
27104 function) treat as function call, Analyze_Call will disambiguate if
27106 (Analyze_Selected_Component): Do not generate an actual subtype for the
27107 selected component if expansion is disabled. The actual subtype is only
27108 needed for constraint checks.
27109 (Analyze_Allocator): If restriction No_Streams is set, then do
27110 not permit objects to be declared of a stream type, or of a
27111 composite type containing a stream.
27113 * restrict.ads: Remove the a-stream entry from Unit_Array, since
27114 No_Streams no longer prohibits with'ing this package.
27116 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27117 discriminants, but the parent base has unknown discriminants, there is
27118 no discriminant constraint to inherit. Such a discrepancy can arise
27119 when the actual for a formal type with unknown discriminants is a
27120 similar private type whose full view has discriminants.
27121 (Analyze_Object_Declaration): If restriction No_Streams is set, then
27122 do not permit objects to be declared of a stream type, or of a
27123 composite type containing a stream.
27125 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27127 * exp_dbug.ads: Update documentation to reflect simpler encoding for
27128 protected operations.
27130 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27131 generated name, it complicates decoding in gdb and hinders debugging
27132 of protected operations.
27133 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27134 flag for the protected entry barrier function.
27135 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27136 flag for the protected entry function.
27138 2004-11-18 Nicolas Setton <setton@adacore.com>
27140 * expect.c: Define __unix__ when __APPLE__ is defined.
27142 * Makefile.in: Inform the value of the variable GMEM_LIB in the
27143 Darwin-specific section.
27145 * lang-specs.h: Change the placement of the %1 marker.
27146 Works around the fact that gcc adds -fPIC by default under Darwin.
27148 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27150 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27151 type of the object with the packed array type, set the Analyzed flag
27152 on the object if it is an entity or simple indexed component, to avoid
27153 spurious type errors.
27155 2004-11-18 Gary Dismukes <dismukes@adacore.com>
27157 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27158 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27159 separate line from the version message.
27161 2004-11-18 Ed Falis <falis@adacore.com>
27163 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27165 (init_float): Eliminate initialization of floating point status for
27166 AE653. The instructions have no effect for vThreads.
27168 2004-11-18 Vincent Celier <celier@adacore.com>
27170 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27171 gnatbind is invoked with -shared.
27173 2004-11-18 Jose Ruiz <ruiz@adacore.com>
27175 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27176 for Detect_Blocking which is redundant with the check done within the
27177 procedure Protected_Single_Entry_Call.
27178 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27179 Detect_Blocking which is redundant with the check done within the
27180 procedure Protected_Single_Entry_Call.
27182 2004-11-18 Vincent Celier <celier@adacore.com>
27184 * makegpr.adb (Compile): Put the compiling switches (in package
27185 Compiler and on the command line) immediately after "-c", instead of
27186 at the end of the command line invocation of the compiler, when
27187 compiling a non-Ada file.
27188 (Build_Global_Archive): When there is no need to rebuild the archive,
27189 set Global_Archive_Exists, so that the archive is passed to the linker
27192 2004-11-18 Robert Dewar <dewar@adacore.com>
27193 Sergey Rybin <rybin@adacore.com>
27196 Remove extra paren check from list of checks for redundant constructs
27197 Add documentation of new -gnatyx style check (check extra parens)
27198 Remove paragraph about gnatelim debug options.
27200 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27201 objects rather than forbidding dependencies on the package Ada.Streams.
27203 * sinfo.ads: Add ??? note that we should document pragmas passed to
27206 * g-expect.ads: Fix a few typos in the comments.
27208 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
27210 * misc.c (gnat_handle_option): Use %< and %> for quoting in
27213 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27215 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27217 2004-11-07 Andreas Schwab <schwab@suse.de>
27219 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27221 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27224 * Makefile.in (darwin): Set soext to .dylib.
27226 2004-10-26 Vincent Celier <celier@gnat.com>
27227 Thomas Quinot <quinot@act-europe.fr>
27229 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27230 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27231 there is no use of GNAT.Sockets.Constants.
27232 Remove remaining pragma Import for C_Write
27233 Remove C_Read and C_Write from internal implementation unit
27234 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27235 the read and write functions from the system runtime library is fine
27236 on UNIX but won't work under Windows).
27238 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27239 (Check_Selector): Use C_Recv instead of C_Read.
27240 Selectors are the GNAT.Sockets abstraction to perform a select()
27241 call on a set of descriptors. To allow abortion of an ongoing
27242 select operation, some data is written to a dedicated socket that
27243 is always monitored.
27244 Under Windows, the write and read library functions cannot operate
27245 on sockets, so we need to use send and recv instead, which is portable
27246 across all supported platforms.
27248 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27249 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27250 (using the read and write functions from the system runtime library is
27251 fine on UNIX but won't work under Windows).
27253 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27255 * mlib-tgt-darwin.adb: New file.
27257 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27258 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27259 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27260 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27263 * Makefile.in: Add support for building shared libraries under Darwin.
27264 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27265 the low level EH init subprogram to be called from __gnat_initialize.
27267 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27268 indicates which options to pass to the archive indexer.
27270 * mlib-utl.adb: Add support for calling ranlib with additional
27271 options. This is needed for instance under Mac OS X.
27272 (Ranlib_Options): New global variable, used to store the potential
27273 options to pass to ranlib.
27274 (Ar): Use Ranlib_Options when spawning ranlib.
27275 (Initialize): Set the value of ranlib option.
27277 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27279 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27280 instead of 8K, to reflect the real potential needs for stack-checking
27283 2004-10-26 Pascal Obry <obry@gnat.com>
27285 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27287 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27288 Windows only the initial thread stack size can be set so it is good to
27289 start we a low stack size.
27290 The OS will adjust the size as needed.
27292 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27293 Nicolas Setton <setton@act-europe.fr>
27295 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27296 "__unix__" instead of "unix".
27297 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27298 sections were just mistakenly ignored. The former is
27299 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27300 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27301 of hpux. This prevents an unwanted definition of the symbol
27302 convert_addresses in adaint.o.
27304 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27306 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27307 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27309 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27311 * a-filico.ads, a-filico.adb: fix incorrect header.
27313 2004-10-26 Javier Miranda <miranda@gnat.com>
27315 * a-ststio.ads: Fix typo in identifier
27317 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27319 * sem_ch4.adb: Minor reformatting.
27321 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27323 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27324 enabled, check the result of unary and binary operations when the
27325 expression is the right-hand side of an assignment.
27327 2004-10-26 Vincent Celier <celier@gnat.com>
27329 * clean.adb (Delete): Do not output warnings when in quiet output and
27330 not in verbose mode.
27331 (Force_Deletions): New Boolean flag, defaulted to False
27332 (Delete): Only delete a file if it is writable, and when
27333 Force_Deletions is True.
27334 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27335 (Usage): Line for new switch -f
27336 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27339 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27341 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27342 JM type only if its size matches that of the wrapper. When a size is
27343 prescribed and the field is not aliased, remove the wrapper of a JM
27344 type only if the size is not greater than that of the packed array.
27345 (gnat_to_gnu_entity): Change the extension of packed array wrappers
27348 2004-10-26 Geert Bosch <bosch@gnat.com>
27350 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27351 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27352 (Pred): Implement in terms of Succ.
27354 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27356 * exp_aggr.adb (Safe_Component): An aggregate component that is an
27357 unchecked conversion is safe for in-place use if the expression of the
27358 conversion is safe.
27359 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27360 be expandable in place even if the aggregate does not come from source.
27361 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27362 designated object of an allocator in place, rather than building it
27363 first on the stack. The previous scheme forces a full copy of the array,
27364 and may be altogether unsusable if the size of the array is too large
27365 for stack allocation.
27367 2004-10-26 Robert Dewar <dewar@gnat.com>
27369 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27370 compares if the component is atomic.
27372 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27373 array assignment if the component type is atomic.
27375 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27376 Eric Botcazou <ebotcazou@act-europe.fr>
27378 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27379 is aliased and is a by_reference type, do not pass by copy.
27380 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27381 detect whether the call is in the right side of an assignment or
27382 the expression of an object declaration. Recurse on component
27383 association within aggregates.
27384 Call it in the condition that determines whether the temporary is
27385 necessary for correct stack-checking.
27387 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27389 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27390 RACW_Type, used in the PolyORB version.
27391 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27392 version and the GARLIC version.
27394 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27395 Rename RCI_Info to RCI_Locator for better consistency between the
27396 GARLIC and PolyORB versions of the distributed systems annex.
27397 (DSA_Implementation_Name): This enumeration lists the possible
27398 implementations of the Partition Communication Subsystem for the
27399 Distributed Systems Annex (DSA). The three available implementations
27400 are the dummy stub implementation (No_DSA), and two versions based on
27401 two different distribution runtime libraries: GARLIC and PolyORB. Both
27402 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27404 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27407 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27408 between the GARLIC and PolyORB versions of the distributed systems
27410 Remove RE_Unbounded_Reclaim_Pool since it is unused.
27412 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27414 * gnat1drv.adb: Suppress calling the back end when
27415 Frontend_Layout_On_Target is true.
27417 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27419 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27420 Set_Read_Only): New subprograms.
27421 These new routines allow the user to set or unset the Owner execute
27422 and Owner write permission flags on a file.
27424 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27425 GNAT.OS_Lib.Set_Executable instead of rolling our own.
27427 2004-10-26 Matthew Gingell <gingell@gnat.com>
27429 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27431 2004-10-26 Pascal Obry <obry@gnat.com>
27433 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27434 memory before the faulting page we properly test the process read
27435 access for this address using appropriate Win32 routine.
27436 (HPUX sections): guard with "__hpux__" instead of "hpux".
27438 2004-10-26 Robert Dewar <dewar@gnat.com>
27440 * lib-xref.adb (Generate_Reference): Don't complain about reference to
27441 entry parameter if pragma Unreferenced set, since we do not properly
27442 handle the case of multiple parameters.
27444 2004-10-26 Vincent Celier <celier@gnat.com>
27446 * prj-env.adb: (Contains_ALI_Files): New Boolean function
27447 (Ada_Objects_Path.Add): For a library project, add to the object path
27448 the library directory only if there is no object directory or if the
27449 library directory contains ALI files.
27450 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27452 2004-10-26 Vincent Celier <celier@gnat.com>
27454 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27455 extension of library projects.
27457 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27458 path defaults to ".:<prefix>/lib/gnat".
27459 (Parse): For an extending all project, allow direct import of a project
27460 that is virtually extended.
27462 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27463 the specified name is directly imported, return its ID. Otherwise, if
27464 an extension of this project is imported, return the ID of the
27467 2004-10-26 Robert Dewar <dewar@gnat.com>
27469 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27470 (Sub3): New procedure, used by Scaled_Divide
27471 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27472 correct more than one instance of failure to propagate carries
27474 (Double_Divide): Handle overflow case of largest negative number
27475 divided by minus one.
27477 * s-arit64.ads (Double_Divide): Document that overflow can occur in
27478 the case of a quotient value out of range.
27481 2004-10-26 Robert Dewar <dewar@gnat.com>
27483 * s-bitops.adb (Bit_Eq): Remove redundant check.
27485 * s-bitops.ads: Minor comment updates
27486 Change some occurrences of Address to System.Address
27488 * s-carsi8.ads: Fix minor cut-and-paste error in comments
27490 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27492 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27493 accessibility check to prefix that is a protected operation.
27495 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27497 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27498 empty, post message on stub.
27500 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27501 Javier Miranda <miranda@gnat.com>
27503 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27504 current instance appears within a unit that is directly in the context
27506 Used to determine whether the body of the instance should be analyzed
27507 immediately after its spec, to make its subprogram bodies available
27508 for front-end inlining.
27509 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27510 constraint is not allowed on the component type (AARM 12.5.3(3))
27512 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27514 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27515 'Storage_Pool): enhance, document & limit detection of non-sharable
27518 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27520 * s-pooglo.ads: Add more documentation now that this pool is properly
27523 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27525 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27526 or protected type with discriminants, do not constrain the
27527 corresponding record type if the subtype declaration has no
27528 discriminant constraints. This can be the case in source code, or in
27529 the subtype declaration created to rename an actual type within an
27532 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27534 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27535 different kind of stub (possibly wrong name for file), do not check
27537 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27538 includes call to some function that returns an unconstrained type, do
27541 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27543 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27544 appear in the code for the main unit. Dependencies among units in the
27545 context of the main unit are established when those other units are
27546 compiled. Otherwise spurious elaboration constraints can generate
27547 incorrect elaboration circularities.
27549 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27550 Ed Schonberg <schonberg@gnat.com>
27552 * sem_util.adb (Is_Aliased_View): Defend against the case where this
27553 subprogram is called with a parameter that is not an object name. This
27554 situation arises for some cases of illegal code, which is diagnosed
27555 later, and in this case it is wrong to call Is_Aliased, as that might
27556 cause a compiler crash.
27557 (Explain_Limited_Type): Refine previous fix to include
27558 inherited components of derived types, to provide complete information.
27560 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27561 is the prival for a protected object.
27562 It is necessary to mark this entity as a variable, in addition to
27563 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27564 modified to avoid checking the Aliased flag on entities that are not
27565 objects. (Checking that flag for non-objects is erroneous and could
27566 lead to a compiler crash).
27568 2004-10-26 Robert Dewar <dewar@gnat.com>
27570 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27571 X_Frac = 0.5, then we know that the number X must be positive.
27572 (Succ): Remove the same redundant test, and also fix the primary test
27573 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27575 (Decompose): Add fuller comments to spec
27577 2004-10-26 Pascal Obry <obry@gnat.com>
27579 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27580 validity (process must have read access). Set to 0 in all other cases.
27581 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27582 violation on Win32.
27583 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27584 segmentation violation.
27586 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27588 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27589 whose type is a constructed subtype of an aliased object with an
27590 unconstrained nominal subtype, convert the actual to the constructed
27591 subtype before taking its address.
27593 2004-10-26 Vincent Celier <celier@gnat.com>
27595 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27596 (Is_Path_Name_Case_Sensitive): New function
27598 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27599 (Base_Name, Simple_Name, Current_Directory, Compose,
27600 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27603 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27604 Vasiliy Fofanov <fofanov@act-europe.fr>
27605 Vincent Celier <celier@gnat.com>
27607 * gnat_ugn.texi: Generalize "finding memory problems" section into a
27608 "memory management issues" section and document some of the useful
27609 memory pools provided as part of the GNAT library.
27610 Remove "virtual" from declaration of A::method2 in
27611 the simple example of Ada/C++ mixed system.
27612 Library Projects may be virtually extended: their virtual extensions
27613 are not Library Projects.
27614 Added section on extending project hierarchies.
27616 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27618 * adaint.c (__gnat_get_libraries_from_registry): Cast value
27620 (__gnat_portable_spawn): Remove const.
27622 * mingw32.h (MAXPATHLEN): Check for previous definition.
27624 2004-10-17 Matthias Klose <doko@debian.org>
27626 * gnatvsn.ads: Set gnat library version to 4.0.
27628 2004-10-05 Vincent Celier <celier@gnat.com>
27630 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27632 2004-10-04 Laurent Guerby <laurent@guerby.net>
27635 * Makefile.in: Define and use RANLIB_FLAGS.
27637 2004-10-04 Pascal Obry <obry@gnat.com>
27639 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27640 other x86 platforms).
27642 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27644 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27645 in general and triggers stack alignment adjustment for thread entry
27646 points on targets where this is necessary.
27648 2004-10-04 Bernard Banner <banner@gnat.com>
27651 * Makefile.in: Add section for powerpc linux
27652 Add variant i-vxwork-x86.ads
27654 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27656 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27658 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27659 table registration calls when need be. Ensures no reference to the crt
27660 ctors symbol are issued in the SJLJ case, which avoids possible
27661 undefined symbol errors in the case of modules to be statically linked
27664 2004-10-04 Javier Miranda <miranda@gnat.com>
27666 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27667 in-line the code corresponding to subprogram Analyze_Actuals. In
27668 addition, analyze the actuals only in case of subprogram call.
27670 2004-10-04 Ed Falis <falis@gnat.com>
27672 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27674 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
27676 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27677 in the documentation.
27679 2004-10-04 Robert Dewar <dewar@gnat.com>
27681 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27683 (Analyze_Block_Statement): Add circuitry to detect following dead code
27684 (Check_Unreachable_Code): Handle case of block exit
27686 2004-10-04 Robert Dewar <dewar@gnat.com>
27688 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27689 (XMatchD): Avoid warning for Logic_Error call
27691 2004-10-04 Robert Dewar <dewar@gnat.com>
27693 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27694 consider expressions buried within a procedure actual to be an actual.
27695 This caused some blowups with uses of packed slices within a procedure
27698 2004-10-04 Robert Dewar <dewar@gnat.com>
27700 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27701 longer need to be initialized to zero.
27702 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27703 initialized to zero.
27705 * checks.adb (Expr_Known_Valid): Packed arrays are now always
27706 considered valid, even if the representation is modular. That's correct
27707 now that we no longer initialize packed modular arrays to zero.
27709 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27710 suffixes. These are now documented as the only cases in which the
27711 debugger ignores outer records.
27712 Previously, the spec allowed arbitrary suffixes for this purpose.
27713 Change name of LJM to JM for packed array pad records
27714 Create separate section on packed array handling, and add a whole new
27715 set of comments to this section describing the situation with packed
27716 modular types and justification requirements depending on endianness.
27718 2004-10-04 Robert Dewar <dewar@gnat.com>
27720 * a-except.adb: Add a comment for last change
27722 * einfo.ads: Minor spelling correction in comment
27724 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27726 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27729 * sem_util.ads: Minor comment update
27731 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27733 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27734 Inline_Always when in Configurable_Run_Time mode.
27736 * sem_prag.adb (Process_Convention): If entity is an inherited
27737 subprogram, apply convention to parent subprogram if in same scope.
27738 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27739 when in Configurable_Run_Time mode.
27741 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27743 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27744 class_wide type after component list has been inherited.
27746 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27748 * sem_ch12.adb (Check_Generic_Actuals): New predicate
27749 Denotes_Previous_Actual, to handle properly the case of a private
27750 actual that is also the component type of a subsequent array actual.
27751 The visibility status of the first actual is not affected when the
27752 second is installed.
27753 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27754 make fully recursive the treatment of formals of packages declared
27756 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27757 the above on exit from an instantiation.
27758 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27759 current instantiation which is now complete.
27760 (Analyze_Package_Instantiation): No instantiated body is needed if the
27761 main unit is generic. Efficient, and avoid anomalies when a instance
27762 appears in a package accessed through rtsfind.
27764 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27766 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27767 do not generate a declaration for a temporary if the call is part of a
27768 library-level instantiation.
27770 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27772 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27773 searching for a limited component to flag.
27775 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27776 expansion of Input, to account for the fact that the implicit call
27777 generated by the attribute reference must freeze the user-defined
27778 stream subprogram. This is only relevant to 'Input, because it can
27779 appear in an object declaration, prior to the body of the subprogram.
27781 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27782 expansion can proceed and further errors uncovered.
27783 (Minor clean up): Fix cases of using | instead of \ for continuation
27786 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27788 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27790 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27791 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27792 Use gcc_assert and gcc_unreachable.
27794 * decl.c (gnat_to_gnu_entity, case object): Check and process a
27795 specified alignment before validating size.
27796 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27797 stripped-down declaration for the type of the inner field when making
27800 * utils.c (finish_record_type): Do not compute the size in units
27801 incrementally. Instead compute it once for the rep clause case.
27802 Use gcc_assert and gcc_unreachable.
27804 2004-10-04 Vincent Celier <celier@gnat.com>
27806 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27808 (Is_Valid_Path_Name): Take '/' as a directory separator.
27810 2004-10-04 Vincent Celier <celier@gnat.com>
27812 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27813 (Extended_Project) only if Extended_Project is defined, to avoid
27815 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27817 (Parse_Single_Project): Ditto.
27819 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27820 Add_To_Project_Path for virtual projects.
27822 2004-10-04 Vincent Celier <celier@gnat.com>
27824 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27825 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27826 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27827 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27828 parameter Options_2.
27830 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27831 Build_Dynamic_Library with an empty Options_2.
27833 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27836 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27837 directory separator, if any.
27838 (Gprmake): Do not allow mains on the command line for library projects.
27839 Do not attempt to link when the project is a library project.
27840 (Library_Opts): New table to store Library_Options.
27841 (Build_Library): If Library_Options is specified, pass these options
27842 when building a shared library.
27844 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27846 * s-tposen.adb (Service_Entry): The object must be always unlocked at
27847 the end of this procedure now that the unlock operation was inserted
27850 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27852 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27853 corresponding to the Preallocated_Stacks flags in System.
27854 (Get_Target_Parameters): Including the processing for
27855 Preallocated_Stacks.
27857 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27858 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27859 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27860 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27861 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27862 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27863 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27864 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27865 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27866 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27867 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27868 used to signal whether the compiler creates the required stacks and
27869 descriptors for the different tasks (when True) or it is done by the
27870 underlying operating system at run time (when False).
27871 It is initially set to False in all targets.
27873 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27874 if it is supported by the target.
27875 (Make_Task_Create_Call): Pass the stack address if it has been
27876 previously created. Otherwise pass a Null_Address.
27878 * snames.adb: Add _stack.
27880 * snames.ads: Add Name_uStack. Required to allow the expander to
27881 statically allocated task stacks.
27883 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27884 Stack_Address argument.
27885 Check that its value is equal to Null_Address because this target does
27886 not support the static stack allocation.
27888 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27890 * usage.adb: Change "pragma inline" to "pragma Inline" in information
27893 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27895 * exp_dist.adb: Split declaration of asynchronous flag out of
27896 Add_RACW_Read_Attribute.
27897 Minor reformatting for better alignment with PolyORB version.
27898 Store the entity for the asynchronous flag of an RACW, rather than the
27899 expression, in the asynchronous flags table. This will allow this flag
27900 to be used in other subprograms beside Add_RACW_Read_Attribute.
27902 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27904 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27905 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27906 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27907 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27908 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
27909 sockets constant MSG_NOSIGNAL (Linux-specific).
27910 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27911 all Send operations.
27912 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27913 from trigerring SIGPIPE.
27914 Rename components to avoid clash with Ada 2005 possible reserved
27916 (Check_Selector): When the select system call returns with an error
27917 condition, propagate Socket_Error to the caller.
27919 2004-10-01 Jan Hubicka <jh@suse.cz>
27921 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27923 2004-09-23 Robert Dewar <dewar@gnat.com>
27926 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27927 instead do this at freeze time (we won't do it if there is an address
27929 Change "pragma inline" to "pragma Inline" in information and error
27931 Minor reformatting.
27933 * freeze.adb (Check_Address_Clause): Remove previous change, not the
27934 right way of doing things after all.
27935 (Freeze_Entity): For object, set Is_Public for imported entities
27936 unless there is an address clause present.
27938 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
27940 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27941 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27942 ensures proper handling of types with rep clauses, which might have
27943 their TYPE_SIZE set already.
27945 2004-09-21 Robert Dewar <dewar@gnat.com>
27947 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27948 packed array types in both little- and big-endian cases. This change
27949 ensures that we no longer count on the unused bits being initialized
27950 for such types (and in particular ensures that equality testing will
27951 only read the relevant bits).
27952 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27953 These changes mean that we no longer need to initialize small packed
27955 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27956 optimization to an LJM field as to its parent field.
27958 * ada-tree.h, trans.c, utils.c, utils2.c:
27959 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27961 2004-09-20 Jan Hubicka <jh@suse.cz>
27963 * utils.c (gnat_finalize): Remove.
27964 (end_subprog_body): Directly call cgraph_finalize_function;
27965 do not lower the nested functions.
27967 2004-09-20 Robert Dewar <dewar@gnat.com>
27970 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27971 if an address clause is present, since that means that the Import
27974 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
27976 * 5tsystem.ads: Removed, no longer used.
27978 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
27979 Zack Weinberg <zack@codesourcery.com>
27981 * ada-tree.def: Use tree_code_class enumeration constants
27982 instead of code letters.
27983 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27984 Update for new tree-class enumeration constants.
27986 2004-09-17 Vincent Celier <celier@gnat.com>
27988 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27989 capabilities of the general project manager.
27991 2004-09-09 Vincent Celier <celier@gnat.com>
27993 * a-direct.ads: Add pragma Ada_05
27994 (Directory_Entry_Type): Give default value to component Kind to avoid
27995 not initialized warnings.
27997 * a-direct.adb (Current_Directory): Remove directory separator at the
27999 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28000 an existing directory.
28001 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28002 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28003 Convert the result to File_Size.
28005 * prj.ads: (Project_Error): New exception
28007 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28008 Prj.Com, not from Osint.
28009 (Attrs, Package_Attributes): Tables moved to private part of spec
28010 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28012 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28013 Prj.Project_Error after call to Fail.
28014 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28015 Fail. Check that package name is not already in use.
28017 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28018 used by tools, not only by the project manager, and to indicate that
28019 exception Prj.Prj_Error may be raised in case of problem.
28020 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28022 (Attrs, Package_Attributes): Table instantiations moved from the body to
28023 the private part to be accessible from Prj.Attr.PM body.
28025 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28026 from new package Prj.Attr.PM.
28027 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28030 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28032 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28033 instead of Elaboration_Checks).
28035 * a-calend.adb: Minor reformatting
28037 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28039 * gigi.h (maybe_pad_type): New declaration.
28040 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28042 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28044 * cuintp.c: Convert to use buildN.
28046 * decl.c (maybe_pad_type): No longer static.
28047 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28049 Convert to use buildN.
28051 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28052 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28053 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28055 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28056 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28057 Convert to use buildN.
28059 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28060 TREE_READONLY for const.
28061 Convert to use buildN.
28063 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28064 (create_var_decl): Refine when TREE_STATIC is set.
28065 Convert to use buildN.
28067 2004-09-09 Gary Dismukes <dismukes@gnat.com>
28069 * gnat_ugn.texi: Delete text relating to checking of ali and object
28072 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28075 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
28077 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28078 pragmas recognized by GNAT.
28080 * gnat_rm.texi: Document pragma Detect_Blocking.
28082 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28083 raise Program_Error if called from a protected operation.
28085 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28086 the protected action nesting level.
28087 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28088 protected action nesting level.
28089 (Unlock): When pragma Detect_Blocking is active decrease the protected
28090 action nesting level.
28092 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28093 Protected_Action_Nesting.
28095 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28096 Common_ATCB record. It contains the dynamic level of protected action
28097 nesting for each task. It is needed for checking whether potentially
28098 blocking operations are called from protected operations.
28099 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28100 Detect_Blocking is active or not in the partition.
28102 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28103 raise Program_Error if called from a protected operation.
28104 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28105 Program_Error if called from a protected operation.
28106 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28107 Program_Error if called from a protected operation.
28109 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28110 raise Program_Error if called from a protected operation.
28112 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28113 raise Program_Error if called from a protected operation, and increase
28114 the protected action nesting level.
28115 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28116 Program_Error if called from a protected operation, and increase the
28117 protected action nesting level.
28118 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28119 protected action nesting level.
28121 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28122 raise Program_Error if called from a protected operation, and increase
28123 the protected action nesting level.
28124 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28125 Program_Error if called from a protected operation, and increase the
28126 protected action nesting level.
28127 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28128 raise Program_Error if called from a protected operation.
28129 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28130 active, raise Program_Error if called from a protected operation.
28131 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28132 protected action nesting level.
28134 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28135 insertion of the statement raising Program_Error. The run time
28136 contains the required machinery for handling that.
28138 * sem_util.ads: Change comment associated to procedure
28139 Check_Potentially_Blocking_Operation.
28140 This procedure does not insert a call for raising the exception because
28141 that is currently done by the run time.
28143 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28145 * init.c: Add the global variable __gl_detect_blocking that indicates
28146 whether pragma Detect_Blocking is active (1) or not (0). Needed for
28147 making the pragma available at run time.
28148 (__gnat_set_globals): Pass and update the detect_blocking parameter.
28150 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28151 pragma Detect_Blocking is active.
28153 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28155 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28156 DB is found in the ali file. Any unit compiled with pragma
28157 Detect_Blocking active forces its effect in the whole partition.
28159 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28160 Detect_Blocking is active and delay is called from a protected
28163 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28164 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28165 Detect_Blocking is active (0 otherwise).
28166 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28167 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28170 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
28172 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28173 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28176 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28177 (Register_Receiving_Stub): Add Subp_Info formal parameter.
28178 Update API in placeholder implemetation of s-parint to reflect changes
28179 in distribution runtime library.
28181 * sem_ch3.adb (Expand_Derived_Record): Rename to
28182 Expand_Record_Extension.
28184 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28185 primitive operations of potentially distributed object types that have
28186 non-controlling anonymous access formals.
28188 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28190 New implementation of expansion for remote access-to-subprogram types,
28191 based on the RACW infrastructure.
28192 This version of sem_dist is compatible with PolyORB/DSA as well as
28195 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28196 Asynchrronous that applies to a remote access-to-subprogram type, mark
28197 the underlying RACW type as asynchronous.
28199 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28200 __gnat_using_gnu_linker to 1.
28202 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28203 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28204 GNAT.Perfect_Hash_Generators, and remove the empty
28205 GNAT.Perfect_Hash package.
28207 * atree.adb: Minor reformatting
28209 * exp_ch3.adb (Expand_Derived_Record): Rename to
28210 Expand_Record_Extension.
28211 (Build_Record_Init_Proc.Build_Assignment): The default expression in
28212 a component declaration must remain attached at that point in the
28213 tree so New_Copy_Tree copies it if the enclosing record type is derived.
28214 It is therefore necessary to take a copy of the expression when building
28215 the corresponding assignment statement in the init proc.
28216 As a side effect, in the case of a derived record type, we now see the
28217 original expression, without any rewriting that could have occurred
28218 during expansion of the ancestor type's init proc, and we do not need
28219 to go back to Original_Node.
28221 * exp_ch3.ads (Expand_Derived_Record): Rename to
28222 Expand_Record_Extension.
28224 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28225 Returns the RACW type used to implement a remote access-to-subprogram
28227 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28228 New subprograms. Used to create a proxy tagged object for a remote
28229 subprogram. The proxy object is used as the designated object
28230 for RAS values on the same partition (unless All_Calls_Remote applies).
28231 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28232 System.Partition_Interface.Get_Unique_Remote_Pointer.
28233 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28234 Renamed from Add_RAS_*_Attribute.
28235 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28237 New implementation of expansion for remote access-to-subprogram types,
28238 based on the RACW infrastructure.
28240 * exp_dist.ads (Copy_Specification): Update comment to note that this
28241 function can copy the specification from either a subprogram
28242 specification or an access-to-subprogram type definition.
28244 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28246 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28247 in an instance, between an explicit subprogram an one inherited from a
28248 type derived from an actual.
28250 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28251 add a polling call if the subprogram is to be inlined by the back-end,
28252 to avoid repeated calls with multiple inlinings.
28254 * checks.adb (Apply_Alignment_Check): If the expression in the address
28255 clause is a call whose name is not a static entity (e.g. a dispatching
28256 call), treat as dynamic.
28258 2004-09-09 Robert Dewar <dewar@gnat.com>
28260 * g-trasym.ads: Minor reformatting
28262 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28263 packed arrays, since unused bits are expected to be zero for a
28266 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28268 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28271 2004-09-09 Pascal Obry <obry@gnat.com>
28273 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28274 enable map file generation. Add the right option to generate the map
28275 file if Map_File is set to True.
28277 * gnatdll.adb (Gen_Map_File): New variable.
28278 (Syntax): Add info about new -m (Map_File) option.
28279 (Parse_Command_Line): Add support for -m option.
28280 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28281 Minor reformatting.
28283 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28285 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28286 new gnatdist implementation.
28287 Define a subpackage isolating the output routines specific to this
28290 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28292 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28294 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28296 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28298 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28301 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28302 version of the language is used to compile the run time.
28304 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28306 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28307 of variable length temporaries for function return now that the
28308 back-end and gigi support it.
28310 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28312 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28314 * trans.c (struct stmt_group): Delete field GLOBAL.
28315 (gnat_init_stmt_group): Do not initialize it.
28316 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28317 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28318 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28319 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28320 (start_stmt_group): Likewise.
28321 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28323 * utils2.c (ggc.h): Include.
28324 (build_call_raise): Call build_int_cst, not build_int_2.
28326 * utils.c (gnat_init_decl_processing): Fix arg to
28327 build_common_tree_nodes.
28328 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28329 (gnat_define_builtin): Set built_in_decls.
28330 (init_gigi_decls): Call build_int_cst, not build_int_2.
28332 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28333 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28334 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28335 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28336 SET_TYPE_MODULE): Use them.
28337 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28338 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28339 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28340 SET_TYPE_ADA_SIZE): Likewise.
28341 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28342 (DECL_CONST_CORRESPONDING_VAR,
28343 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28344 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28345 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28346 (TYPE_RM_SIZE_NUM): New macro.
28347 (TYPE_RM_SIZE): Modified to use above.
28349 * cuintp.c: (build_cst_from_int): New function.
28350 (UI_To_gnu): Use it.
28352 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28353 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28354 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28355 MIN_EXPR for the size, copy it into new.
28357 2004-09-01 Robert Dewar <dewar@gnat.com>
28359 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28360 packed indexed component where array is an IN OUT formal. This
28361 generated garbage code previously.
28363 * gnat_ugn.texi: Document -fverbose-asm
28365 * gnat-style.texi: Minor updates (note that boolean constants and
28366 variables are joined with AND/OR rather than short circuit forms).
28368 2004-09-01 Ed Schonberg <schonberg@gnat.com>
28370 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28371 it is an upward conversion of an untagged type with no representation
28374 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
28376 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28377 System.Partition_Interface.
28379 * checks.adb (Apply_Access_Checks): Do not generate checks when
28380 expander is not active (but check for unset reference to prefix of
28383 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28384 pragma Debug as an if statement with a constant condition, for
28385 consistent treatment of entity references contained within the
28386 enclosed procedure call.
28388 2004-09-01 Vincent Celier <celier@gnat.com>
28390 * bindgen.adb: (Set_EA_Last): New procedure
28391 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28393 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28394 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28395 linked without errors.
28396 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28398 (Gen_Exception_Table_C): Correct same bugs
28400 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28402 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28403 on Windows, make sure that the drive letter is in upper case.
28405 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28406 Windows, when the drive letter is added and Case_Sensitive is True, the
28407 drive letter is forced to upper case.
28409 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28410 to Options_2 for the call to MLib.Utl.Gcc.
28412 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28413 directory separator when defining BASE_DIR.
28415 2004-09-01 Pascal Obry <obry@gnat.com>
28417 * gprcmd.adb (Extend): Do not output trailing directory separator. This
28418 is not needed and it confuses Windows GNU/make which does not report
28419 directory terminated by a slash as a directory.
28420 (gprcmd): Idem for "pwd" internal command.
28422 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28423 target names rewrite to fix regressions with recent version of
28424 GNU/make. Starting with GNU/make 3.80 the pipe character was not
28425 handled properly anymore.
28427 2004-09-01 Andreas Schwab <schwab@suse.de>
28429 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28430 * raise.c [!IN_RTS]: Undef abort.
28432 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
28434 * utils2.c (build_allocator): Use ssize_int.
28436 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28438 2004-08-27 Andreas Schwab <schwab@suse.de>
28440 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28442 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28443 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28445 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28447 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28449 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28450 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28451 * utils.c (init_gigi_decls): Likewise.
28452 * utils2.c (build_call_raise, build_allocator): Likewise.
28454 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
28456 * utils.c (gnat_init_decl_processing): Adjust
28457 build_common_tree_nodes call.
28459 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
28461 * utils2.c (build_allocator): Use build_int_cst for negative
28464 2004-08-18 Richard Henderson <rth@redhat.com>
28466 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28468 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
28470 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28472 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28473 (gnat_to_gnu): Likewise.
28475 2004-08-16 Pascal Obry <obry@gnat.com>
28477 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28478 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28479 option and not mdll anymore. Update comment.
28481 2004-08-16 Pascal Obry <obry@gnat.com>
28483 * bld.adb (Put_Include_Project): Properly handle directory separators
28486 2004-08-16 Ed Schonberg <schonberg@gnat.com>
28488 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28489 decreasing the number of allocated junk nodes while searching for the
28490 appropriate subprogram.
28492 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
28494 * cuintp.c (UI_To_gnu): Use build_int_cst..
28495 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28496 * utils.c (init_gigi_decls): Likewise.
28497 * utils2.c (build_call_raise): Likewise.
28499 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
28501 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28502 for a global aliased object with a variable size and an unconstrained
28503 nominal subtype, pretend there is no initializer if the one we have is
28504 incomplete, and avoid referencing an inexistant component in there. The
28505 part we have will be rebuilt anyway and the reference may confuse
28506 further operations.
28508 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
28510 * einfo.ads: Minor reformatting
28512 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28513 restrictions in the ALI if we only want to warn about violations.
28515 2004-08-13 Vincent Celier <celier@gnat.com>
28517 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28518 when creating a new Unit_Record in table Units.
28520 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28521 that are violated, if any.
28523 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28524 add directory separator if path already ends with a directory separator.
28526 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28528 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28529 unit, this is an attempt to inline a construct that is not available in
28530 the current restricted mode, so abort rather than trying to continue.
28532 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28533 discriminants that rename those of the parent, recover names of
28534 original discriminants for the constraint on the full view of the
28536 (Complete_Private_Subtype): Do not create a subtype declaration if the
28537 subtype is an itype.
28539 * gnat_rm.texi: Added section on implementation of discriminated
28540 records with default values for discriminants.
28542 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28545 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28546 the second operand is overloaded.
28548 2004-08-10 Richard Henderson <rth@redhat.com>
28550 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28551 add __builtin_alloca.
28553 2004-08-10 Richard Henderson <rth@redhat.com>
28555 * config-lang.in (boot_language): Yes.
28557 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
28559 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28560 from complaining on potential uninitialized reference.
28561 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28562 new specification and test explicitly for non-zero return value.
28564 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28565 returning C.int, to avoid using a derived boolean type.
28567 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28568 Duplicate_Subexpr_No_Checks in preference to direct use of
28569 Remove_Side_Effects and New_Copy_Tree.
28570 Clear Comes_From_Source on prefix of 'Size attribute reference.
28572 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28573 g-socthi-vxworks.adb: Change calls to
28574 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28575 and test explicitly for non-zero return value.
28577 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28578 (Is_Socket_In_Set): Declare imported function as returning C.int, to
28579 avoid using a derived boolean type.
28581 2004-08-09 Albert Lee <lee@gnat.com>
28583 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28585 2004-08-09 Pascal Obry <obry@gnat.com>
28587 * gnat_ugn.texi: Document new way to build DLLs on Windows using
28588 GCC's -shared option.
28590 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28591 Options_2 parameter (options put after object files).
28593 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
28595 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28596 ignore overflows on low and high bounds of an index to also account for
28597 differences in signedness between sizetype and gnu_index_subtype.
28598 These are as legitimate as the ones caused by a lower TYPE_PRECISION
28601 2004-08-09 Robert Dewar <dewar@gnat.com>
28603 * s-solita.ads, s-solita.adb: Minor reformatting
28605 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28606 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28607 obsolescent section
28608 Add note that No_Implicit_Conditionals does not suppress
28609 run time constraint checks.
28611 * vms_conv.ads: Minor reformatting
28613 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28614 and necessary for following change).
28615 (Mark): Return new format Mark_Id containing sec stack address
28616 (Release): Use sec stack address from Mark_Id avoiding Self call
28618 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28619 pointer (cleanup and necessary for following change).
28620 Define Mark_Id as record containing address of secondary stack, that way
28621 Release does not need to find the stack again, decreasing the number of
28622 calls to Self and improving efficiency.
28624 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28626 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28627 case variable into the individual case branches when possible.
28629 * sem_ch11.adb: Minor reformatting
28631 * prj.ads: Correct spelling of suffixs
28633 * prj-nmsc.adb: Minor reformatting
28634 Correct spelling suffixs throughout (also in identifiers)
28636 * freeze.adb: Minor spelling correction
28638 * exp_ch2.adb: Cleanups to handling of Current_Value
28639 (no functional effect).
28641 * bld.adb: Correct spelling of suffixs
28643 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28645 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28648 * sem_ch7.adb (Install_Private_Declarations): In the body of the
28649 package or of a child, private entities are both immediately_visible
28652 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28654 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28655 there are no range checks on the value of the literal.
28657 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28658 wrapped is the triggering alternative of an asynchronous select, action
28659 statements mustbe inserted before the select itself.
28661 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28662 case where the prefix is a protected function call.
28663 (Resolve_Attribute, case 'Access): The attribute reference on a
28664 subprogram is legal in a generic body if the subprogram is declared
28667 2004-08-09 Vincent Celier <celier@gnat.com>
28669 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28670 languages, otherwise building the library may fail with unresolved
28672 (Compile_Sources): Do not build libraries if -c switch is used
28674 * gnatlink.adb (Process_Args): New switches -M and -Mmap
28675 (Write_Usage): If map file creation is supported, output new switches
28677 (Gnatlink): When -M is specified, add the necessary switch(es) to the
28678 gcc call, when supported.
28680 * Makefile.in: Added indepsw.o to the object list for gnatlink
28681 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28683 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28684 indepsw.adb, indepsw.ads: New files.
28686 2004-08-09 Bernard Banner <banner@gnat.com>
28688 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28690 * Makefile.in: add section for vxworks x86
28692 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
28694 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28695 per-object constrained components where the discriminant is of an
28697 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28698 the parent initialization procedure for derived Unchecked_Unions.
28699 Instead, derived Unchecked_Unions build their own initialization
28701 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28702 Check the body of the subprogram for details.
28703 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28704 functions for derived Unchecked_Union types by introducing a condition.
28705 Allow the creation of TSS equality functions for Unchecked_Unions.
28706 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28707 Add formal parameter Discr to function signature. Discr is used to
28708 control the generated case statement for Unchecked_Union types.
28709 (Make_Eq_If): Rename formal parameter Node to E in function signature.
28711 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28713 Check the body of the subprogram for details.
28714 (Expand_Composite_Equality): Augment composite type equality to include
28715 correct handling of Unchecked_Union components.
28716 (Expand_N_In): Add condition to detect illegal membership tests when the
28717 subtype mark is a constrained Unchecked_Union and the expression lacks
28718 inferable discriminants, and build a Raise_Program_Error node.
28719 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28720 to detect types that contain components of unconstrained Unchecked_Union
28721 subtype. Add condition to detect equality between types that have an
28722 unconstrained Unchecked_Union component, and build a Raise_Program_Error
28723 node. Add condition to detect equality between Unchecked_Union types
28724 that lack inferable discriminants, and build a Raise_Program_Error node.
28725 Otherwise build a TSS equality function call.
28726 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28727 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28728 with the operand lacking inferable discriminants, and build a Raise_
28729 Program_Error node.
28730 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28731 composite equality.
28732 (Has_Inferable_Discriminants): Implement new predicate for objects and
28733 expressions of Unchecked_Union type. Check the body of subprogram for
28735 (Has_Unconstrained_UU_Components): Add function
28736 Component_Is_Unconstrained_UU. It is used to detect whether a single
28737 component is of an unconstrained Unchecked_Union subtype. Add function
28738 Variant_Is_Unconstrained_UU. It is used to detect whether a single
28739 component inside a variant is of an unconstrained Unchecked_Union type.
28741 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28742 inferred discriminant values. Add condition to generate a case
28743 statement with an inferred discriminant as the switch.
28744 (Make_Component_List_Assign): Introduce a Boolean flag that determines
28745 the behaviour of the subprogram in the presence of an Unchecked_Union.
28746 Add condition to trigger the usage of the inferred discriminant value
28747 as the generated case statement switch.
28748 (Make_Field_Assign): Introduce a Boolean flag that determines the
28749 behaviour of the subprogram in the presence of an Unchecked_Union. Add
28750 condition to trigger the usage of the inferred discriminant value as
28751 the right-hand side of the generated assignment.
28753 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28754 parameter generation when dealing with Unchecked_Unions.
28756 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28757 checks for Unchecked_Unions.
28759 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28761 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28762 Raise_Program_Error nodes for the execution of Read and Write
28763 attributes of Unchecked_Union types and the execution of Input and
28764 Output attributes of Unchecked_Union types that lack default
28765 discriminant values.
28767 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28768 Unchecked_Union. Add procedure Check_Component. It is used to inspect
28769 per-object constrained components of Unchecked_Unions for being
28770 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28771 check individual components withing a variant.
28773 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28774 comparison of Unchecked_Unions.
28775 (Resolve_Equality_OP): Remove guard that prevents equality between
28778 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28779 of component subtypes for Unchecked_Union components.
28780 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28781 since it is the actual subtype.
28783 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28784 pass of Unchecked_Union subtypes as generic actuals to formal types
28785 that lack known_discriminant_parts or that are derived Unchecked_Union
28786 types, and do nothing. In any other case, produce an error message.
28788 * sem_ch3.adb (Analyze_Component_Declaration): Add function
28789 Contains_POC. It determines whether a constraint uses the discriminant
28790 of an enclosing record type.
28791 Add condition to detect per-object constrained component and set the
28793 (Derived_Type_Declaration): Remove guard that prevents derivation from
28794 Unchecked_Union types.
28795 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28798 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28799 references to Unchecked_Union discriminants.
28801 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28802 formal generation when dealing with Unchecked_Unions.
28803 (Set_Actual_Subtypes): Add condition to prevent generation of actual
28804 subtypes for Unchecked_Unions.
28806 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28807 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28808 completions of discriminated partial views by Unchecked_Unions and
28809 produce an error message.
28811 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28813 * trans.c (struct stmt_group): New field, GLOBAL.
28814 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28815 (struct elab_info): New struct.
28816 (elab_info_list, gnu_elab_proc_stack): New variables.
28817 (Compilation_Unit_to_gnu): New procedure.
28818 (gigi): Call it and also handle elaboration procs we've saved.
28819 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28820 global field from parent.
28821 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28822 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28823 (start_stmt_group): Initialize global field from parent.
28824 (add_decl_expr): Set to global for current statement group.
28825 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28828 * utils.c (global_bindings_p): True when no current_function_decl; no
28829 longer check current_binding_level.
28831 2004-08-09 Ben Brosgol <brosgol@gnat.com>
28833 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28836 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28838 2004-08-06 Andreas Schwab <schwab@suse.de>
28840 * utils.c (gnat_define_builtin): Remove second parameter of
28842 (begin_subprog_body): Likewise.
28844 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
28846 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28847 optimization, not supported by the tree-ssa back-end.
28849 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
28851 * s-mastop-irix.adb: Update comments.
28853 * a-except.adb (Exception_Information): Raise Constraint_Error if
28854 exception Id is Null_Id.
28855 This is required behavior, which is more reliably and clearly checked
28856 at the top level interface level.
28858 2004-07-26 Javier Miranda <miranda@gnat.com>
28860 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28861 call if a component has no default_expression and the box is used.
28863 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28864 default_expression and you use box, it behaves as if you had declared a
28865 stand-alone object.
28866 (Resolve_Record_Aggregate): If a component has no default_expression and
28867 you use box, it behaves as if you had declared a stand-alone object.
28869 * sem_ch10.adb (Install_Siblings): Do not make visible the private
28870 entities of private-with siblings.
28872 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28874 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28875 for a component of an itype, set the parent pointer for analysis,
28876 there is no list in which to insert it.
28878 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28879 bona-fide renamings, not for inherited operations.
28881 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28882 actual for a formal that is an access parameter, create local
28883 finalization list even if the expression is not an aggregate.
28885 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28888 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28889 Diagnose properly illegal subprogram renamings that are library units.
28891 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28894 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28895 conversion rewritten as an unchecked conversion, check that original
28896 expression is a variable.
28898 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28899 unchecked_conversion, create new node rather than rewriting in place,
28900 to preserve original construct.
28902 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28904 * gigi.h (gnat_expand_body): Deleted.
28906 * Make-lang.in: (trans.o): Depends on function.h.
28908 * misc.c: (gnat_expand_body): Moved to here.
28910 * trans.c (gnat_expand_body_1): Deleted.
28911 (gnat_expand_body): Moved from here.
28912 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28913 (add_stmt): Check for marked visited with global_bindings_p.
28914 (gnat_gimplify_expr, case COMPONENT_REF): New case.
28915 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28917 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28918 VIEW_CONVERT_EXPR if not operation type.
28920 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28923 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28924 changes: reformatting of negation operators, removing unneeded
28925 inequality comparison with zero, converting equality comparisons with
28926 zero to negations, changing int/0/1 to bool/false/true, replace calls
28927 to gigi_abort with abort, and various other similar changes.
28929 2004-07-26 Vincent Celier <celier@gnat.com>
28931 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28934 * make.adb (Gnatmake): Fail when a library is not present and there is
28935 no object directory.
28937 * mlib-prj.adb (Check_Library): No need to check if the library needs
28938 to be rebuilt if there is no object directory, hence no object files
28939 to build the library.
28941 * opt.ads (Setup_Projects): New Boolean flag.
28943 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28945 Create directory when Kind /= "" and in "gnat setup". Report error if
28946 directory cannot be created.
28947 (Ada_Check): Create library interface copy dir if it does not exist
28948 and we are in "gnat setup".
28949 (Find_Sources): No error if in "gnat setup" and no Ada sources were
28951 (Language_Independent_Check): Create object directory, exec directory
28952 and/or library directory if they do not exist and we are in
28955 * vms_conv.ads: (Command_Type): New command Setup.
28957 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28959 * vms_data.ads: Add qualifiers/switches for new built-in command
28962 2004-07-25 Richard Henderson <rth@redhat.com>
28964 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28965 DECL_IGNORED_P on RESULT_DECL.
28967 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
28969 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28970 allocation and potentially overflowing update with
28971 Tailored_Exception_Information. Use the sec-stack free procedural
28972 interface to output Exception_Information instead.
28974 * a-except.adb (To_Stderr): New subprogram for character, and string
28975 version moved from a-exextr to be visible from other separate units.
28976 (Tailored_Exception_Information): Remove the procedural version,
28977 previously used by the default Last_Chance_Handler and not any more.
28978 Adjust various comments.
28980 * a-exexda.adb: Generalize the exception information procedural
28981 interface, to minimize the use of secondary stack and the need for
28982 local buffers when the info is to be output to stderr:
28983 (Address_Image): Removed.
28984 (Append_Info_Character): New subprogram, checking for overflows and
28985 outputing to stderr if buffer to fill is of length 0.
28986 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28987 (Append_Info_Address, Append_Info_Exception_Name,
28988 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28989 Append_Info_Basic_Exception_Traceback,
28990 Append_Info_Exception_Information): New subprograms.
28991 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28992 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28993 Exception_Info_Maxlength, Exception_Name_Length,
28994 Exception_Message_Length): New subprograms.
28995 (Exception_Information): Use Append_Info_Exception_Information.
28996 (Tailored_Exception_Information): Use
28997 Append_Info_Basic_Exception_Information.
28998 Export services for the default Last_Chance_Handler.
29000 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29001 other separate units.
29003 2004-07-20 Vincent Celier <celier@gnat.com>
29005 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29007 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29009 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29010 emit itype references for the designated types of component types that
29011 are declared outside of the full record declaration, and that may
29012 denote a partial view of that record type.
29014 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29017 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29018 which is the designated type in an access component declaration, to the
29019 list of incomplete dependents of the parent type, to avoid elaboration
29020 issues with out-of-scope subtypes.
29021 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29022 full view of the parent.
29024 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29027 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29028 entities that are hidden, such as references to generic actuals
29029 outside an instance.
29031 2004-07-20 Javier Miranda <miranda@gnat.com>
29033 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29034 support to the new notation.
29035 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29037 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29039 * s-taprob.adb: Adding the elaboration code required for initializing
29040 the tasking soft links that are common to the full and the restricted
29043 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29044 restricted run time has been moved to the package
29045 System.Soft_Links.Tasking.
29047 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29048 restricted run time has been moved to the package
29049 System.Soft_Links.Tasking.
29051 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29053 * s-solita.ads, s-solita.adb: New files.
29055 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29057 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29058 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29059 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29060 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29061 Exception_Handler_to_gnu_zcx): Likewise.
29063 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29065 * gigi.h (builtin_function): Declare.
29067 2004-07-15 Robert Dewar <dewar@gnat.com>
29069 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29072 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29073 access values as an example of a warning.
29075 * gnat_rm.texi: Document new attribute Has_Access_Values
29077 * gnat-style.texi: Document that box comments belong on nested
29080 * sem_util.ads (Has_Access_Values): Improved documentation
29082 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29084 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29085 (Process_Interface_Name): Call to this new procedure
29086 (Set_Extended_Import_Export_External_Name): Call to this new procedure
29088 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29090 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29092 * einfo.ads: Minor comment typo fixed
29094 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
29096 * snames.adb: Add _atcb.
29098 * snames.ads: Add Name_uATCB.
29100 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29101 (in the expanded code) when using the restricted run time.
29103 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29104 a in parameter in order to allow ATCBs to be preallocated (in the
29107 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29108 order to allow ATCBs to be preallocated. In case of error, the ATCB is
29109 deallocated in System.Tasking.Stages.
29111 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29112 order to allow ATCBs to be preallocated.
29114 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29115 here. It was previously done in Initialize_ATCB.
29117 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29119 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29120 Restricted run time.
29122 * exp_ch3.adb: When using the Restricted run time, pass the
29123 preallocated Ada_Task_Control_Block when creating a task.
29125 2004-07-15 Ed Schonberg <schonberg@gnat.com>
29127 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29128 function call that is itself an actual in an enclosing call, diagnose
29129 problem here rather than assuming that resolution will catch it.
29131 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29132 the local copy of a generic unit for a formal package, and the generic
29133 is a child unit, install private part of ancestors before compiling
29134 private part of spec.
29136 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29137 use scope entities rather than tree structures, to handle properly
29138 parent units that are instances rewritten as bodies for inlining
29141 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29142 Remove_Parents): Handle properly a parent unit that is an
29143 instantiation, when the unit has been rewritten as a body for inlining
29146 * par.adb (Goto_List): Global variable to collect goto statements in a
29147 given unit, for use in detecting natural loops.
29149 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29150 use in detecting natural loops.
29152 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29153 backwards goto's, and rewrite as a infinite loop, to improve locality
29156 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29157 subcomponent that includes an indexed reference, to prevent the
29158 generation of copies that would miscompile the desired assignment
29160 (Build_Task_Image_Decls): Add a numeric suffix to
29161 generated name for string variable, to avoid spurious conflicts with
29162 the name of the type of a single protected object.
29164 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29165 loop with an explicit exit statement, to avoid generating an
29166 out-of-range value with 'Succ leading to spurious constraint_errors
29167 when compiling with -gnatVo.
29169 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
29171 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29172 might not be analyzed yet, even if its Etype is already set (case of an
29173 unchecked conversion built using Unchecked_Convert_To, for example).
29174 If the prefix has already been analyzed, this will be a nop anyway.
29176 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29177 controller type, or an assignment of a record type with controlled
29178 components, copy only user data, and leave the finalization chain
29179 pointers untouched.
29181 2004-07-15 Vincent Celier <celier@gnat.com>
29183 * make.adb (Collect_Arguments): Improve error message when attempting
29184 to compile a source not part of any project, when -x is not used.
29186 * prj.ads: (Defined_Variable_Kind): New subtype
29188 * prj-attr.adb (Register_New_Package): Two new procedures to register
29189 a package with or without its attributes.
29190 (Register_New_Attribute): Mew procedure to register a new attribute in a
29192 New attribute oriented subprograms: Attribute_Node_Id_Of,
29193 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29194 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29196 New package oriented subprograms: Package_Node_Id_Of,
29197 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29199 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29201 (Package_Node_Id): Now a private, self initialized type
29202 (Register_New_Package): New procedure to register a package with its
29204 New attribute oriented subprograms: Attribute_Node_Id_Of,
29205 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29206 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29208 New package oriented subprograms: Package_Node_Id_Of,
29209 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29211 * prj-dect.adb (Parse_Attribute_Declaration,
29212 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29214 * prj-makr.adb (Make): Parse existing project file before creating
29215 other files. Fail if there was an error during parsing.
29217 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29218 new spec of Prj.Attr.
29220 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29221 to new spec of Prj.Attr.
29223 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29225 * utils2.c: Fix typo in comment.
29227 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29229 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29230 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29232 2004-07-14 Andreas Schwab <schwab@suse.de>
29234 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29236 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29238 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29240 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29243 * misc.c (gnat_types_compatible_p): New function.
29244 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29245 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29247 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29248 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29249 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29250 (mark_visited): Don't mark dummy type.
29251 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29252 parameter, we must remove any LJM building from GNU_NAME.
29253 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29254 (pos_to_constructor): Use int_const_binop.
29255 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29258 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29259 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29260 (gnat_install_builtins): Add __builtin_memset.
29262 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29264 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29265 for a renaming, stabilize the initialization expression if we are at a
29266 local level. At the local level, uses of the renaming may be performed
29267 by a direct dereference of the initializing expression, and we don't
29268 want possible variables there to be evaluated for every use.
29270 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29271 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29272 them on the way. Account for the fact that we may introduce side
29273 effects in the process.
29275 2004-07-13 Richard Henderson <rth@redhat.com>
29277 * misc.c (default_pass_by_ref): Use pass_by_reference.
29279 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29281 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29282 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29284 2004-07-08 Richard Henderson <rth@redhat.com>
29286 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29289 2004-07-06 Vincent Celier <celier@gnat.com>
29291 * vms_conv.ads: Minor reformatting.
29292 Alphabetical order for enumerated values of type Command_Type, to have
29293 the command in alphabetical order for the usage.
29295 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29296 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29298 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29300 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29301 (Add_Archive_Path): Only add the global archive if there is one.
29302 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29303 or not any object file to put in the global archive, and don't build
29304 a global archive if there is none.
29305 (X_Switches): New table
29306 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29307 in the X_Switches table, if any.
29308 (Initialize): Make sure the X_Switches table is empty
29309 (Scan_Arg): Record -X switches in table X_Switches
29311 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29313 * make.adb: Minor comment fix
29315 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29316 invoked with directory information, add the directory in front of the
29319 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29320 invoked with directory information, add the directory in front of the
29323 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29324 when Keep_Temporary_Files is False.
29325 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29326 directory information, add the directory in front of the path.
29327 When not on VMS, handle new switch -dn before the command to set
29328 Keep_Temporary_Files to True.
29329 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29332 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29333 invoked with directory information, add the directory in front of the
29336 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
29338 * snames.ads, snames.adb (Name_Stub): New name for the distributed
29341 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29342 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29344 * g-socket.adb (To_Timeval): Fix incorrect conversion of
29345 Selector_Duration to Timeval for the case of 0.0.
29347 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29348 documentation from Evolve_And_Then.
29350 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
29352 * s-taprop-tru64.adb, s-taprop-os2.adb,
29353 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29355 2004-07-06 Robert Dewar <dewar@gnat.com>
29357 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29358 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29359 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29360 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29361 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29362 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29363 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29364 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29365 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29366 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29367 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29368 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29369 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29370 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29371 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29372 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29373 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29374 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29375 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29376 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29377 vms_data.ads: Minor reformatting,
29378 Fix bad box comment format.
29380 * gnat_rm.texi: Fix minor grammatical error
29382 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29384 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29385 more cases of discriminated records to be recognized as not needing a
29387 (Has_Access_Values): New function.
29389 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29391 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29392 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29393 with LRM terminology).
29394 Change terminology in comments primitive type => elementary type.
29396 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29399 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29400 parameters do not impose any requirements on the presence of a body.
29402 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29405 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29406 compilation unit and is in an open scope at the point of instantiation,
29407 assume that a body may be present later.
29409 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29411 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29412 Improve error message when specified size is not supported.
29414 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29415 is never a primitive operation.
29417 2004-07-05 Andreas Schwab <schwab@suse.de>
29419 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29420 RECORD_OR_UNION_CHECK.
29421 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29423 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
29425 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29426 dependency on xgnatugn, instead build it via a submake.
29427 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29429 2004-07-04 Richard Henderson <rth@redhat.com>
29431 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29433 2004-07-01 Richard Henderson <rth@redhat.com>
29435 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29436 * utils.c (max_size): Likewise.
29438 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29440 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29441 and rest_of_type_compilation; add arg to create_*_decl.
29442 (annotate_decl_with_node): Deleted.
29443 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29444 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29445 (get_current_block_context, gnat_pushdecl): New declarations.
29446 (gnat_init_stmt_group): Likewise.
29447 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29448 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29449 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29450 (gnat_init): Call gnat_init_stmt_group.
29451 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29452 (gnu_pending_elaboration_list): Deleted.
29453 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29454 (gigi): Rearrange initialization calls and move some to last above.
29455 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29456 Delete calls to add_decl_expr; add arg to create_*_decl.
29457 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29458 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29459 begin_subprog_body and call it.
29460 Don't push and pop ggc context.
29461 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29462 (add_stmt): Remove handling of DECL_EXPR from here.
29463 If not in function, mark visited.
29464 (add_decl_expr): Put global at top level.
29465 Check for cases of DECL_INITIAL we have to handle here.
29466 (process_type): Add extra arg to create_type_decl.
29467 (build_unit_elab): Rework to just gimplify.
29468 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29469 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29470 (get_pending_elaborations, pending_elaborations_p): Likewise.
29471 (push_pending_elaborations, pop_pending_elaborations): Likewise.
29472 (get_elaboration_location, insert_elaboration_list): Likewise.
29473 (gnat_binding_level): Renamed from ada_binding_level.
29474 (init_gnat_to_gnu): Don't clear pending_elaborations.
29475 (global_bindings_p): Treat as global if no current_binding_level.
29476 (set_current_block_context): New function.
29477 (gnat_pushdecl): Renamed from pushdecl; major rework.
29478 All callers changed.
29479 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29480 (finish_record_type): Call call pushdecl for stub decl.
29481 (function_nesting_depth): Deleted.
29482 (begin_subprog_body): Delete obsolete code.
29483 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29485 2004-06-28 Robert Dewar <dewar@gnat.com>
29487 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29488 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29489 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29490 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29491 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29493 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29494 deal with problem of inefficient slices on machines with strict
29495 alignment, when the slice is a component of a composite.
29497 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29498 machines, we need the check there as well.
29500 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29502 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29503 determine safe copying direction for overlapping slice assignments
29504 when component is controlled.
29506 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29507 formal derived type in the actual for a formal package are visible in
29508 the enclosing instance.
29510 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29513 * sem_util.adb (Trace_Components): Diagnose properly an illegal
29514 circularity involving a private type whose completion includes a
29515 self-referential component.
29516 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29517 renaming or an instantiation from an implicit derived operation.
29519 2004-06-28 Pascal Obry <obry@gnat.com>
29521 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29523 (Library_File_Name_For): Idem.
29525 2004-06-28 Matthew Gingell <gingell@gnat.com>
29527 * g-traceb.ads: Add explanatory note on the format of addresses
29528 expected by addr2line.
29530 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
29532 * Makefile.in: Force debugging information on s-tasdeb.adb,
29533 a-except.adb and s-assert.adb needed by the debugger.
29535 2004-06-28 Vincent Celier <celier@gnat.com>
29537 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29541 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29543 * prj.adb: Minor reformatting
29544 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29546 * prj.ads: Comment updates
29548 (Project_Data): Change Flag1 to Need_To_Build_Lib.
29549 Remove Flag2: not used.
29551 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29554 * gnat_ugn.texi: Put a "null;" declaration in one project file example
29556 * gnat_rm.texi: Document Empty declarations "null;".
29558 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29559 front of the linker options.
29560 (Link_Foreign): Put the global archives and the libraries in front of
29561 the linker options.
29563 2004-06-28 Javier Miranda <miranda@gnat.com>
29565 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29566 (RTU_Loaded): Code cleanup
29567 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29568 withed predefined units.
29570 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29571 explicitly withed predefined units.
29572 Fix typo in comment
29574 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29575 explicitly withed predefined units.
29577 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29579 * ada-tree.def (DECL_STMT): Deleted.
29580 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29581 (DECL_STMT_VAR): Deleted.
29582 * decl.c: add_decl_stmt now add_decl_expr.
29583 * gigi.h: Likewise.
29584 * trans.c: Likewise.
29585 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29586 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29587 (add_stmt): Only handle padded type here.
29588 (add_stmt_with_node): Allow gnat_node to not be present.
29589 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29590 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29591 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29592 make a SAVE_EXPR for the entire fat pointer.
29593 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29594 (create_index_type): Make a DECL_EXPR.
29595 (end_subprog_body): Don't call allocate_struct_function here but
29598 2004-06-25 Pascal Obry <obry@gnat.com>
29600 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29601 Relocatable from Build_Dynamic_Library call.
29603 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29604 Relocatable are now synonym.
29606 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29608 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29609 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29612 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29613 Lib_Address and Relocatable.
29614 (Default_DLL_Address): Removed.
29616 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29617 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29618 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29619 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29620 (Default_DLL_Address): Removed.
29622 * mlib-tgt-mingw.adb: Ditto.
29623 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29625 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29626 the initial thread stack size.
29628 * a-strmap.ads: Move package L to private part as it is not used in
29629 the spec. Found while reading code.
29631 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
29633 * tracebak.c: Introduce support for a GCC infrastructure based
29634 implementation of __gnat_backtrace.
29636 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29637 any more. Use accessors instead. This eases maintenance and relaxes
29638 some alignment constraints.
29639 (_GNAT_Exception structure): Remove the Ada specific fields
29640 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29642 (is_handled_by, __gnat_eh_personality): Replace component references to
29643 exception structure by use of the new accessors.
29645 * init.c (__gnat_initialize): Adjust comments to match the just
29646 reverted meaning of the -static link-time option.
29648 * adaint.c (convert_addresses): Arrange not to define a stub for
29649 mips-irix any more, as we now want to rely on a real version from a
29650 recent libaddr2line.
29652 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29653 the personality routine can use them and not have to rely on a C
29654 counterpart of the record anymore. This simplifies maintenance and
29655 relaxes the constraint of having Standard'Maximum_Alignment match
29657 Update comments, and add a section on the common header alignment issue.
29659 2004-06-25 Geert Bosch <bosch@gnat.com>
29661 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29662 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29664 2004-06-25 Robert Dewar <dewar@gnat.com>
29666 * gnat_rm.texi: Fix section on component clauses to indicate that the
29667 restriction on byte boundary placement still applies for bit packed
29669 Add comment on stack usage from Initialize_Scalars
29671 * gnat_ugn.texi: Add documentation for -gnatyLnnn
29673 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29674 limiting nesting level.
29676 * usage.adb: Add line for -gnatyLnnn switch
29678 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29679 sem_ch13.adb, exp_aggr.adb: Minor reformatting
29681 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29682 type as well as on the subtype. This corrects a problem in freeze in
29683 setting alignments of atomic types.
29685 * sem_eval.ads: Minor comment typo fixed
29687 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29688 level. Minor reformatting.
29690 * fname.adb (Is_Predefined_File_Name): Require a letter after the
29691 minus sign. This means that file names like a--b.adb will not be
29692 considered predefined.
29694 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29695 record Test new flag and give diagnostic for bad component clause.
29696 (Freeze_Entity): Set alignment of array from component alignment in
29697 cases where this is safe to do.
29699 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29702 * cstand.adb: (Create_Standard): Set alignment of String to 1
29704 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29706 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29707 code in the common constrained array cases.
29709 * a-storio.adb: Change implementation to avoid possible alignment
29710 problems on machines requiring strict alignment (data should be moved
29711 as type Buffer, not type Elmt).
29713 * checks.adb (Apply_Array_Size_Check): Improve these checks by
29714 killing the overflow checks which we really do not need (64-bits is
29717 2004-06-25 Vincent Celier <celier@gnat.com>
29719 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29720 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29721 inconditionally for the main project.
29722 (Recursive_Add_Archives.Add_Archive_Path): New procedure
29723 (Link_Executables.Check_Time_Stamps): New procedure
29724 (Link_Executables.Link_Foreign): New procedure
29725 Changes made to reduce nesting level of this package
29726 (Check): New procedure
29727 (Add_Switches): When not in quiet output, check that a switch is not
29728 the concatenation of several valid switches. If it is, issue a warning.
29729 (Build_Global_Archive): If the global archive is rebuilt, linking need
29731 (Compile_Sources): Rebuilding a library archive does not imply
29732 rebuilding the global archive.
29733 (Build_Global_Archive): New procedure
29734 (Build_Library): New name for Build_Archive, now only for library
29736 (Check_Archive_Builder): New procedure
29737 (Create_Global_Archive_Dependency_File): New procedure
29738 (Gprmake): Call Build_Global_Archive before linking
29739 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29741 (Scan_Arg): Display the Copyright notice when -v is used
29743 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29746 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29748 Add new GNAT LIST qualifier /FILES=
29749 Added qualifier /DIRECTORY= to GNAT METRIC
29750 Added qualifier /FILES= to GNAT METRIC
29751 Added qualifier /FILES to GNAT PRETTY
29753 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29754 to take into account both versions of the switch.
29756 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29757 always be the last switch to the gcc driver. Disable switch storing so
29758 that switches automatically added by the gcc driver are not put in the
29761 * prj.adb (Project_Empty): Take into account changes in components of
29764 * prj.ads (Languages_Processed): New enumaration value All_Languages.
29766 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29767 used. Split Boolean component Ada_Sources_Present in two Boolean
29768 components Ada_Sources_Present and Other_Sources_Present.
29771 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29772 instead of Sources_Present.
29773 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29775 * prj-nmsc.adb: Minor reformatting
29776 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29777 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29778 Check_Ada_Naming_Scheme.
29779 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29782 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29784 Make sure that all cycles where there is at least one "limited with"
29786 (Parse_Single_Project): New Boolean parameter In_Limited
29788 * prj-proc.adb (Recursive_Check): When Process_Languages is
29789 All_Languages, call first Prj.Nmsc.Ada_Check, then
29790 Prj.Nmsc.Other_Languages_Check.
29792 * prj-proc.adb (Process): Use Ada_Sources_Present or
29793 Other_Sources_Present (instead of Sources_Present) depending on
29796 * lang-specs.h: Keep -g and -m switches in the same order, and as the
29799 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29800 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29802 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29805 * lib.ads (Disable_Switch_Storing): New procedure.
29807 * make.adb: Modifications to reduce nesting level of this package.
29808 (Check_Standard_Library): New procedure
29809 (Gnatmake.Check_Mains): New procedure
29810 (Gnatmake.Create_Binder_Mapping_File): New procedure
29811 (Compile_Sources.Compile): Add switch -gnatez as the last option
29812 (Display): Never display -gnatez
29814 * Makefile.generic:
29815 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29817 * gnatcmd.adb (Check_Project): New function
29818 (Process_Link): New procedure to reduce nesting depth
29819 (Check_Files): New procedure to reduce the nesting depth.
29820 For GNAT METRIC, include the inherited sources in extending projects.
29821 (GNATCmd): When GNAT LS is invoked with a project file and no files,
29822 add the list of files from the sources of the project file. If this list
29823 is too long, put it in a temp text files and use switch -files=
29824 (Delete_Temp_Config_Files): Delete the temp text file that contains
29825 a list of source for gnatpp or gnatmetric, if one has been created.
29826 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29827 in the project file is too large, create a temporary text file that
29828 list them and pass it to the tool with "-files=<temp text file>".
29829 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29831 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29832 generated file is in not in Ada.
29834 * gnatls.adb: Remove all parameters And_Save that are no longer used.
29835 (Scan_Ls_Arg): Add processing for -files=
29836 (Usage): Add line for -files=
29838 * g-os_lib.adb (On_Windows): New global constant Boolean flag
29839 (Normalize_Pathname): When on Windows and the path starts with a
29840 directory separator, make sure that the resulting path will start with
29843 * clean.adb (Clean_Archive): New procedure
29844 (Clean_Project): When there is non-Ada code, delete the global archive,
29845 the archive dependency files, the object files and their dependency
29846 files, if they exist.
29847 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29849 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
29851 * sinfo.ads: Fix typo in comment.
29853 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29854 the TSS for remote access-to-subprogram types, since these TSS are
29855 always present once the type has been analyzed.
29856 (RAS_E_Dereference): Same.
29858 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29859 reference raises Bad_Attribute, mark the reference as analyzed so the
29860 node (and any children resulting from rewrites that could have occurred
29861 during the analysis that ultimately failed) is not analyzed again.
29863 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29865 * exp_dist.adb: Minor comment fix.
29867 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29868 type is an anonymous access type, no unchecked deallocation of the
29869 allocated object can occur. If the object is controlled, attach it with
29870 a count of 1. This allows attachment to the Global_Final_List, if
29871 no other relevant list is available.
29872 (Get_Allocator_Final_List): For an anonymous access type that is
29873 the type of a discriminant or record component, the corresponding
29874 finalisation list is the one of the scope of the type.
29876 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29878 * sem_ch3.adb (Replace_Type): When computing the signature of an
29879 inherited subprogram, use the first subtype if the derived type
29880 declaration has no constraint.
29882 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29883 before applying previous optimization. Minor code cleanup.
29885 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29886 placed at the beginning of an unpacked record without explicit
29887 alignment, a slice of it will be aligned and does not need a copy when
29890 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29894 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29895 reference is written with expressions mimicking parameters.
29897 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
29900 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29901 STEP 2a. The constraints of a full type declaration of a derived record
29902 type are checked for conformance with those declared in the
29903 corresponding private extension declaration. The message
29904 "not conformant with previous declaration" is emitted if an error is
29907 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
29909 * g-traceb.ads: Document the need for -E binder switch in the spec.
29911 * g-trasym.ads: Document the need for -E binder switch in the spec.
29913 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
29915 * sem_prag.adb: Add handling of pragma Detect_Blocking.
29917 * snames.h, snames.ads, snames.adb: Add entry for pragma
29920 * s-rident.ads: Change reference to pragma Detect_Blocking.
29922 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29925 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29926 to indicate whether pragma Detect_Blocking is active.
29928 * par-prag.adb: Add entry for pragma Detect_Blocking.
29930 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29931 of not handling WITH.
29932 Note that this replaces the previous update which was incorrect.
29934 2004-06-25 Javier Miranda <miranda@gnat.com>
29936 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29937 use-clauses to have a clean environment.
29939 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29940 the installation of the use-clauses to stablish a clean environment in
29941 case of compilation of a separate unit; otherwise the call to
29942 use_one_package is protected by the barrier Applicable_Use.
29944 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29945 the installation of the use-clauses to stablish a clean environment in
29946 case of compilation of a separate unit.
29947 (End_Use_Clauses): Minor comment cleanup.
29949 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
29951 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29953 2004-06-23 Richard Henderson <rth@redhat.com>
29955 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29957 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29959 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29960 now bool instead of int.
29961 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29962 * trans.c (gnu_switch_label_stack): New function.
29963 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29964 elaboration of renamed entity returns.
29965 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29966 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29967 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29968 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29969 DECL_SIZE_UNIT and simplify variable-sized case.
29970 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29971 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29972 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29973 (build_unit_elab): Disable for now.
29974 * utils.c (mark_visited): New function.
29975 (pushdecl): Walk tree to call it for global decl.
29976 (update_pointer_to): Update all variants of pointer and ref types.
29977 Add arg to COMPONENT_REF.
29978 (convert): Likewise.
29979 Move check for converting between variants lower down.
29980 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29981 (build_allocator): Don't force type of MODIFY_EXPR.
29982 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29983 put_var_into_stack.
29985 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29987 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29988 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29989 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29991 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29992 all callers changed.
29993 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29994 the way that EXIT_STMT finds the loop label.
29995 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29996 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29997 (add_stmt): Use annotate_with_locus insted of setting directly.
29998 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29999 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30000 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30001 (build_vms_descriptor): Add extra args to ARRAY_REF.
30002 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30003 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30005 (build_binary_op): Don't make explicit CONVERT_EXPR.
30006 Add extra rgs to ARRAY_REF.
30008 2004-06-14 Pascal Obry <obry@gnat.com>
30010 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30011 Windows. Fix minor typo.
30013 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30014 which is now supported on Windows. With this implementation using the
30015 Library Project feature is no different on Windows than on UNIX.
30017 2004-06-14 Vincent Celier <celier@gnat.com>
30019 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30022 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30024 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30025 found, show the project name and the path of the previously parsed
30028 2004-06-14 Ed Schonberg <schonberg@gnat.com>
30030 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30031 array, avoid copying the actual before the call.
30033 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
30035 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30036 Instead, allocate memory on worst-case alignment assumptions, and then
30037 return an aligned address within the allocated zone.
30039 2004-06-14 Robert Dewar <dewar@gnat.com>
30041 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30042 elab entities in predefined units in No_Run_Time_Mode.
30043 (Gen_Adainit_C): Same fix
30044 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30045 units in No_Run_Time_Mode
30046 (Gen_Elab_Calls_C): Same fix
30048 * symbols-vms-alpha.adb: Minor reformatting
30050 * g-debpoo.ads: Minor reformatting
30052 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30054 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30056 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30059 * make.adb: Minor reformatting
30061 * par-ch12.adb: Minor reformatting
30063 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30065 * prj-strt.adb: Minor reformatting
30067 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30070 * sem_attr.adb: Minor reformatting
30072 * sem_ch7.adb: Minor reformatting
30074 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30075 for type in the same unit as the object declaration.
30077 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30078 static string expressions and not just string literals.
30080 (Set_Warning): Reset restriction warning flag for restriction pragma
30081 Implement pragma Profile_Warnings
30082 Implement pragma Profile (Restricted)
30083 Give obolescent messages for old restrictions and pragmas
30085 * snames.h, snames.ads, snames.adb: Add new entry for pragma
30088 * s-rident.ads: Add declarations for restrictions required by profile
30089 Restricted and profile Ravenscar.
30091 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30093 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30094 configuration pragmas.
30096 2004-06-11 Vincent Celier <celier@gnat.com>
30098 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30099 gnatsym, when symbol policy is Restricted.
30101 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30102 gnatsym, when symbol policy is Restricted.
30104 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30105 read the symbol file.
30106 (Finalize): Fail in symbol policy Restricted if a symbol in the original
30107 symbol file is not in the object files. Do not create a new symbol file
30108 when symbol policy is Restricted.
30110 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30113 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30115 (Usage): Line for new switch -R
30117 * make.adb (Initialize): When the platform is not VMS, add the
30118 directory where gnatmake is invoked in the front of the path, if
30119 gnatmake is invoked with directory information. Change the Scan_Args
30120 while loop to a for loop.
30121 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30122 if Depth is equal or greater than the proposed depth, there is nothing
30124 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30127 * prj.ads: Add new symbol policy Restricted.
30129 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30130 with the new parameters Check_All_Labels and Case_Location.
30132 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30133 (Library_Symbol_File needs to be defined).
30135 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30136 and Case_Location If Check_All_Labels is True, check that all values of
30137 the string type are used, and output warning(s) if they are not.
30139 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30142 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30144 * gnat_ugn.texi: Update documentation about the library directory in
30147 * makegpr.adb (Display_Command): In verbose mode, also display the
30148 value of the CPATH env var, when the compiler is gcc.
30149 (Initialize): Change the Scan_Args while loop to a for loop
30150 (Compile_Individual_Sources): Change directory to object directory
30151 before compilations.
30153 * symbols.ads: New symbol policy Restricted.
30155 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
30157 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30158 is now taken care of internally in the Exception_Propagation package
30159 and does not require clients assistance any more.
30161 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30162 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30163 functions. Helpers to maintain a predicate required in the handling of
30164 occurrence transfer between tasks.
30165 This is now handled internally and does not require clients assistance
30166 for the setup/propagate separation anymore.
30167 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30168 allocation strategy, handle the Setup_And_Not_Propagated predicate and
30171 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30172 raise_after_setup, now that everything is handled internally within the
30173 setup/propagation engine.
30175 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30177 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30178 Add additional conditions for the case of an actual being a simple
30179 name or literal. Improve inlining by preventing the generation
30180 of temporaries with a short lifetime (one use).
30182 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30185 * einfo.ads: Minor comment updates for Has_Completion and
30186 E_Constant list of flags.
30188 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30189 and constant redeclarations now set the Has_Completion flag of their
30190 defining identifiers.
30192 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30193 Inspect_Deferred_Constant_Completion.
30194 Used to detect private deferred constants that have not been completed
30195 either by a constant redeclaration or pragma Import. Emits error message
30196 "constant declaration requires initialization expression".
30198 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30199 completes a deferred constant.
30201 2004-06-11 Geert Bosch <bosch@gnat.com>
30203 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30205 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30206 calculating exponent for scaling denormal numbers.
30207 (Leading_Part): Properly raise Constraint_Error for zero or negative
30209 (Remainder): Properly raise Constraint_Error for zero divisor.
30211 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
30213 * sem_util.adb: Minor reformatting.
30215 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30216 dereference when accessing the entry parameter record.
30217 (Check_Array_Type): Always check for possible implicit dereference.
30218 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30219 Abort if a pointer is still present (denoting that an implicit
30220 dereference was left in the tree by the front-end).
30222 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30223 dereference when accessing the entry parameter record.
30224 (Check_Array_Type): Always check for possible implicit dereference.
30225 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30226 Abort if a pointer is still present (denoting that an implicit
30227 dereference was left in the tree by the front-end).
30229 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30231 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30232 message, like the compiler itself does. Easier to parse the output.
30234 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30236 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30237 be base names, and not includes directories.
30239 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30241 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30242 so that dependencies are properly taken into account by make.
30244 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30247 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30248 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30250 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30252 * Makefile.in (install-gnatlib): install target-specific run-time files.
30254 * Make-lang.in: Remove obsolete targets.
30256 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30258 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30259 specification, to catch misuses of program unit names.
30261 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30262 superfluous conversions in an instance.
30264 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30267 * sem_ch12.adb (Save_References): If operator node has been folded to
30268 enumeration literal, associated_node must be discarded.
30270 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30272 * s-stchop-vxworks.adb: Add required pragma Convention to
30273 Task_Descriptor because it is updated by a C function.
30275 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30278 * Makefile.in: Remove target specific SO_OPT on IRIX
30280 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30282 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30283 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30284 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30285 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30286 (STMT_STMT, USE_STMT): New statement codes.
30287 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30288 * ada-tree.h: Reflect above changes.
30289 (struct tree_loop_id): Deleted.
30290 (union lang_tree_node, struct lang_decl, struct lang_type):
30291 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30292 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30293 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30294 (IS_ADA_STMT): New macro.
30295 * decl.c (annotate_decl_with_node): New function.
30296 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30297 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30298 Call add_stmt_with_node to do needed assignments.
30299 Add call to update setjmp buffer directly, not via EXPR_STMT.
30300 (maybe_variable): Argment GNAT_NODE deleted.
30301 * gigi.h (maybe_variable): Likewise.
30302 (make_transform, add_stmt_with_node, set_block_for_group): New.
30303 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30304 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30305 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30306 (set_lineno, set_lineno_from_sloc): Likewise.
30307 (record_code_position, insert_code_for): Likewise.
30308 (gnat_poplevel): Now returns void.
30309 (end_subprog_body): Now takes argument.
30310 * misc.c (cgraph.h, tree-inline.h): New includes.
30311 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30312 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30313 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30314 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30315 (gnat_parse_file): Don't set immediate_size_expand.
30316 Call cgraph functions.
30317 (gnat_expand_expr): Remove most cases.
30318 (record_code_position, insert_code_for): Remove from here.
30319 * trans.c (toplev.h, tree-gimple.h): Now included.
30320 (discard_file_names): Deleted.
30321 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30322 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30323 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30324 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30325 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30326 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30327 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30328 (set_block_for_group, add_stmt_list): Likewise.
30329 (start_stmt_group): Renamed from start_block_stmt.
30330 (end_stmt_group): Likewise, from end_block_stmt.
30331 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30332 (gigi): Don't set discard_file_names or call set_lineno.
30333 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30334 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30335 Numerous changes throughout to reflect new names and complete
30336 function-at-a-time implementation.
30337 (gnat_expand_stmt): Delete or comment out all cases.
30338 (process_inlined_subprograms): Use add_stmt.
30339 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30340 call set_lineno; also remove unneeded block handling.
30341 (process_type): Remove unneeded block handling.
30342 (build_unit_elab): Remove calls to deleted functions.
30343 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30344 (tree-dump.h): Likewise.
30345 (struct ada_binding_level): Add field jmpbuf_decl.
30346 (gnat_define_builtin, gnat_install_builtins): New.
30347 (gnat_gimplify_function, gnat_finalize): Likewise.
30348 (gnat_poplevel): No longer return BLOCK, set it instead.
30349 Remove code dealing with nested functions.
30350 (gnat_init_decl_processing): Also set size_type_node.
30351 Call gnat_install_builtins.
30352 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30353 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30354 Remove special-case for "main".
30355 (end_subprog_body): Add arg and rework for tree-ssa.
30356 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30357 Add case for BOOLEAN_TYPE.
30358 * utils2.c (rtl.h): Now include.
30359 (build_call_raise): Test Debug_Flag_NN directly.
30360 (build_call_alloc_dealloc): Don't use local stack allocation for now.
30361 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30362 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30364 2004-06-07 Robert Dewar <dewar@gnat.com>
30366 * a-direct.ads, einfo.ads: Minor comment updates
30368 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30369 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30370 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30371 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30372 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30374 * s-interr-sigaction.adb: Remove unreferenced variable
30375 (Attached_Interrupts). Minor reformatting.
30376 Avoid use of variable I (replace by J).
30378 * par-ch10.adb: Fix text of one error message
30380 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30381 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30382 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30383 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30384 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30385 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30386 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30387 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30388 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30389 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30390 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30393 2004-06-07 Doug Rupp <rupp@gnat.com>
30395 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30397 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30399 * mlib-tgt-vms-ia64.adb: New file.
30401 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30402 Add mlib-tgt-vms-ia64.adb
30403 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30404 Move to alpha specific ifeq section.
30405 Add VMS specific versions of symbols.adb
30406 Renaming of 5q vms files.
30408 * 5qsystem.ads renamed to system-vms_64.ads.
30410 2004-06-07 Vincent Celier <celier@gnat.com>
30412 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30413 explain that when a time of day corresponding to the non existing hour
30414 on the day switching to DST is specified, Split may return a different
30417 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30420 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30421 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30423 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30425 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30426 the linking options.
30427 (Build_Library.Check_Libs): On VMS, if there is a dependency on
30428 g-trasym.ads, set Gtrasymobj_Needed to True.
30430 * prj-attr.adb: Add new package Metrics for gnatmetric
30432 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30433 canonical case to take into account files with upper case characters on
30435 (Ada_Check): Load the reference symbol file name in the name buffer to
30436 check it, not the symbol file name.
30438 * snames.ads, snames.adb: Add standard name Metrics (name of project
30439 file package for gnatmetric).
30441 * vms_conv.ads: Add Metric to Comment_Type
30443 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30445 * vms_data.ads: Add qualifiers for GNAT METRIC
30447 * makegpr.adb (Link_Executables): Take into account the switches
30448 specified in package Linker of the main project.
30450 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
30452 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30453 the index of the last element is Units.Last, not Units.Table'Last
30454 (which is usually not a valid index within the actually allocated
30455 storage for the table).
30457 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30458 determines whether to generate a call to a checked storage pool
30459 Dereference action.
30460 Generate such a call only for a dereference that either comes from
30461 source, or is the result of rewriting a dereference that comes from
30464 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
30466 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30468 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
30470 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30471 file level, elaborate the stride for inner dimensions in alignment
30474 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30477 2004-06-07 Javier Miranda <miranda@gnat.com>
30479 * exp_ch6.adb: Correct wrong modification in previous patch
30481 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
30483 * g-trasym.ads: Corrected comment to properly reflect level of support
30486 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
30488 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30489 includes case of a variable referenced on the left hand side of an
30490 assignment, therefore remove redundant code. Variables and prefixes of
30491 indexed or selected components are now marked as referenced on left
30492 hand side. Warnings are now properly emitted when variables or prefixes
30493 are assigned but not read.
30495 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30496 left hand side referenced variables. Private access types do not
30497 produce the warning "variable ... is assigned but never read".
30498 Add also additional checks to left hand side referenced variables.
30499 Aliased, renamed objects and access types do not produce the warning
30500 "variable ... is assigned but never read" since other entities may read
30501 the memory location.
30503 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
30505 * Makefile.in: In the powerpc/vxworks-specific section, restore
30506 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30509 2004-06-07 Ed Schonberg <schonberg@gnat.com>
30511 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30512 predefined operators.
30513 Removes spurious type errors from g-trasym-vms.adb.
30515 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30516 distinct from the operator appearing in the source, call appropriate
30517 routine to insert conversions when needed, and complete resolution of
30519 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30520 interpretations for rewritten right operand.
30521 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30522 the other operand is overloaded and the context is a type conversion.
30524 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30526 * ada-tree.def (BLOCK_STMT): Now has two operands.
30529 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30531 * gigi.h: (gnat_poplevel): Now returns a tree.
30533 * trans.c (end_block_stmt): Add arg; all callers changed.
30534 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30535 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30536 (add_stmt): Set TREE_TYPE.
30537 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30538 (gnat_expand_stmt, case BREAK_STMT): New case.
30540 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30542 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
30544 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30545 procedure Set_Stack_Size that is not needed.
30547 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
30549 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30550 used for gnatpp input file and for the files upon which it depends
30552 2004-06-07 Ben Brosgol <brosgol@gnat.com>
30554 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30556 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
30558 * gnatvsn.ads: Bump version numbers appropriately.
30559 Add new build type.
30561 2004-06-07 Pascal Obry <obry@gnat.com>
30563 * gnat_ugn.texi: Improve comments about imported names and link names
30564 on Windows. Add a note about the requirement to use -k gnatdll's option
30565 when working with a DLL which has stripped stdcall symbols (no @nn
30568 2004-05-27 Vincent Celier <celier@gnat.com>
30570 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30571 COMMENTS_LAYOUT=UNTOUCHED
30573 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30574 symbols-vms-alpha.adb
30576 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
30578 * sem.ads: Clarify documentation on checks suppression.
30580 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30582 2004-05-27 Ed Schonberg <schonberg@gnat.com>
30584 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30585 the case of multiple derivations.
30586 (Is_Object_Reference): For a selected component, verify that the prefix
30587 is itself an object and not a value.
30589 * sem_ch12.adb (Same_Instantiated_Constant): New name for
30590 Same_Instantiated_Entity.
30591 (Same_Instantiated_Variable): Subsidiary to
30592 Check_Formal_Package_Instance, to recognize actuals for in-out generic
30593 formals that are obtained from a previous formal package.
30594 (Instantiate_Subprogram_Body): Emit proper error when
30595 generating code and the proper body of a stub is missing.
30597 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30598 has a universal interpretation, do the disambiguation here.
30600 * exp_ch4.adb (Expand_N_Type_Conversion,
30601 Expand_N_Unchecked_Type_Conversion): Special handling when target type
30602 is Address, to avoid typing anomalies when Address is a visible integer
30605 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30606 to determine whether a subprogram should not be marked Pure, even when
30607 declared in a pure package.
30609 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
30611 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30613 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30614 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30615 Update the documentation about the Ravenscar profile, following the
30616 definition found in AI-249.
30618 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30619 setting the Profile (Ravenscar). This must be done in addition to
30620 setting the required restrictions.
30622 * rtsfind.ads: Add the set of operations defined in package
30625 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30628 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
30630 lang-specs.h: Always require -c or -S and always redirect to /dev/null
30631 if -gnatc or -gnats is passed.
30633 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
30635 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30636 a significant reference. Warnings are now properly emitted when a
30637 discriminated type is not referenced.
30639 * lib-xref.adb (Generate_Reference): A deferred constant completion,
30640 record representation clause or record type discriminant does not
30641 produce a reference to its corresponding entity. Warnings are now
30642 properly emitted when deferred constants and record types are not
30645 2004-05-27 Geert Bosch <bosch@gnat.com>
30647 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30648 Fixes ACATS Annex G tests.
30650 2004-05-27 Robert Dewar <dewar@gnat.com>
30652 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30655 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
30657 * s-interr.adb (Server_Task): Take into account case of early return
30658 from sigwait under e.g. linux.
30660 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
30662 * gnat_ugn.texi: Add description for the new gnatpp options:
30663 -rnb - replace the original source without creating its backup copy
30664 -c0 - do not format comments
30666 2004-05-24 Geert Bosch <bosch@gnat.com>
30668 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30669 with 192 bits of precision, sufficient to reduce a double-extended
30670 arguments X with a maximum relative error of T'Machine_Epsilon, for X
30671 in -2.0**32 .. 2.0**32.
30672 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
30673 reduction by the processor, which only uses a 68-bit approximation of
30675 (Tan): Always reduce arguments and compute function either using
30676 the processor's fptan instruction, or by dividing sin and cos as needed.
30678 2004-05-24 Doug Rupp <rupp@gnat.com>
30680 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30681 gcc error on 32/64 bit VMS.
30683 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
30685 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30686 since this is what we get for stack overflows although not documented
30688 Document the issues which may require adjustments to our signal
30691 2004-05-24 Ed Schonberg <schonberg@gnat.com>
30693 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30694 enclosing dynamic scope if the instantiation is within a generic unit.
30696 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30698 * exp_dbug.ads: Fix typo.
30700 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30701 Rename it to its proper name: system-linux-ia64.ads
30702 (stamp-gnatlib1): Remove extra target specific run time files when
30703 setting up the rts directory.
30705 2004-05-24 Javier Miranda <miranda@gnat.com>
30707 * einfo.ads, einfo.adb (Limited_Views): Removed.
30708 (Limited_View): New attribute that replaces the previous one. It is
30709 now a bona fide package with the limited-view list through the
30710 first_entity and first_private attributes.
30712 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30713 limited-private-with clause.
30714 (Install_Limited_Withed_Unit): Install the private declarations of a
30715 limited-private-withed package. Update the installation of the shadow
30716 entities according to the new structure (see Build_Limited_Views)
30717 (Build_Limited_Views): Replace the previous implementation of the
30718 limited view by a package entity that references the first shadow
30719 entity plus the first shadow private entity (required for limited-
30720 private-with clause)
30721 (New_Internal_Shadow_Entity): Code cleanup.
30722 (Remove_Limited_With_Clause): Update the implementation to undo the
30723 new work carried out by Build_Limited_Views.
30724 (Build_Chain): Complete documentation.
30725 Replace Ada0Y by Ada 0Y in comments
30728 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30729 types the level of accessibility depends on the enclosing type
30732 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30733 entities. Complete documentation of previous change.
30735 2004-05-24 Robert Dewar <dewar@gnat.com>
30737 * namet.adb: Minor reformatting
30738 Avoid use of name I (replace by J)
30739 Minor code restructuring
30741 * sem_ch6.adb: Minor reformatting
30743 * lib-writ.adb: Do not set restriction as active if this is a
30744 Restriction_Warning case.
30746 * sem_prag.adb: Reset restriction warning flag if real pragma
30747 restriction encountered.
30749 * s-htable.adb: Minor reformatting
30750 Change rotate count to 3 in Hash (improves hash for small strings)
30752 * 5qsystem.ads: Add comments for type Address (no literals allowed).
30754 * gnat_ugn.texi: Add new section of documentation "Code Generation
30755 Control", which describes the use of -m switches.
30757 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
30759 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30760 through the DECL_INITIAL for renamed variables.
30762 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30764 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30766 2004-05-19 Joel Brobecker <brobecker@gnat.com>
30768 * exp_dbug.ads: Correct comments concerning handling of overloading,
30769 since we no longer use $ anymore.
30771 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
30773 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30774 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30775 with illegal subunits.
30777 2004-05-19 Ed Schonberg <schonberg@gnat.com>
30779 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30780 body with front-end inlining enabled, check whether an inline pragma
30781 appears immediately after the body and applies to it.
30783 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30784 enabled and the pragma appears after the body of the subprogram.
30786 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30788 Part of function-at-a-time conversion
30790 * misc.c (adjust_decl_rtl): Deleted.
30791 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30794 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30795 (add_decl_stmt, add_stmt, block_has_vars): New functions.
30796 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30798 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30799 when making a decl.
30800 (gnat_to_gnu_entity): Likewise.
30801 Use add_stmt to update setjmp buffer.
30802 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30804 No longer call adjust_decl_rtl.
30805 (DECL_INIT_BY_ASSIGN_P): New macro.
30806 (DECL_STMT_VAR): Likewise.
30808 * trans.c (gigi): Call start_block_stmt to make the outermost
30810 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30811 Call start_block_stmt and end_block_stmt temporarily.
30812 Use gnat_expand_stmt instead of expand_expr_stmt.
30813 (add_decl_stmt): New function.
30814 (tree_transform): Call it.
30815 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30816 (end_block_stmt): Set type and NULL_STMT.
30817 (gnat_expand_stmt): Make recursize call instead of calling
30819 (gnat_expand_stmt, case DECL_STMT): New case.
30820 (set_lineno_from_sloc): Do nothing if global.
30821 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30822 (start_block_stmt, add_stmt, end_block_stmt): New functions.
30823 (build_block_stmt): Call them.
30824 (gnat_to_code): Don't expand NULL_STMT.
30825 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30827 (tree_transform): Likewise.
30828 (tree_transform, case N_Null_Statement): Return NULL_STMT.
30829 (gnat_expand_stmt, case NULL_STMT): New case.
30830 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30833 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30836 * utils.c (create_var_decl): Do not call expand_decl or
30838 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30839 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30841 (struct e_stack): Add chain_next to GTY.
30842 (struct binding_level): Deleted.
30843 (struct ada_binding_level): New struct.
30844 (free_block_chain): New.
30845 (global_binding_level, clear_binding_level): Deleted.
30846 (global_bindings_p): Rework to see if no chain.
30847 (kept_level_p, set_block): Deleted.
30848 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30849 new data structure and work directly on BLOCK node.
30850 (gnat_poplevel): Similarly.
30851 (get_decls): Look at BLOCK_VARS.
30852 (insert_block): Work directly on BLOCK node.
30853 (block_has_var): New function.
30854 (pushdecl): Rework for new binding structures.
30855 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30857 (build_subprog_body): Likewise.
30858 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30860 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30862 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30863 (DECL_STMT_VAR): Likewise.
30865 2004-05-17 Robert Dewar <dewar@gnat.com>
30867 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30870 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30871 of restriction synonyums by using
30872 Restrict.Process_Restriction_Synonyms.
30874 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30876 * s-restri.ads (Tasking_Allowed): Correct missing comment
30878 * s-rident.ads: Add entries for restriction synonyms
30880 * ali.adb: Fix some problems with badly formatted ALI files that can
30881 result in infinite loops.
30883 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30884 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30885 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30886 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30887 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30888 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30889 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30890 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30891 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30892 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30893 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30894 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30895 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30896 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30897 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30898 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30899 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30900 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30901 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30902 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30903 to Task_Id (minor cleanup).
30905 2004-05-17 Vincent Celier <celier@gnat.com>
30907 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30908 directory separator.
30910 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30911 project being extended, if Languages is not declared in extending
30914 2004-05-17 Javier Miranda <miranda@gnat.com>
30916 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30917 limited view of a visible sibling.
30919 2004-05-14 Robert Dewar <dewar@gnat.com>
30921 * gnat_ugn.texi: Minor change to -gnatS documentation
30923 * sprint.adb: Remove some instances of Assert (False) and for this
30924 purpose replace them by output of a ??? string.
30926 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30929 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30930 flag processing. This was suppressing required dependencies in
30931 No_Run_Time mode and is not needed since the binder does not generate
30932 references for things in libgnat anyway.
30934 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30937 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
30939 * gnat_ugn.texi: Document AIX-specific issue with initialization of
30942 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30943 action for the case of an actual parameter in an init proc call.
30945 2004-05-14 Ed Schonberg <schonberg@gnat.com>
30947 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30948 subtype, check visible entities in base type.
30950 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30951 actions if the object is a renaming.
30953 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30954 Check_Formal_Package_Instance, to determine more precisely when the
30955 formal and the actual denote the same entity.
30957 2004-05-14 Javier Miranda <miranda@gnat.com>
30959 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30961 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30962 corresponding to a private_with must be removed from visibility; it
30963 will be made visible later, just before we analyze the private part of
30965 (Check_Private_Child_Unit): Allow private_with clauses in public
30967 (Install_Siblings): Make visible the private entities of private-withed
30969 (Install_Withed_Unit): Do not install the private withed unit if we
30970 are compiling a package declaration and the Private_With_OK flag was
30971 not set by the caller. These declarations will be installed later,
30972 just before we analyze the private part of the package.
30974 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30975 during the evaluation of the expression that initializes the object,
30976 decorate it with the expected type to avoid cascade errors.
30979 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30980 subprogram we have to install the private_with clauses after its
30981 specification has been analyzed (as documented in AI-262.TXT).
30983 * sem_ch8.adb (Has_Private_With): New function. Determines if the
30984 current compilation unit has a private with on a given entity.
30985 (Find_Direct_Name): Detect the Beaujolais problem described in
30988 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30989 provides the functionality of the function Is_Ancestor that was
30990 previously available in sem_ch10. It has been renamed to avoid
30993 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30995 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30997 * utils.c (build_vms_descriptor): Use SImode pointers.
30999 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31001 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31003 2004-05-14 GNAT Script <nobody@gnat.com>
31005 * Make-lang.in: Makefile automatically updated
31007 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31009 Renaming of target specific files for clarity
31011 * Makefile.in: Rename GNAT target specific files.
31013 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31014 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31015 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31016 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31017 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31018 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31019 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31020 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31021 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31022 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31023 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31024 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31025 51osinte.adb, 51osinte.ads, 51system.ads,
31026 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31027 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31028 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31029 56tpopsp.adb, 57system.ads, 58system.ads,
31030 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31031 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31032 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31033 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31034 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31035 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31036 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31037 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31038 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31039 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31040 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31041 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31042 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31043 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31044 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31045 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31046 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31047 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31048 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31049 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31050 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31051 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31052 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31053 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31054 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31055 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31056 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31057 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31058 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31059 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31060 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31061 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31062 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31063 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31064 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31065 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31066 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31067 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31068 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31069 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31071 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31072 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31073 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31074 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31075 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31076 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31077 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31078 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31079 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31080 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31081 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31082 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31083 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31084 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31085 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31086 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31087 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31088 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31089 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31090 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31091 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31092 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31093 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31094 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31095 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31096 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31097 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31098 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31099 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31100 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31101 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31102 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31103 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31104 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31105 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31106 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31107 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31108 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31109 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31110 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31111 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31112 s-osinte-vms.ads, s-osinte-vxworks.adb,
31113 s-osinte-vxworks.ads, s-osprim-mingw.adb,
31114 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31115 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31116 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31117 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31118 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31119 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31120 s-stchop-vxworks.adb, s-taprop-dummy.adb,
31121 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31122 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31123 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31124 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31125 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31126 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31127 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31128 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31129 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31130 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31131 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31132 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31133 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31134 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31135 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31136 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31137 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31138 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31139 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31140 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31141 system-irix-o32.ads, system-linux-x86_64.ads,
31142 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31143 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31144 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31145 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31146 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31147 system-vxworks-mips.ads, system-vxworks-ppc.ads,
31148 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31151 2004-05-13 Zack Weinberg <zack@codesourcery.com>
31153 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31155 2004-05-13 Diego Novillo <dnovillo@redhat.com>
31157 Merge from tree-ssa-20020619-branch.
31159 * config-lang.in (boot_language, build_by_default): Set
31161 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31162 (max_size): Add static chain op for call_expr.
31164 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
31167 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31169 2004-05-11 Roger Sayle <roger@eyesopen.com>
31171 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31174 2004-05-10 Doug Rupp <rupp@gnat.com>
31176 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31179 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31181 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31183 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31184 Fixes undefined symbols in IA64 gnatlib.
31186 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31188 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31189 Short_Address). This will be moved to system.auxdec.
31191 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
31193 * sem_util.adb: Replace test for presence of a node that is always
31194 present with a call to Discard_Node.
31196 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31197 Analyze on the library unit node after generation of distribution stub
31198 constructs. The call was a no-op because Unit_Node has already been
31199 Analyzed, and the tree fragments for the distribution stubs are
31200 analyzed as they are inserted in Exp_Dist.
31201 Update comment regarding to distribution stubs to reflect that we
31202 do not generate stub in separate files anymore.
31204 * einfo.ads: Clarify the fact that a tagged private type has the
31205 E_Record_Type_With_Private Ekind.
31207 * erroutc.adb: Minor reformatting
31209 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31210 values if line length is increased using -gnatyM (noticed during code
31213 * eval_fat.adb: Minor reformatting
31214 Put spaces around exponentiation operator
31216 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31219 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31220 has been rewritten as an explicit dereference, retrieve type of
31221 original node to check for possibly unconstrained record type.
31223 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31225 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31226 overriding, use the operation of the parent unconditionally.
31228 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31229 operation when either operand is a literal, to avoid further
31232 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31233 overridden by a previous explicit declaration, mark the previous entity
31236 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31237 Is_Visibly_Controlled, to determine whether a declaration of a
31238 primitive control operation for a derived type overrides an inherited
31239 one. Add warning if the explicit declaration does not override.
31241 2004-05-10 Vincent Celier <celier@gnat.com>
31243 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31244 some cases when the sources are no longer present.
31246 * make.adb (Collect_Arguments): Fail if an external source, not part
31247 of any project need to be compiled, when switch -x has not been
31250 * makeusg.adb: Document new switch -x
31252 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31253 defaulted to False.
31255 * switch-m.adb (Scan_Make_Switches): New switch -x
31257 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31258 gnatmake switch -x.
31260 * gnat_ugn.texi: Document new gnatmake switch -x
31262 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31264 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31266 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31267 (process_attributes): Likewise.
31269 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31271 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31273 2004-05-10 Robert Dewar <dewar@gnat.com>
31275 * gnat_ugn.texi: Document that for config pragma files, the maximum
31276 line length is always 32767.
31278 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31279 literals is now allowed.
31281 * gnat-style.texi: Remove statement about splitting long lines before
31282 an operator rather than after, since we do not follow this rule at all.
31283 Clarify rule (really lack of rule) for spaces around exponentiation
31285 * sem_elim.adb: Allow concatenation of string literals as well as a
31286 single string literal for pragma arguments.
31288 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31290 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31291 written for append case.
31293 * frontend.adb: Changes to avoid checking max line length in config
31296 * g-os_lib.ads: Minor reformatting
31298 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31299 wrong in any case. Instead use standard value. Noticed during code
31302 * opt.ads (Max_Line_Length): New field, used to implement removal of
31303 limitation on length of lines when scanning config pragma files.
31305 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31306 makeutl.ads, makeutl.adb: Minor reformatting
31308 * scn.adb: Do not check line length while scanning config pragma files
31309 Do not check line length while scanning out license information
31311 * scng.adb: Changes to avoid line length checks while parsing config
31314 2004-05-10 GNAT Script <nobody@gnat.com>
31316 * Make-lang.in: Makefile automatically updated
31318 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31320 * osint.adb (Find_Program_Name): Fix handling of VMS version
31323 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
31325 * g-os_lib.ads (Invalid_Time): New constant
31327 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31328 return OS_Time instead of time_t to match what is imported by Ada.
31329 Now return -1 if the file doesn't exist, instead of a random value
31331 2004-05-05 Robert Dewar <dewar@gnat.com>
31333 * usage.adb: Add line for -gnatR?s switch
31335 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31337 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31338 and for Match (Data_First, Data_last)
31340 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31341 written when we are dealing with multi-unit files.
31343 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
31345 * Makefile.in: Remove unused targets and variables.
31347 2004-05-05 Vincent Celier <celier@gnat.com>
31349 * switch-m.adb: New gnatmake switch -eI
31351 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31352 of new gnatmake switch -eInnn.
31354 * makegpr.adb: Take into account new parameters Index and Src_Index in
31357 * clean.adb: Implement support for multi-unit sources, including new
31360 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31363 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31364 (Extract_From_Q): New out parameter Index
31365 (Mark, Is_Marked): Subprograms moved to Makeutl
31366 (Switches_Of): New parameter Source_Index
31367 (Add_Switch): New parameter Index
31368 (Check): New parameter Source_Index
31369 (Collect_Arguments): New parameter Source_Index
31370 (Collect_Arguments_And_Compile): New parameter Source_Index
31371 (Compile): New parameter Source_Index
31372 Put subprograms in alphabetical order
31373 Add support for multi-source sources, including in project files.
31375 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31376 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31379 * makeusg.adb: New gnatmake switch -eInnn
31381 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31384 * opt.ads (Main_Index): New variable, defaulted to 0.
31386 * osint.ads, osinte.adb (Add_File): New parameter Index
31387 (Current_Source_Index): New function
31389 * prj.adb: Take into account new components Index and Src_Index
31391 * prj.ads (String_Element): New component Index
31392 (Variable_Value): New component Index
31393 (Array_Element): New component Src_Index
31395 * prj-attr.adb: Indicate that optional index may be specified for
31396 attributes Main, Executable, Spec, Body and some of Switches.
31398 * prj-attr.ads (Attribute_Kind): New values for optional indexes
31399 (Attribute_Record): New component Optional_Index
31401 * prj-com.ads (File_Name_Data): New component Index
31403 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31405 * prj-env.adb (Put): Output optional index
31407 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31408 attributes Spec and Body.
31410 * prj-nmsc.adb: Process optional indexes
31412 * prj-pp.adb: Ouput "at" for optional indexes
31414 * prj-proc.adb: Take into account optional indexes
31416 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31417 Optional_Index. For string literal,
31418 process optional index when Optional_Index is True.
31419 (Parse_Expresion): New Boolean parameter Optional_Index
31421 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31422 (Set_Source_Index_Of): New procedure
31424 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31427 * prj-util.ads (Executable_Of): New parameter Index
31428 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31429 New parameter Src_Index, defaulted to 0.
31431 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31434 * sem_ch3.adb (Access_Definition): If this is an access parameter
31435 whose designated type is imported through a limited_with clause, do
31436 not add the enclosing subprogram to the list of private dependents of
31439 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31442 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31443 a limited_with clause, and the other is its non-limited view.
31445 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
31447 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31449 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31450 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31451 Stand.Boolean_Literals to produce references to entities
31452 Standard_False and Standard_True from compile-time computed boolean
31455 * stand.ads (Boolean_Literals): New variable, provides the entity
31456 values for False and True, for use by the expander.
31458 2004-05-05 Doug Rupp <rupp@gnat.com>
31460 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31461 5vinmaop.adb: Unchecked convert Short_Address vice Address
31463 * adaint.c, raise.c: Caste CRTL function return value
31464 to avoid gcc error on 32/64 bit IVMS.
31466 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31469 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31471 * 5qsystem.ads (Address): Declare as Long_Integer
31472 (Short_Address): Declare as 32 bit subtype of Address
31473 Declare abstract address operations to avoid gratuitous ambiguities.
31475 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
31477 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31478 instead of the old Boolean_Entry_Barriers.
31479 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31481 2004-05-05 GNAT Script <nobody@gnat.com>
31483 * Make-lang.in: Makefile automatically updated
31485 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31487 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31489 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
31492 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31493 alone. Replacing object references by literals is inappropriate in a
31494 so low level context.
31496 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31498 * a-exexpr.adb: Add comments
31500 2004-05-03 Joel Brobecker <brobecker@gnat.com>
31502 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31503 declare the Ancestor_Tags array in Type_Specific_Data with a small size
31504 without risking a bounds check error when accessing one of its
31506 (Type_Specific_Data): Define Ancestor_Tags as a small array.
31507 This prevents us from hitting a limitation during the debug info
31508 generation when using stabs.
31510 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31512 This prevents us from hitting a limitation during the debug info
31513 generation when using stabs.
31515 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
31517 lang-specs.h: Remove -gnatz* from specs.
31519 2004-05-03 Vincent Celier <celier@gnat.com>
31521 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31523 * Make-lang.in, Makefile.in: Add gprmake
31525 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
31527 * sem_aggr.adb: Fix typo in comment.
31529 2004-05-03 Robert Dewar <dewar@gnat.com>
31531 * make.adb: Minor reformatting
31533 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31535 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31536 so that it works when address is not a private type.
31538 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31539 properly with rewritten unchecked conversions. This prevents
31540 order-of-elaboration issues that can otherwise arise.
31541 (Minimum_Size): Don't check size of access types under VMS
31543 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31544 interpretations of integer literals as type System.Address.
31546 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31547 (Is_Descendent_Of): New function
31549 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
31551 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31552 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31553 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31555 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31556 of the old Max_Entry_Queue_Depth.
31558 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31559 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31560 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31562 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31563 New entry for proper handling of Max_Entry_Queue_Depth.
31564 New entry for proper handling of No_Dynamic_Interrupts.
31566 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31567 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31568 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31569 the GNAT specific restriction Max_Entry_Queue_Depth.
31570 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31571 the GNAT specific restriction No_Dynamic_Interrupts.
31573 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31574 instead of the old Boolean_Entry_Barriers.
31575 Use the new restriction No_Dynamic_Attachment instead of the old
31576 No_Dynamic_Interrupts.
31578 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31579 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31581 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31582 of the old Max_Entry_Queue_Depth.
31584 2004-05-03 GNAT Script <nobody@gnat.com>
31586 * Make-lang.in: Makefile automatically updated
31588 2004-04-29 Ed Schonberg <schonberg@gnat.com>
31590 * checks.adb (Enable_Range_Check): If the prefix of an index component
31591 is an access to an unconstrained array, perform check unconditionally.
31593 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31595 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31598 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
31600 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31601 alternate stack setting. There was no support for the tasking cases
31602 and the changes eventually caused a number of side-effect failures in
31603 the non-tasking case too.
31605 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
31607 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31610 2004-04-29 Vincent Celier <celier@gnat.com>
31612 * make.adb (Gnatmake): Increase max size of argument array for
31613 gnatbind for the potential addition of -F.
31614 If there are Stand-Alone Library projects, invoke gnatbind with -F to
31615 be sure that elaboration flags will be checked.
31617 * switch-c.adb: Correct call to Scan_Pos for -gnateI
31619 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
31621 * sem_warn.adb (Check_References): Move '<access-variable> may be
31622 null' warning out of under Warn_On_No_Value_Assigned.
31624 2004-04-29 Ed Falis <falis@gnat.com>
31626 * gnat_ugn.texi: Fixed texi error
31628 2004-04-29 Robert Dewar <dewar@gnat.com>
31630 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31631 abstract operations if they come from predefined files.
31633 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31636 * s-addope.adb: Correct obvious error in mod function
31638 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
31640 * Makefile.in: Add target pairs for powerpc darwin*
31643 * a-intnam-darwin.ads, s-osinte-darwin.adb,
31644 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31646 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31648 * Makefile.in: Add target macro definitions for s390*-linux*.
31649 * system-linux-s390.ads: New file.
31650 * system-linux-s390x.ads: New file.
31652 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
31654 * gnat_ugn.texi: Correct argument to @setfilename.
31656 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31658 * a-exexpr.adb (Unwind_Word): New data type.
31659 (Unwind_Exception): Use it as type of Private1 and Private2.
31661 * raise.c (db_action_for): Fix debug printf.
31663 2004-04-27 Ed Schonberg <schonberg@gnat.com>
31665 * a-wtmoio.ads: Formal type must be a modular type, not a signed
31668 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31670 * decl.c (gnat_to_gnu_entity, case object): Call
31671 __builtin_update_setjmp_buf.
31673 * gigi.h (update_setjmp_buf): Deleted.
31674 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31676 * misc.c: (update_setjmp_buf): Deleted.
31678 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31679 around block of RTL.
31681 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31683 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
31685 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31686 subprogram for which no pragma All_Calls_Remote applies, store the
31687 address of the real subprogram in the underlying record type, so local
31688 dereferences do not go through the PCS.
31690 2004-04-26 Robert Dewar <dewar@gnat.com>
31692 * i-c.ads: Add some type qualifications to avoid ambiguities when
31693 compiling with s-auxdec.ads and a non-private address type.
31695 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
31697 * Makefile.rtl: Fix error in previous check-in:
31698 Add s-addope.o to non tasking object list (rather than tasking object
31701 2004-04-26 Javier Miranda <miranda@gnat.com>
31703 * sem_aggr.adb: Fix typo in comments
31704 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31705 Required to check the null-exclusion attribute.
31707 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31708 case of anonymous access types in record and array components. For a
31709 component definition the level is the same of the enclosing composite
31712 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31713 that are anonymous access types the level of accessibility depends on
31714 the enclosing type declaration. In order to have this information, set
31715 the scope of the anonymous access type to the enclosing record type
31717 (Array_Type_Declaration): In case of components that are anonymous
31718 access types the level of accessibility depends on the enclosing type
31719 declaration. In order to have this information, set the scope of the
31720 anonymous access type to the enclosing array type declaration.
31722 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31725 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31726 renaming of anonymous access-to-constant types allowed if and only if
31727 the renamed object is access-to-constant.
31729 * sem_util.adb (Type_Access_Level): In case of anonymous access types
31730 that are component_definition or discriminants of a nonlimited type,
31731 the level is the same as that of the enclosing component type.
31733 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
31735 * sem_elim.adb: Some minor code reorganization from code reading. Fix
31736 misprint in the function name (File_Name_Match).
31738 2004-04-23 Laurent Guerby <laurent@guerby.net>
31740 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31743 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31745 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31747 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
31749 * adaint.c (__gnat_try_lock): No longer requires that the parent
31750 directory be writable, the directory itself is enough.
31751 (gnat_is_absolute_path): Change profile, so that the call from
31752 GNAT.OS_Lib can be made more efficient.
31754 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31755 from GNAT.OS_Lib can be made more efficient.
31757 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31758 one copy of the file name. Found by code reading.
31760 2004-04-23 Vincent Celier <celier@gnat.com>
31762 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31763 Correct documentation on gnatmake switches transmitted to the compiler
31765 * ali.ads: Minor comment fix
31767 2004-04-23 Javier Miranda <miranda@gnat.com>
31769 * sem_ch6.adb: (Confirming Types): Code cleanup
31771 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31772 subprogram types: E_Anonymous_Access_Subprogram_Type and
31773 E_Anonymous_Access_Protected_Subprogram_Type.
31775 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
31777 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31778 whether a pragma All_Calls_Remote applies to the subprogram on which
31780 No functional change is introduced by this revision; the new parameter
31781 will be used to allow calls to local RCI subprograms to be optimized
31782 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31783 as is already done in the PolyORB implementation of the DSA.
31785 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31786 whether a pragma All_Calls_Remote applies to the subprogram on which
31788 No functional change is introduced by this revision; the new parameter
31789 will be used to allow calls to local RCI subprograms to be optimized
31790 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31791 as is already done in the PolyORB implementation of the DSA.
31793 2004-04-23 Robert Dewar <dewar@gnat.com>
31795 * Makefile.rtl: Add entry for s-addope.o in run time library list
31796 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31797 * s-addope.ads, s-addope.adb: New files.
31799 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31800 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31801 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31802 System.Address to be non-private and signed.
31804 * sem_elim.adb: Minor reformatting (fairly extensive)
31805 Some minor code reorganization from code reading
31806 Add a couple of ??? comments
31808 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31810 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31811 (tree_transform, case N_If_Statement): Remove non-determinism.
31813 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31815 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
31817 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31818 Eliminate' section.
31820 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31821 no longer used as a parameter name for Eliminate pragma).
31823 2004-04-22 Laurent Guerby <laurent@guerby.net>
31825 PR optimization/14984
31826 PR optimization/14985
31827 * trans.c (gigi): Fix non determinism leading to bootstrap
31828 comparison failures.
31830 2004-04-21 Pascal Obry <obry@gnat.com>
31832 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31833 passed to spawnvp() to properly handle program pathname with spaces on
31836 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
31838 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31839 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31840 unlocked in case of exceptions.
31842 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31844 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31845 This function does not exist anymore.
31847 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31849 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31851 * link.c: Move variables to the __gnat name space.
31853 * Makefile.in: list link.o explicitly when needed.
31855 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31857 2004-04-21 Javier Miranda <miranda@gnat.com>
31859 * einfo.adb (Original_Access_Type): New subprogram
31860 (Set_Original_Access_Type): New subprogram
31861 (Write_Field21_Name): Write the name of the new field
31863 * einfo.ads (Original_Access_Type): New field present in access to
31865 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31866 E_Anonymous_Access_Protected_Subprogram_Type.
31868 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31871 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31872 to anonymous access to subprogram types.
31874 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31875 to subprogram types.
31877 * sem_ch3.adb (Access_Definition): Complete decoration of entities
31878 corresponding to anonymous access to subprogram types.
31879 (Analyze_Component_Declaration): Add new actual to the call to
31880 subprogram replace_anonymous_access_to_protected_subprogram.
31881 (Array_Type_Declaration): Add new actual to the call to subprogram
31882 replace_anonymous_access_to_protected_subprogram.
31883 (Process_Discriminants): Add new actual to the call to subprogram
31884 replace_anonymous_access_to_protected_subprogram.
31885 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31887 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31890 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31891 access to subprogram types.
31893 * sem_util.adb (Has_Declarations): Addition of package_specification
31896 2004-04-21 Ed Schonberg <schonberg@gnat.com>
31898 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31899 inlined flags to renamed entity only if in current unit.
31901 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31903 * s-parint.ads: Add DSA implementation marker.
31905 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31906 value of System.Partition_Interface.DSA_Implementation to determine
31907 what version of the distributed systems annex is available (no
31908 implementation, GLADE, or PolyORB).
31910 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31912 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31914 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31916 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31917 with new type if alias sets differ.
31918 Fixes ACATS c41103b.
31920 2004-04-21 Vincent Celier <celier@gnat.com>
31922 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31923 Add array Lang_Args for the language specific compiling argument
31926 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31928 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
31930 * gnat_rm.texi: Update the descripton of the Eliminate pragma
31931 according to the recent changes in the format of the parameters of the
31932 pragma (replacing Homonym_Number with Source_Location).
31934 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
31936 * 5isystem.ads: Removed, unused.
31938 * gnat_rm.texi: Redo 1.13 change.
31940 2004-04-19 Robert Dewar <dewar@gnat.com>
31942 * s-stoele.ads: Clean up definition of Storage_Offset (the new
31943 definition is cleaner, avoids the kludge of explicit Standard operator
31944 references, and also is consistent with a visible System.Address with
31945 no visible operations.
31947 * s-geveop.adb: Add declarations to avoid assumption of visible
31948 operations on type System.Address (since these might not be available
31949 if Address is a non-private type for which the operations
31950 are made abstract).
31952 * sem_eval.adb: Minor reformatting
31954 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31955 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31956 reformatting (new function spec format).
31958 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31959 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31960 s-caun64.adb: Add declarations to avoid assumption of visible
31961 operations on type System.Address (since these might not be available
31962 if Address is a non-private type for which the operations are made
31965 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31967 * exp_intr.adb: Minor comment update
31969 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31971 * 5omastop.adb: Add declarations to avoid assumption of visible
31972 operations on type System.Address (since these might not be available
31973 if Address is a non-private type for which the operations
31974 are made abstract).
31976 2004-04-19 Vincent Celier <celier@gnat.com>
31978 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31980 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31983 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31985 Call Check with Process_Languages.
31986 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31987 with Process_Languages.
31988 (Recursive_Check): New Boolean parameter Process_Languages. Call
31989 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31992 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31994 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31995 parameter Ada_Main, defaulted to True.
31996 Check for Ada specific characteristics only when Ada_Main is True.
31998 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32000 * prj.adb: (Project_Empty): Add new Project_Data components.
32002 * prj.ads: New types and tables for non Ada languages.
32003 (Project_Data): New components Languages, Impl_Suffixes,
32004 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32005 Include_Path, Include_Data_Set.
32007 * prj-env.ads, prj-env.adb: Minor reformatting
32009 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32010 Put subprograms in alphabetical order
32012 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32013 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32016 * mlib-prj.adb: Back out modification in last version, as they are
32018 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32020 * make.adb: (Mains): Moved to package Makeutl
32021 (Linker_Opts): Moved to package Makeutl
32022 (Is_External_Assignment): Moved to package Makeutl
32023 (Test_If_Relative_Path): Moved to package Makeutl
32024 (Gnatmake): Move sorting of linker options to function
32025 Makeutl.Linker_Options_Switches.
32027 * makeutl.ads, makeutl.adb: New files.
32029 * Makefile.in: Add makeutl.o to the object files for gnatmake
32031 * makeusg.adb: Add line for new switch -eL.
32033 * gnatls.adb (Image): New function.
32034 (Output_Unit): If in verbose mode, output the list of restrictions
32035 specified by pragmas Restrictions.
32037 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32040 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32041 needed, to put it in the range 1970 (included) - 2026 (excluded).
32042 (Time_Of): Do not shift Unix_Min_Year (1970).
32043 Shift the date by multiple of 56 years, if needed, to put it in the
32044 range 1970 (included) - 2026 (excluded).
32046 * adaint.h, adaint.c (__gnat_set_executable): New function.
32048 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32050 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32051 and pop GC context.
32052 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32053 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32054 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32055 (tree_transform, case N_Code_Statement): Likewise.
32056 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32057 LABEL_STMT_FIRST_IN_EH.
32058 (gnat_expand_stmt, case ASM_STMT): New case.
32060 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32061 UNCONSTRAINED_ARRAY_REF.
32063 * utils.c (poplevel): Temporarily push/pop GC context around inline
32064 function expansion.
32066 * decl.c (maybe_variable): Properly set TREE_READONLY of
32067 UNCONSTRAINED_ARRAY_REF.
32068 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32070 * ada-tree.def: (ASM_STMT): New.
32072 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32073 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32074 ASM_STMT_INPUT): New.
32075 (ASM_STMT_CLOBBER): Likewise.
32077 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
32079 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32080 general rcheck mechanism to raise Program_Error for E.4(18), instead
32081 of a custom raiser in System.Partition_Interface.
32082 Part of general cleanup work before PolyORB integration.
32084 * snames.ads, snames.adb: Add new runtime library entities and names
32087 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32089 (Build_Subprogram_Id): New subprogram provided by exp_dist
32090 Code reorganisation in preparation for PolyORB integration.
32092 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32094 (Build_Subprogram_Id): New subprogram provided by exp_dist
32096 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32097 actual parameter types for call to dereference of an
32098 access-to-subprogram type.
32100 * rtsfind.ads: Add new runtime library entities and names for PolyORB
32103 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32104 instead, which has the same behaviour here since we never pass it a
32107 * link.c (run_path_option, Solaris case): Use -Wl, as for other
32110 * Makefile.in: adjust object file lists for gnatlink and gnatmake
32111 to account for new dependency upon Interfaces.C.Strings + link.o
32112 For x86 FreeBSD, use 86numaux.
32114 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32115 from Mlib.Tgt to Mlib.
32117 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32118 target-independent.
32120 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32121 target-specific versions of this subprogram, now implemented as a
32122 target-independent function in Mlib.
32124 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32125 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32126 (Linker_Library_Path_Option): Remove target-specific versions of this
32127 subprogram, now implemented as a target-independent function in Mlib.
32129 * atree.adb: (Allocate_Initialize_Node): New subprogram.
32130 Factors out node table slots allocation.
32131 (Fix_Parents): New subprogram.
32132 Encapsulate the pattern of fixing up parent pointers for syntactic
32133 children of a rewritten node.
32134 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32135 (Rewrite): Use New_Copy when creating saved copy of original node.
32136 (Replace): Use Copy_Node to copy nodes.
32138 2004-04-19 Javier Miranda <miranda@gnat.com>
32140 * sprint.adb (Sprint_Node_Actual): Give support to the new
32141 Access_To_Subprogram node available in Access_Definition nodes. In
32142 addition, give support to the AI-231 node fields: null-exclusion,
32143 all-present, constant-present.
32145 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32147 * sinfo.ads, sinfo.adb:
32148 New field Access_To_Subprogram_Definition in Access_Definition nodes
32150 * sem_ch6.adb (Process_Formals): Move here the code that creates and
32151 decorates internal subtype declaration corresponding to the
32152 null-excluding formal. This code was previously in Set_Actual_Subtypes.
32153 In addition, carry out some code cleanup on this code. In case of
32154 access to protected subprogram call
32155 Replace_Anonymous_Access_To_Protected_Subprogram.
32156 (Set_Actual_Subtypes): Code cleanup.
32158 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32159 Find_Type in case of anonymous access renamings. Add warning in case of
32160 null-excluding attribute used in anonymous access renaming.
32162 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32165 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32167 (Access_Definition): In case of anonymous access to subprograms call
32168 the corresponding semantic routine to decorate the node.
32169 (Access_Subprogram_Declaration): Addition of some comments indicating
32170 some code that probably should be added here. Detected by comparison
32171 with the access_definition subprogram.
32172 (Analyze_Component_Declaration): In case of access to protected
32173 subprogram call Replace_Anonymous_Access_To_Protected.
32174 (Array_Type_Declaration): In case of access to protected subprogram call
32175 Replace_Anonymous_Access_To_Protected_Subprogram.
32176 (Process_Discriminants): In case of access to protected subprogram call
32177 Replace_Anonymous_Access_To_Protected_Subprogram.
32179 * par.adb (P_Access_Definition): New formal that indicates if the
32180 null-exclusion part was present.
32181 (P_Access_Type_Definition): New formal that indicates if the caller has
32182 already parsed the null-excluding part.
32184 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32185 (P_Identifier_Declarations): Code cleanup and give support to renamings
32186 of anonymous access to subprogram types.
32187 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32188 (P_Array_Type_Definition): Give support to AI-254.
32189 (P_Component_Items): Give support to AI-254.
32190 (P_Access_Definition): New formal that indicates if the header was
32191 already parsed by the caller.
32192 (P_Access_Type_Definition): New formal that indicates if the caller has
32193 already parsed the null-excluding part.
32195 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32196 call to P_Access_Definition.
32198 2004-04-19 Geert Bosch <bosch@gnat.com>
32200 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32201 the delicate semantics of floating-point to integer conversion.
32202 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32204 * eval_fat.adb (Machine_Mantissa): Moved to spec.
32205 (Machine_Radix): New function.
32207 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32209 (Machine_Radix): New function also for use in conversion checks.
32211 2004-04-19 Ed Schonberg <schonberg@gnat.com>
32213 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32215 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32216 to decorate the access-to-protected subprogram and the equivalent type.
32218 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32219 to anonymous access to subprogram types.
32221 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32222 constant-folding, for legality checks in contexts that require an RM
32225 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32226 temporary but stack checking is not enabled, increment serial number
32227 to so that symbol generation is consistent with and without stack
32230 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32231 independent on whether stack checking is enabled, caller must check
32232 the corresponding flag.
32234 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32236 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32237 parent if it has discriminants.
32238 (Build_Derived_Private_Type): Constructed full view does
32239 not come from source.
32240 (Process_Discriminants): Default discriminants on a tagged type are
32241 legal if this is the internal completion of a private untagged
32244 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32245 no constraint checks, because it corresponds to an existing object.
32247 * sem_prag.adb (Process_Convention): Pragma applies
32248 only to subprograms in the same declarative part, i.e. the same unit,
32249 not the same scope.
32251 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32252 ignore type mismatch on a numeric conversion if expression comes from
32255 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32257 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32258 Homonym_Number parameter, add processing for Source_Location parameter
32260 (Check_Eliminated): Remove the check for homonym numbers, add the check
32261 for source location traces.
32263 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32264 with Arg_Source_Location corresponding to the changes in the format of
32267 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32268 Eliminate pragma corresponding to the changes in the format of the
32269 pragma: Homonym_Number is replaced with Source_Location, two ways of
32270 distinguishing homonyms are mutially-exclusive.
32272 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32274 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32276 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32277 No_Dollar_In_Label, no longer necessary, as it is always True.
32278 (Strip_Suffixes): Likewise.
32280 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32282 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32283 modulus for compatibility with size clause on targets with 16-bit
32286 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32287 full type to fix type mismatches on calls to size functions for
32288 discriminant-dependent array components.
32290 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32292 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32295 2004-04-19 Pascal Obry <obry@gnat.com>
32297 * mdll-utl.adb (Locate): New version is idempotent.
32299 2004-04-17 Laurent Guerby <laurent@guerby.net>
32301 PR ada/14988 (partial)
32302 * impunit.adb: Fix typo.
32304 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32306 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32307 and install-rts-cert targets. Remove all gnatlib and gnattools
32308 targets and all other rts-* targets (moved to libada). Remove (now)
32309 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32310 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32312 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32314 * trans.c (tree_transform): Shortcut returning error_mark_node for
32315 statements in annotate_only_mode.
32316 (tree_transform, case N_Label, case N_Return_Statement,
32317 N_Goto_Statement): Make statement tree instead of generating code.
32318 (tree_transform, case N_Assignment_Statement): No longer check
32319 type_annotate_only.
32320 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32322 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32324 (gnat_to_gnu): Collect any RTL generated and deal with it.
32325 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32326 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32327 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32329 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32331 * ada-tree.def (EXPR_STMT): Fix typo in name.
32332 (BLOCK_STMT, IF_STMT): New nodes.
32334 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32335 LABEL_STMT_FIRST_IN_EH): New macros.
32336 (RETURN_STMT_EXPR): Likewise.
32338 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32339 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32341 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32343 * atree.ads: Correct documentation on extended nodes.
32345 * link.c: Set run_path_option for FreeBSD.
32347 2004-04-08 Vincent Celier <celier@gnat.com>
32349 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32350 one of the ALI file, do not link with DEC lib.
32352 * par.adb Remove the last two characters ("%s" or "%b") when checking
32353 if a language defined unit may be recompiled.
32355 2004-04-08 Ed Schonberg <schonberg@gnat.com>
32357 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32358 removal of abstract operation leaves no possible interpretation for
32361 * sem_eval.adb (Eval_Qualified_Expression): Use
32362 Set_Raises_Constraint_Error on node when needed, so that it does not
32363 get optimized away by subsequent optimizations.
32365 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32366 operands even when they are not wrapped in a type conversion.
32368 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
32370 * sem_prag.adb (Set_Exported): Warn about making static as result of
32371 export only when the export is coming from source. This may be not
32372 be true e.g. on VMS where we expand export pragmas for exception codes
32373 together with imported or exported exceptions, and we don't want the
32374 user to be warned about something he didn't write.
32376 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32378 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32379 duplication between normal entities and those declared as renamings.
32380 No functional change.
32382 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32383 inline functions returning an unconstrained result.
32385 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
32387 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32388 conform to what other front-ends do.
32390 2004-04-08 Doug Rupp <rupp@gnat.com>
32392 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32395 2004-04-06 Pascal Obry <obry@gnat.com>
32397 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32399 * osint.adb (Program_Name): Do not look past a directory separator.
32401 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
32403 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32405 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32406 requirement for preserving a copy of the original assignment node.
32408 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32410 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
32412 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32415 2004-04-06 Ed Schonberg <schonberg@gnat.com>
32417 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32418 operator calls in functional notation, and apply
32419 Universal_Interpretation to operands, not to their type.
32421 2004-04-06 Robert Dewar <dewar@gnat.com>
32423 * 5wdirval.adb: Minor reformatting
32425 2004-04-06 Ed Falis <falis@gnat.com>
32427 * gnat_rm.texi: Improve a reference to the GCC manual
32429 2004-04-05 Vincent Celier <celier@gnat.com>
32431 * adaint.h, adaint.c: Add function __gnat_named_file_length
32433 * impunit.adb: Add Ada.Directories to the list
32435 * Makefile.in: Add VMS and Windows versions of
32436 Ada.Directories.Validity package body.
32438 * Makefile.rtl: Add a-direct and a-dirval
32440 * mlib-tgt.ads: Minor comment update.
32442 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32443 a-direct.ads, a-direct.adb: New files.
32445 2004-04-05 Vincent Celier <celier@gnat.com>
32448 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32449 just to the compiler.
32451 2004-04-05 Robert Dewar <dewar@gnat.com>
32453 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32454 returned string is 1.
32456 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32458 * eval_fat.ads: Minor reformatting
32460 * g-curexc.ads: Document that lower bound of returned string values
32463 * gnatlink.adb: Add ??? comment for previous change
32464 (need to document why this is VMS specific)
32466 * s-stoele.ads: Minor reformatting
32468 * tbuild.ads: Minor reformatting throughout (new function specs)
32470 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32473 * scng.adb: Minor reformatting
32475 2004-04-05 Geert Bosch <bosch@gnat.com>
32477 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32478 (Leading_Part): Still perform truncation to machine number if the
32479 specified radix_digits is greater or equal to machine_mantissa.
32481 2004-04-05 Javier Miranda <miranda@gnat.com>
32483 * par-ch3.adb: Complete documentation of previous change
32484 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32485 (aliased must appear before constant).
32487 * par-ch4.adb: Complete documentation of previous change.
32489 * par-ch6.adb: Complete documentation of previous change.
32491 * sinfo.ads: Fix typo in commment.
32493 2004-04-05 Ed Schonberg <schonberg@gnat.com>
32495 * sem_ch3.adb (Inherit_Components): If derived type is private and has
32496 stored discriminants, use its discriminants to constrain parent type,
32497 as is done for non-private derived record types.
32499 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32500 Ada 2005 AI-310: an abstract non-dispatching operation is not a
32501 candidate interpretation in an overloaded call.
32503 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32504 expression is Null and target type is not an access type (e.g. a
32505 non-private address type).
32507 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
32509 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32510 statement whose right-hand side is an inlined call, save a copy of the
32511 original assignment subtree to preserve enough consistency for
32512 Analyze_Assignment to proceed.
32514 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32515 complete assignment subtree which is now unnecessary, as the expansion
32516 of inlined call has been improved to preserve a consistent assignment
32517 tree. Note_Possible_Modification must be called only
32518 after checks have been applied, or else unnecessary checks will
32521 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32522 of explicit dereferences that do not Come_From_Source:
32523 - be selective on cases where we must go back to the dereferenced
32524 pointer (an assignment to an implicit dereference must not be
32525 recorded as modifying the pointer);
32526 - do not rely on Original_Node being present (Analyze_Assignment
32527 calls Note_Possible_Modification on a copied tree).
32529 * sem_warn.adb (Check_References): When an unset reference to a pointer
32530 that is never assigned is encountered, prefer '<pointer> may be null'
32531 warning over '<pointer> is never assigned a value'.
32533 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
32535 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32538 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
32540 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32541 libexc. We currently don't reference anything in this library and
32542 linking it in triggers linker warnings we don't want to see.
32544 * init.c: Update comments.
32546 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32548 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32549 * utils.c (create_field_decl): Likewise.
32550 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32552 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
32554 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32555 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32556 Add info directory entry and category.
32558 2004-04-02 Jan Hubicka <jh@suse.cz>
32560 * utils.c: Include function.h
32561 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32563 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32566 * Make-lang.in: Clean up generation of documentation
32568 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32570 * xgnatug.adb: Removed, replaced by xgnatugn.adb
32572 * xgnatugn.adb: Replaces xgnatug.adb
32574 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32576 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32578 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32579 gnat_ug_wnt.texi: Removed.
32581 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32583 * utils2.c: Update copyright notice.
32585 2004-04-01 Robert Dewar <dewar@gnat.com>
32587 * checks.adb: Minor reformatting throughout
32588 Note that prev checkin added RM reference to alignment warning
32590 2004-04-01 Ed Schonberg <schonberg@gnat.com>
32592 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32593 non-static when building aggregate for bit-packed array.
32595 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32596 function call that is itself the actual in a procedure call, build
32599 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32600 a string literal, create a temporary for it, constant folding only
32601 handles scalars here.
32603 2004-04-01 Vincent Celier <celier@gnat.com>
32605 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32606 Error_Msg_SP): New empty procedures to instantiate the Scanner.
32607 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32609 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32610 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32611 and get the checksum.
32613 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32615 Increase the Marking_Label at the end of the Multiple_Main_Loop,
32616 instead of at the beginning.
32618 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32620 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32623 * osint.ads (Multi_Unit_Index_Character): New Character global variable
32625 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32628 * par.adb: Remove test on file name to detect language defined units.
32629 Add test on unit name, after parsing, to detect language defined units
32630 that are not compiled with -gnatg (except System.RPC and its children)
32632 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32633 following units without style checking.
32635 * switch-c.adb: Change -gnatC to -gnateI
32637 * usage.adb: Document new switch -gnateInnn
32639 * scng.adb (Accumulate_Token_Checksum): New procedure
32640 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32641 word or literal number.
32642 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32645 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
32648 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32649 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32650 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32651 5vtpopde.adb: Add missing 'constant' keywords.
32653 2004-04-01 Javier Miranda <miranda@gnat.com>
32655 * par-ch4.adb: (P_Allocator): Code cleanup
32657 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32660 * sinfo.ads: Complete documentation of previous change
32662 2004-04-01 Pascal Obry <obry@gnat.com>
32664 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32665 only on VMS. This special handling was done because an old GNU/ld bug
32666 on Windows which has been fixed.
32668 2004-04-01 GNAT Script <nobody@gnat.com>
32670 * Make-lang.in: Makefile automatically updated
32672 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32674 * decl.c (gnat_to_gnu_entity, make_type_from_size):
32675 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32676 * trans.c (tree_transform, convert_with_check): Likewise.
32677 * utils.c (gnat_signed_or_unsigned_type): Likewise.
32678 (build_vms_descriptor, unchecked_convert): Likewise.
32679 * utils2.c (nonbinary_modular_operation): Likewise.
32681 2004-03-29 Javier Miranda <miranda@gnat.com>
32683 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32684 (Install_Null_Excluding_Check): Local subprogram that determines whether
32685 an access node requires a runtime access check and if so inserts the
32686 appropriate run-time check.
32687 (Apply_Access_Check): Call Install_Null_Excluding check if required
32688 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32690 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32692 * einfo.ads: Fix typo in comment
32694 * exp_ch3.adb (Build_Assignment): Generate conversion to the
32695 null-excluding type to force the corresponding run-time check.
32696 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32697 type to force the corresponding run-time check.
32699 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32700 the null-excluding type to force the corresponding run-time check.
32702 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32703 case of access types unless they have the null-excluding attribute.
32705 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32708 * exp_util.ads: Fix typo in comment
32710 * par.adb (P_Null_Exclusion): New subprogram
32711 (P_Subtype_Indication): New formal that indicates if the null-excluding
32712 part has been scanned-out and it was present
32714 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32716 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32717 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32718 type to force the corresponding run-time check
32719 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32721 (Resolve_Array_Aggregate): Carry out some static checks
32722 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32724 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32725 attribute must be set only if specified by means of the null-excluding
32726 part. In addition, we must also propagate the access-constant attribute
32728 (Access_Subprogram_Declaration, Access_Type_Declaration,
32729 Analyze_Component_Declaration, Analyze_Object_Declaration,
32730 Array_Type_Declaration, Process_Discriminants,
32731 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32732 and carry out some static checks.
32733 (Build_Derived_Access_Type): Set the null-excluding attribute
32734 (Derived_Type_Declaration, Process_Subtype): Carry out some static
32737 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32739 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32741 * sem_ch6.adb (Process_Formals): Carry out some static checks.
32742 (Set_Actual_Subtypes): Generate null-excluding subtype if the
32743 null-excluding part was present; it is not required to be done here in
32744 case of anonymous access types.
32745 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32748 * sem_res.adb (Resolve_Actuals): Carry out some static check
32749 (Resolve_Null): Allow null in anonymous access
32751 * sinfo.adb: New subprogram Null_Exclusion_Present
32752 All_Present and Constant_Present available on access_definition nodes
32754 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32755 object_declaration, derived_type_definition, component_definition,
32756 discriminant_specification, access_to_object_definition,
32757 access_function_definition, allocator, access_procedure_definition,
32758 access_definition, parameter_specification, All_Present and
32759 Constant_Present flags available on access_definition nodes.
32761 2004-03-29 Robert Dewar <dewar@gnat.com>
32763 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32764 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32765 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32766 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32767 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32768 sem_prag.adb: Updates to handle multiple units/file
32770 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32772 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32773 sem_util.adb: Minor reformatting
32775 * sem_ch12.adb: Add comment for previous change
32777 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
32779 * osint.adb (Executable_Prefix): Set Exec_Name to the current
32780 executable name when not initialized. Otherwise, use its current value.
32782 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32783 initialize it to another executable name than the current one. This
32784 allows to configure paths for an executable name (gnatmake) different
32785 from the current one (gnatdist).
32787 2004-03-29 Ed Schonberg <schonberg@gnat.com>
32789 * exp_ch6.adb (Expand_Call): A call to a function declared in the
32790 current unit cannot be inlined if it appears in the body of a withed
32791 unit, to avoid order of elaboration problems in gigi.
32793 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32794 information for protected (wrapper) operation as well, to simplify gdb
32797 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32798 protected body, indicate that the entity for the generated spec comes
32799 from source, to ensure that references are properly generated for it.
32800 (Build_Body_To_Inline): Do not inline a function that returns a
32803 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32804 apply convention to homonyms that are declared explicitly.
32806 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32807 that renames an equality operator and the operands are overloaded,
32808 resolve them with the declared formal types, before rewriting as an
32811 2004-03-29 GNAT Script <nobody@gnat.com>
32813 * Make-lang.in: Makefile automatically updated
32815 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32817 * memtrack.adb: Log realloc calls, which are treated as free followed
32820 2004-03-25 Vincent Celier <celier@gnat.com>
32822 * prj-makr.adb (Process_Directories): Detect when a file contains
32823 several units. Do not include such files in the config pragmas or
32824 in the naming scheme.
32826 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32827 Resolve links only when not in Trusted_Mode.
32828 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32829 Do not resolve links for the display names.
32831 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32832 resolve links when computing the display names.
32834 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
32836 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32837 attribute reference does not denote a subtype, it can be any
32838 expression that has a classwide type, potentially after an implicit
32839 dereference. In particular, the prefix can be a view conversion for
32840 a classwide type (for which Is_Object_Reference holds), but it can
32841 also be a value conversion for an access-to-classwide type. In the
32842 latter case, there is an implicit dereference, and the original node
32843 for the prefix does not verify Is_Object_Reference.
32845 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32846 conversion of a discriminant-dependent component of a mutable object
32849 2004-03-25 Ed Schonberg <schonberg@gnat.com>
32851 * freeze.adb (Freeze_Entity): When an inherited subprogram is
32852 inherited, has convention C, and has unconstrained array parameters,
32853 place the corresponding warning on the derived type declaration rather
32854 than the original subprogram.
32856 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32857 indication on renaming declaration, if formal has a box and actual
32860 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32861 determine whether to generate an implicit or explicit reference to
32862 the renamed entity.
32864 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32865 subprogram renaming comes from a defaulted formal subprogram in an
32868 2004-03-25 Gary Dismukes <dismukes@gnat.com>
32870 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32871 value expressions to ensure that calls within a component definition
32872 will be checked (since those are evaluated during the record type's
32875 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
32877 * s-tpobop.adb: Code clean up:
32878 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32880 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32882 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
32884 * Makefile.in: Clean up in the ravenscar run time.
32886 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32888 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32889 of No_Strict_Aliasing to build_pointer_type_for_mode.
32890 * utils.c (update_pointer_to): Walk pointer and ref chains.
32892 2004-03-22 Cyrille Comar <comar@act-europe.fr>
32894 * ali.ads: Fix Comment about Dynamic_Elab.
32896 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32897 Has_RACW, Is_Generic, etc.)
32898 (Output_Object, Gnatls): Take into account ALI files not attached to
32901 2004-03-22 Vincent Celier <celier@gnat.com>
32903 * gprep.adb: Change all String_Access to Name_Id
32904 (Is_ASCII_Letter): new function
32905 (Double_File_Name_Buffer): New procedure
32906 (Preprocess_Infile_Name): New procedure
32907 (Process_Files): New procedure
32908 (Gnatprep): Check if output and input are existing directories.
32909 Call Process_Files to do the real job.
32911 2004-03-22 Robert Dewar <dewar@gnat.com>
32913 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32914 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32916 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
32918 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32919 case when the source contains only comments.
32921 2004-03-22 Ed Schonberg <schonberg@gnat.com>
32923 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32924 declaration for a child subprogram body that acts as a spec, indicate
32925 that the entity in the declaration needs debugging information.
32927 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32928 full view if the subtype is created for a constrained record component;
32929 gigi has enough information to construct the record, and there is no
32930 place in the tree for the declaration.
32932 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32933 serial number for the dummy body that is built for analysis, to avoid
32934 inconsistencies in the generation of internal names when compiling
32937 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
32939 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32942 2004-03-22 GNAT Script <nobody@gnat.com>
32944 * Make-lang.in: Makefile automatically updated
32946 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32948 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32949 * trans.c (tree_transform, emit_index_check): Likewise.
32950 * utils.c (build_template): Likewise.
32951 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32952 (maybe_unconstrained_array, unchecked_convert): Likewise.
32953 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32954 (build_unary_op): Likewise.
32955 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32956 (fill_vms_descriptor): Likewise.
32957 (build_call_alloc_dealloc): Likewise.
32959 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32961 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
32964 * gnat_ug.texi: Add info directory category and entry.
32965 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32966 gnat_ug_wnt.texi: Regenerate.
32968 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
32970 * ada-tree.h: Update copyright notice.
32971 Minor reformatting.
32973 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
32975 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32976 as regular exception objects and not as mere integers representing the
32977 condition code. The latter approach required some dynamics to mask off
32978 severity bits, which did not fit well into the GCC table based model.
32979 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32980 exception data objects. We don't it and it would conflict with the other
32981 external symbol we have to generate for such exceptions.
32983 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32984 the special code for VMS exceptions, since these are now represented
32985 as regular exceptions objects.
32987 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32989 * decl.c (debug_no_type_hash): Remove.
32990 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32991 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32993 2004-03-19 Laurent Guerby <laurent@guerby.net>
32995 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32996 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32998 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33000 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33001 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33002 (TYPE_RM_SIZE_INT): Directly use type.values.
33003 (TREE_LOOP_ID): Clean up check.
33004 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33005 TYPE_VALUES, not TYPE_FIELDS.
33006 * trans.c (convert_with_check): Delay access of bounds of basetype
33007 until sure is numeric.
33009 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33011 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33014 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33015 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33016 Specific.Set instead of direct call to e.g pthread_setspecific.
33018 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
33020 * adaint.c: Update comments.
33022 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33023 GNATLIB_SHARED for FreeBSD.
33025 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33027 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33028 When needed (stack checking) the stack size is retrieved
33029 from the VxWorks kernel.
33031 * Makefile.in: Flag -nostdinc is required when building the run time
33032 for avoiding looking for files in the base compiler.
33033 Add the VxWorks specific version of the package body for
33034 System.Stack_checking.Operations (5zstchop.adb).
33036 * Make-lang.in: Add the object file for
33037 System.Stack_Checking.Operations.
33039 * Makefile.rtl: Add object file for the package
33040 System.Stack_Checking.Operations.
33042 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33044 * s-stache.ads, s-stache.adb: Move the operations related to stack
33045 checking from this package to package System.Stack_Checking.Operations.
33046 This way, stack checking operations are only linked in the final
33047 executable when using the -fstack-check flag.
33049 2004-03-18 Doug Rupp <rupp@gnat.com>
33051 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33054 * 5qsystem.ads, 5xcrtl.ads: New files.
33056 2004-03-18 Vincent Celier <celier@gnat.com>
33058 * prj.adb (Reset): Reset hash table Files_Htable
33060 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33061 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33062 the procedures Add_To_Path_File.
33063 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33064 making sure that each directory is present only once and, for object
33065 dirs, when a directory already present is added, the duplicate is
33066 removed and the directory is always put as the last in the table.
33067 Write the path files at the end of these accumulations.
33069 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33070 Files_Htable for all sources.
33072 * prj-proc.adb (Process): Remove restrictions between not directly
33073 related extending projects.
33075 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
33077 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33078 (Find_Sources): Minor speed optimization.
33080 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33081 parameter Trusted_Mode.
33083 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
33085 * scn.adb (Determine_License): Take into account a degenerated case
33086 when the source contains only comments.
33088 2004-03-18 Ed Schonberg <schonberg@gnat.com>
33090 * sem_warn.adb (Check_References): For a warning on a selected
33091 component that does not come from source, locate an uninitialized
33092 component of the record type to produce a more precise error message.
33094 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
33096 * 3zsoccon.ads: Fix multicast options.
33098 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33101 2004-03-15 Robert Dewar <dewar@gnat.com>
33103 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33104 pragma used for a private type.
33106 * lib-xref.adb (Generate_Reference): Do not generate warning if
33107 reference is in a different unit from the pragma Unreferenced.
33109 * 5vtpopde.adb: Minor reformatting
33110 Fix casing of To_Task_ID
33112 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33113 flag if we have an unchecked conversion to an access type in the same
33116 2004-03-15 Geert Bosch <bosch@gnat.com>
33118 * a-ngcoty.adb (Modulus): In alternate formula for large real or
33119 imaginary parts, use Double precision throughout.
33121 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33122 we want to be able to compile run-time with -gnata for testing, but
33123 this may also be instantiated in user code that is compiled with -gnata.
33125 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
33127 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33128 codes. Having a separate type for this is useful to enforce consistency
33129 throughout the various run-time units.
33130 (Exception_Data): Use Exception_Code for Import_Code.
33132 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33133 Natural and Integer in various places.
33134 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33135 with the severity bits masked off.
33136 (Register_VMS_Exception): Handle the additional exception data pointer
33139 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33140 component, now reflected by an exported accessor.
33141 (is_handled_by): New routine to compute whether the propagated
33142 occurrence matches some handler choice specification. Extracted out of
33143 get_action_description_for, and expanded to take care of the VMS
33145 (get_action_description_for): Use is_handled_by instead of an explicit
33146 complex condition to decide if the current choice at hand catches the
33147 propagated occurrence.
33149 * raise.h (Exception_Code): New type for C.
33151 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33152 System.Standard_Library.Exception_Code, to allow references from the
33153 pragma import/export expander.
33155 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33156 New accessors to allow easy access to GNAT exception data
33158 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33159 redundant Handled_By_Others component, helper for the personality
33160 routine which will now be able to call the appropriate exception data
33163 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33164 component of Standard_Exception_Type to be the closest possible to
33165 Exception_Code in System.Standard_Library, that we cannot get at this
33166 point. Expand a ??? comment to notify that this type node should
33167 probably be rewritten later on.
33169 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33170 registration call to include a pointer to the exception object in the
33173 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33174 instead of int and explicit bitmasks.
33176 2004-03-15 Vincent Celier <celier@gnat.com>
33178 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33179 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33181 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33182 longer needed now that it is in the spec of
33183 System.Tasking.Task_Attributes.
33185 * adaint.h, adaint.c: (__gnat_create_output_file): New function
33187 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33189 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33191 * make.adb (Gnatmake): Do not check the executable suffix; it is being
33192 taken care of in Scan_Make_Arg.
33193 (Scan_Make_Arg): Add the executable suffix only if the argument
33194 following -o, in canonical case, does not end with the executable
33195 suffix. When in verbose mode and executable file name does not end
33196 with executable suffix, output the executable name, in canonical case.
33198 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33199 to avoid warnings when instantiating Ada.Task_Attributes.
33202 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33203 in the correct order.
33205 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33206 redirect standard output and error to a file for the invocation of the
33207 compiler, then read the file.
33209 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33210 directory, instead of the Value.
33211 (Find_Source_Dirs): Remove useless code & comments.
33213 2004-03-15 Ed Schonberg <schonberg@gnat.com>
33215 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33216 tagged type is inherited, and the parent operation is not frozen yet,
33217 force generation of a freeze node for the inherited operation, so the
33218 corresponding dispatch entry is properly initialized.
33219 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33220 when looking for user-defined equality operation.
33222 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33223 boolean when locating primitive equality of tagged component.
33225 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33226 bit-aligned field and the right-hand side a string literal, introduce
33227 a temporary before expanding assignment into a loop.
33229 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33230 priority in full, to ensure that any expanded subepxressions of it are
33231 elaborated in the scope of the init_proc.
33233 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33234 after object declaration, skipping over code that may have been
33235 generated for validity checks.
33237 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33238 discriminants, ignore the known discriminants of its full view, if
33239 any, to check legality.
33241 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33242 component if type has unknown discriminants.
33243 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33244 null if type has unknown discriminants.
33246 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33247 for end label when present.
33249 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33250 temporary file, rather than an empty string.
33252 2004-03-15 Ed Falis <falis@gnat.com>
33254 * s-thread.adb: Removed, no longer used.
33256 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33258 * decl.c (target.h): Now include.
33259 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33260 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33261 (validate_size): For POINTER_TYPE, get smallest size permitted on
33264 * fe.h: Sort Einfo decls and add Set_Mechanism.
33266 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33267 (ada/decl.o): Depends on target.h.
33269 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33270 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33272 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33274 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33276 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33277 Insert_Dereference_Action when rewriting an implicit dereference into
33278 an explicit one, this will be taken care of during expansion of the
33279 explicit dereference.
33280 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33281 of non-packed slices, since the dereference action generated by
33282 expansion of the explicit dereference is needed in any case.
33283 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33284 analyze and resolve the rewritten explicit dereference so it is seen
33286 (Insert_Dereference_Action): This procedure is now called only for the
33287 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33288 dereferences that do not come from source (including explicit
33289 dereferences resulting from rewriting implicit ones), but do not
33290 recursively insert a check for the dereference nodes contained within
33292 (Insert_Dereference_Action): Clarify and correct comment.
33294 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33297 Move language detection to the top level.
33298 * config-lang.in: Build by default.
33300 2004-03-05 Robert Dewar <dewar@gnat.com>
33302 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33304 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33305 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33306 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33307 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33308 unchecked conversion to spec to avoid warnings.
33310 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33313 * 7stpopsp.adb: Correct casing in To_Task_ID call
33315 * a-strsea.ads, a-strsea.adb: Minor reformatting
33317 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33319 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33320 Adjust Max_Msg_Length to be clearly large enough.
33322 * fe.h: Define In_Same_Source_Unit
33324 * osint.adb: Add pragma Warnings Off to suppress warnings
33325 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33328 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33330 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33332 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33334 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33336 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33338 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33339 node. We now do generate them for gcc back end.
33341 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33344 * sinput-c.adb: Fix bad name in header.
33345 Add pragma Warnings Off to suppress aliasing warning.
33347 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33349 * snames.h, snames.ads, snames.adb: Add entry for pragma
33350 No_Strict_Aliasing.
33352 2004-03-05 Vincent Celier <celier@gnat.com>
33354 * prj-com.ads: Add hash table Files_Htable to check when a file name
33355 is already a source of another project.
33357 * prj-nmsc.adb (Record_Source): Before recording a new source, check
33358 if its file name is not already a source of another project. Report an
33361 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33362 source file name, call gnatpp with all the sources of the main project.
33364 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33367 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33368 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33369 /RUNTIME_SYSTEM=, converted to --RTS=
33370 /NOTABS, converted to -notabs
33372 2004-03-05 Pascal Obry <obry@gnat.com>
33374 * make.adb: Minor reformatting.
33376 2004-03-05 Ed Schonberg <schonberg@gnat.com>
33378 Part of implemention of AI-262.
33379 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33381 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33384 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33385 when component type is a partially constrained class-wide subtype.
33386 (Constrain_Discriminated_Type): If parent type has unknown
33387 discriminants, a constraint is illegal, even if full view has
33389 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33390 with unknown discriminants whose full view is a discriminated record.
33392 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33393 flag, to handle properly derivations of tagged types with unknown
33395 (Analyze_Package_Spec, Analyze_Package_Body): Install
33396 Private_With_Clauses before analyzing private part or body.
33398 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33399 Has_Discriminants can be true for a given type (documentation).
33401 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
33403 * s-restri.ads: Fix license (GPL->GMGPL).
33405 * s-tassta.adb: Minor reformatting.
33407 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33408 by calls to Exit_One_ATC_Level, since additional clean up is performed
33411 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33412 by calls to Exit_One_ATC_Level, since additional clean up is performed
33415 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33417 * trans.c: Reflect GCC changes to fix bootstrap problem.
33418 Add warning for suspicious aliasing unchecked conversion.
33420 2004-03-05 GNAT Script <nobody@gnat.com>
33422 * Make-lang.in: Makefile automatically updated
33424 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
33426 * ali.adb (Read_Instantiation_Instance): Do not modify the
33427 current_file_num when reading information about instantiations, since
33428 this corrupts files in later references.
33430 2004-03-02 Vincent Celier <celier@gnat.com>
33432 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33433 before checking if it is read-only.
33435 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33436 of SRC_DIRS and eliminate duplicates.
33438 * gprcmd.adb: Replace command "path" with command "path_sep" to return
33439 the path separator.
33440 (Usage): Document path_sep
33442 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33443 C++ compiler. No need for a script.
33444 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33445 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33448 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33449 where there are Ada sources.
33450 (Set_Ada_Paths): Only add to the include path the source dirs of project
33452 (Add_To_Path): Add the Display_Values of the directories, not their
33455 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33458 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33460 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33461 Value is canonicalized.
33462 (Language_Independent_Check): Do not copy Value to Display_Value when
33463 canonicalizing Value.
33465 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33466 path to find limited with cycles.
33467 (Parse_Single_Project): Use canonical cased path to find the end of a
33470 2004-03-02 Ed Schonberg <schonberg@gnat.com>
33472 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33473 and not a child unit.
33475 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33476 appear in a with_clause.
33478 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33479 only happen in type_annotate mode, do not try to elaborate it.
33481 * exp_util.adb (Force_Evaluation): If expression is a selected
33482 component on the left of an assignment, use a renaming rather than a
33483 temporary to remove side effects.
33485 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33486 inlined instance body, which is analyzed before the end of the
33489 2004-03-02 Robert Dewar <dewar@gnat.com>
33491 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33492 sem_ch4.adb: Use new feature for substitution of keywords in VMS
33494 * errout.ads, errout.adb: Implement new circuit for substitution of
33497 * sem_case.adb (Analyze_Choices): Place message properly when case is
33498 a subtype reference rather than an explicit range.
33500 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33502 2004-03-02 Doug Rupp <rupp@gnat.com>
33504 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33506 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
33508 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33510 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33512 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33515 2004-02-25 Robert Dewar <dewar@gnat.com>
33517 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33518 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33519 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33520 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33521 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33522 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33523 the defining instance of the type to avoid aliasing problems.
33524 Fix copyright header. Fix bad comments in package header.
33526 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33528 2004-02-25 Ed Schonberg <schonberg@gnat.com>
33530 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33531 rewritten as references when aliased through an address clause.
33533 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33534 whether call can be interpreted as an indirect call to the result of a
33535 parameterless function call returning an access subprogram.
33537 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
33540 * exp_ch7.adb (Make_Clean): Remove generation of calls to
33541 Unlock[_Entries], since this is now done by Service_Entries directly.
33543 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33545 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33546 Requeue_Call for better code readability. Change spec and update calls:
33547 PO_Service_Entries now unlock the PO on exit.
33548 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33549 PO_Service_Entries.
33551 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33553 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33555 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
33557 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33558 protected subprogram call and analyzing the result of such expanding
33559 in case when the called protected subprogram is eliminated.
33561 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33564 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
33566 * Makefile.in: Clean ups.
33568 2004-02-23 Ed Schonberg <schonberg@gnat.com>
33570 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33571 protected operations if original subprogram is flagged as eliminated.
33572 (Expand_N_Subprogram_Body): For a protected operation, create
33573 discriminals for next operation before checking whether the operation
33576 * exp_ch9.adb (Expand_N_Protected_Body,
33577 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33578 for internal protected operations if the original subprogram is
33581 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33582 declared in a single protected object.
33584 2004-02-23 Vincent Celier <celier@gnat.com>
33586 * prj-attr.adb: Make attribute Builder'Executable an associative array,
33587 case insensitive if file names are case insensitive, instead of a
33588 standard associative array.
33590 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33591 them as case insensitive on platforms where the file names are case
33594 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33595 project file has already been parsed that canonical path are compared.
33597 2004-02-23 Robert Dewar <dewar@gnat.com>
33599 * sinput-c.ads: Correct bad unit title in header
33601 * freeze.adb: Minor reformatting
33603 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33605 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33606 nonaddressable COMPONENT_REF that is removing padding that we are
33607 taking the address of, take the address of the padded record instead
33608 if item is variable size.
33610 2004-02-20 Robert Dewar <dewar@gnat.com>
33612 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33614 2004-02-20 Ed Schonberg <schonberg@gnat.com>
33616 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33617 itype references for the constrained designated type of a component
33618 whose base type is already frozen.
33620 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
33622 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33623 avoid GCC warnings.
33625 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
33627 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33628 identifier for a phantom package that rewrites the formal package
33629 declaration with a box. The Add semantic decorations for the defining
33630 identifier from the original node (that represents the formal package).
33632 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
33634 * Make-lang.in (ada/stamp-sdefault): Use the top level
33637 2004-02-19 Richard Henderson <rth@redhat.com>
33639 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33641 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
33643 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33644 Scan_ALI can be used for multiple ALI files without reinitializing
33647 2004-02-18 Robert Dewar <dewar@gnat.com>
33649 * debug.adb: Minor reformatting.
33651 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33653 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33654 to zero if there is an address clause.
33656 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
33658 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33660 2004-02-18 Gary Dismukes <dismukes@gnat.com>
33662 * layout.adb (Layout_Component_List): Revise generation of call to
33663 discriminant-checking function to pass selections of all of the type's
33664 discriminants rather than just the variant-controlling discriminant.
33666 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
33668 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33669 fail in the current setup and triggers spurious system error messages.
33670 Pretend it occurred and failed instead.
33672 2004-02-18 Vincent Celier <celier@gnat.com>
33674 * bld.adb: Mark FLDFLAGS as saved
33675 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33676 it is not the root project. Put each directory to be
33677 extended between double quotes to prevent it to be expanded on Windows.
33678 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33679 the project file. Set them back to their initial values if they have not
33680 been set in the project file.
33682 * gprcmd.adb: (Gprdebug, Debug): New global variables
33683 (Display_Command): New procedure
33684 (Usage): Document new command "linkopts"
33685 Call Display_Command when env var GPRDEBUG has the value "TRUE"
33686 Implement new command "linkopts"
33687 Remove quotes that may be around arguments for "extend"
33688 Always call Normalize_Pathname with arguments formatted for the platform
33690 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33691 Change @echo to @$(display) in target clean to be able to clean silently
33693 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33695 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33698 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33699 = Extending_All when current project is an extending all project.
33701 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33702 set to True only for LINK command, after Unix switch -o.
33703 (Process_Arguments): Set Output_File_Expected to True for LINK command
33704 after Unix switch -o. When Output_File_Expected is True, never add an
33705 extension to a file name.
33707 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33708 option file name, only to the --for-linker= switch.
33709 (Option_File_Name): If option file name do not end with ".opt", append
33712 2004-02-18 GNAT Script <nobody@gnat.com>
33714 * Make-lang.in: Makefile automatically updated
33716 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
33718 * Make-lang.in (stamp-sdefault): Do not depend on
33721 2004-02-12 Zack Weinberg <zack@codesourcery.com>
33723 * config-lang.in: Disable Ada by default until probe logic for
33724 a bootstrap Ada compiler can be moved to the top level configure
33727 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
33729 * decl.c (components_to_record): Don't claim that the internal fields
33730 we make to hold the variant parts are semantically addressable, because
33733 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33734 adjust the comment describing the modular type form when we can use it.
33735 (Install_PAT): Account for the Esiz renaming.
33737 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33738 sc_onstack context indication before raising the exception to which
33739 the signal is mapped. Allows better handling of later signals possibly
33740 triggered by the resumed user code if the exception is handled.
33742 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
33744 * 5zinit.adb: Removed, no longer used.
33746 2004-02-12 Robert Dewar <dewar@gnat.com>
33748 * ali.adb: Remove separating space between parameters on R line. Makes
33749 format consistent with format used by the binder for Set_Globals call.
33751 * atree.ads, atree.adb: Minor reformatting (new function header format)
33753 * bindgen.adb: Add Run-Time Globals documentation section containing
33754 detailed documentation of the globals passed from the binder file to
33757 * gnatls.adb: Minor reformatting
33759 * init.c (__gnat_set_globals): Add note pointing to documentation in
33762 * lib-writ.ads, lib-writ.adb: Remove separating space between
33763 parameters on R line.
33764 Makes format consistent with format used by the binder for Set_Globals
33767 * osint.ads: Add 2004 to copyright notice
33770 * snames.ads: Correct capitalization of FIFO_Within_Priorities
33771 Noticed during code reading, documentation issue only
33773 * usage.adb: Remove junk line for obsolete C switch
33774 Noticed during code reading
33776 2004-02-12 Vincent Celier <celier@gnat.com>
33778 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33779 extend for each directory, so that multiple /** directories are
33780 extended individually.
33781 (Recursive_Process): Set the default for LANGUAGES to ada
33783 * gprcmd.adb: Define new command "ignore", to do nothing.
33784 Implement new comment "path".
33786 * Makefile.generic: Suppress output when SILENT is set
33787 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33788 used, so that the correct compiler is invoked.
33789 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33790 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33792 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
33794 * Makefile.in: Clean ups and remove obsolete targets.
33796 2004-02-12 Ed Schonberg <schonberg@gnat.com>
33798 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33799 predicate declared in exp_util.
33801 * exp_util.adb: Add comments.
33803 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33804 visibility before compiling context of the subunit.
33806 * sem_res.adb (Check_Parameterless_Call): If the context expects a
33807 value but the name is a procedure, do not attempt to analyze as a call,
33808 in order to obtain more telling diagnostics.
33810 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33811 'Access on parameterless function calls.
33812 (Normalize_Actuals): For a parameterless function call with missing
33813 actuals, defer diagnostic until resolution of enclosing call.
33815 * sem_util.adb (Wrong_Type): If the context type is an access to
33816 subprogram and the expression is a procedure name, suggest a missing
33819 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
33820 Nathanael Nerode <neroden@gcc.gnu.org>
33824 Merge with libada-branch:
33825 * config-lang.in: Build libada only when ada is built.
33827 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33829 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33830 for a tagged type, verify that both formals have the same type.
33832 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33833 temporary when the formal is an in-parameter and the actual a possibly
33836 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33837 when expansion is disabled, to ensure proper name capture with
33838 overloaded literals. Condition can be of any boolean type, resolve
33841 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33842 renaming is for a formal subprogram with a default operator name, and
33843 there is a usable operator that is visible at the point of
33846 2004-02-09 Robert Dewar <dewar@gnat.com>
33848 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33849 rewrite to ignore errors in ali files, intended to allow tools downward
33850 compatibility with new versions of ali files.
33852 * ali.ads: Add new parameter Ignore_Errors
33854 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33855 duplicating the error message giving the file with restrictions.
33857 * debug.adb: Add debug flag I for gnatbind
33859 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33860 operators for the case where the operator is a defining operator.
33862 * exp_ch3.adb: Minor reformatting (new function spec format).
33864 * exp_ch4.adb: Add comment for previous change, and make minor
33865 adjustment to loop to always check for improper loop termination.
33866 Minor reformatting throughout (new function spec format).
33868 * gnatbind.adb: Implement -di debug flag for gnatbind
33870 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33872 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33874 * lib-load.adb: Fix bad assertion.
33875 Found by testing and code reading.
33876 Minor reformatting.
33878 * lib-load.ads: Minor reformatting.
33880 * lib-writ.adb: There is only one R line now.
33882 * lib-writ.ads: Add documentation on making downward compatible changes
33883 to ali files so old tools work with new ali files.
33884 There is only one R line now.
33885 Add documentation on format incompatibilities (with special GPS note)
33887 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33889 * par-load.adb: Minor reformatting
33891 * sem_ch8.adb: Fix to error message from last update
33892 Minor reformatting and restructuring of code from last update
33894 * par-prag.adb, snames.adb, snames.ads, snames.h,
33895 sem_prag.adb: Implement pragma Profile.
33897 * stylesw.adb: Implement -gnatyN switch to turn off all style check
33900 * usage.adb: Add line for -gnatyN switch
33902 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33904 2004-02-09 Albert Lee <lee@gnat.com>
33906 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33908 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33910 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33913 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33914 is nested in an instance that is not frozen yet, to avoid
33915 order-of-elaboration problems in gigi.
33917 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33918 body the attribute is legal.
33920 2004-02-09 Robert Dewar <dewar@gnat.com>
33922 * s-rident.ads: Minor comment correction
33924 * targparm.adb: Remove dependence on uintp completely. There was
33925 always a bug in Make in that it called Targparm before initializing
33926 the Uint package. The old code appeared to get away with this, but
33927 the new code did not! This caused an assertion error in gnatmake.
33929 * targparm.ads: Fix bad comment, restriction pragmas with parameters
33930 are indeed fully supported.
33932 2004-02-06 Alan Modra <amodra@bigpond.net.au>
33934 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33936 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
33938 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33939 with targetm.calls.promote_prototypes.
33941 2004-02-04 Robert Dewar <dewar@gnat.com>
33943 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33944 ali.ads, gprcmd.adb: Minor reformatting
33946 * bindgen.adb: Output restrictions string for new style restrictions
33949 * impunit.adb: Add s-rident.ads (System.Rident) and
33950 s-restri (System.Restrictions)
33952 * lib-writ.adb: Fix bug in writing restrictions string (last few
33955 * s-restri.ads, s-restri.adb: Change name Restrictions to
33956 Run_Time_Restrictions to avoid conflict with package name.
33957 Add circuit to read and acquire run time restrictions.
33959 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
33961 * restrict.ads, restrict.adb: Use the new restriction
33962 No_Task_Attributes_Package instead of the old No_Task_Attributes.
33964 * sem_prag.adb: No_Task_Attributes is a synonym of
33965 No_Task_Attributes_Package.
33967 * snames.ads, snames.adb: New entry for proper handling of
33968 No_Task_Attributes.
33970 * s-rident.ads: Adding restriction No_Task_Attributes_Package
33971 (AI-00249) that supersedes the GNAT specific restriction
33972 No_Task_Attributes.
33974 2004-02-04 Ed Schonberg <schonberg@gnat.com>
33977 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33978 body, an identifier may be wrapped in an unchecked conversion.
33980 2004-02-04 Vincent Celier <celier@gnat.com>
33982 * lib-writ.ads: Comment update for the W lines
33984 * bld.adb: (Expression): An empty string list is static
33986 * fname-uf.adb: Minor comment update
33988 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33990 * gnatbind.adb: Initialize Cumulative_Restrictions with the
33991 restrictions on the target.
33993 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
33995 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33998 2004-02-02 Arnaud Charlet <charlet@gnat.com>
34000 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34002 2004-02-02 Vincent Celier <celier@gnat.com>
34004 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34005 comment before the usage.
34006 Gprcmd: Fail when command is not recognized.
34007 (Usage): Document command "prefix"
34009 * g-md5.adb (Digest): Process last block.
34010 (Update): Do not process last block. Store remaining characters and
34013 * g-md5.ads (Update): Document that several call to update are
34014 equivalent to one call with the concatenated string.
34015 (Context): Add fields to allow new Update behaviour.
34017 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34018 defaulted to False.
34019 When May_Fail is True and no existing file can be found, return No_File.
34021 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34024 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34025 spec file name instead on the W line.
34027 2004-02-02 Robert Dewar <dewar@gnat.com>
34029 * ali.adb: Read and acquire info from new format restrictions lines
34031 * bcheck.adb: Add circuits for checking restrictions with parameters
34033 * bindgen.adb: Output dummy restrictions data
34034 To be changed later
34036 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34037 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34038 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34039 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34040 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34042 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34043 the warning message on access to possibly uninitialized variable S)
34044 Minor changes for new restrictions handling.
34046 * gnatbind.adb: Minor reformatting
34047 Minor changes for new restrictions handling
34048 Move circuit for -r processing here from bcheck (cleaner)
34050 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34052 * lib-writ.adb: Output new format restrictions lines
34054 * lib-writ.ads: Document new R format lines for new restrictions
34057 * s-restri.ads/adb: New files
34059 * Makefile.rtl: Add entry for s-restri.ads/adb
34061 * par-ch3.adb: Fix bad error messages starting with upper case letter
34064 * restrict.adb: Major rewrite throughout for new restrictions handling
34065 Major point is to handle restrictions with parameters
34067 * restrict.ads: Major changes in interface to handle restrictions with
34068 parameters. Also generally simplifies setting of restrictions.
34070 * snames.ads/adb: New entry for proper handling of No_Requeue
34072 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34073 restriction counting.
34074 Other minor changes for new restrictions handling
34076 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34077 Restriction_Warnings now allows full parameter notation
34078 Major rewrite of Restrictions for new restrictions handling
34080 2004-02-02 Javier Miranda <miranda@gnat.com>
34082 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34083 syntax rule for object renaming declarations.
34084 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34085 component definitions.
34087 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34089 (Array_Type_Declaration): Give support to access components. In addition
34090 it was also modified to reflect the name of the object in anonymous
34091 array types. The old code did not take into account that it is possible
34092 to have an unconstrained anonymous array with an initial value.
34093 (Check_Or_Process_Discriminants): Allow access discriminant in
34095 (Process_Discriminants): Allow access discriminant in non-limited types
34096 Initialize the new Access_Definition field in N_Object_Renaming_Decl
34097 node. Change Ada0Y to Ada 0Y in comments
34099 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34100 equality operators.
34101 Change Ada0Y to Ada 0Y in comments
34103 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34104 renamings Change Ada0Y to Ada 0Y in comments
34106 * sem_type.adb (Find_Unique_Type): Give support to the equality
34107 operators for universal access types
34108 Change Ada0Y to Ada 0Y in comments
34110 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34112 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34114 (N_Object_Renaming_Declaration): Addition of Access_Definition field
34115 Change Ada0Y to Ada 0Y in comments
34117 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34118 component definition and object renaming nodes
34119 Change Ada0Y to Ada 0Y in comments
34121 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
34123 * restrict.adb: Use the new restriction identifier
34124 No_Requeue_Statements instead of the old No_Requeue for defining the
34125 restricted profile.
34127 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34128 No_Requeue_Statements.
34130 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34131 that supersedes the GNAT specific restriction No_Requeue. The later is
34132 kept for backward compatibility.
34134 2004-02-02 Ed Schonberg <schonberg@gnat.com>
34136 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34137 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34138 pragma and fix incorrect ones.
34140 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34141 warning if the pragma is redundant.
34143 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
34145 * 5staprop.adb: Add missing 'constant' keywords.
34147 * Makefile.in: use consistent value for SYMLIB on
34148 platforms where libaddr2line is supported.
34150 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34152 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34155 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
34157 * init.c (__gnat_install_handler): Setup an alternate stack for signal
34158 handlers in the environment thread. This allows proper propagation of
34159 an exception on stack overflows in this thread even when the builtin
34160 ABI stack-checking scheme is used without support for a stack reserve
34163 * utils.c (create_field_decl): Augment the head comment about bitfield
34164 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34165 here, because the former is not accurate enough at this point.
34166 Let finish_record_type decide instead.
34167 Don't make a bitfield if the field is to be addressable.
34168 Always set a size for the field if the record is packed, to ensure the
34169 checks for bitfield creation are triggered.
34170 (finish_record_type): During last pass over the fields, clear
34171 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34172 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
34173 from DECL_BIT_FIELD.
34175 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
34177 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34178 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34179 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34181 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34183 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34185 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34186 (ZCX_By_Default): Likewise.
34187 (Front_End_ZCX_Support): Likewise.
34189 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34190 (Initialize_Lock): Mark Level unreferenced.
34191 (Sleep): Mark Reason unreferenced.
34192 (Timed_Sleep): Likewise.
34193 (Wakeup): Likewise.
34194 (Exit_Task): Use Result.
34195 (Check_No_Locks): Mark Self_ID unreferenced.
34197 * 5gtasinf.adb (New_Sproc): Make Attr constant.
34198 (Bound_Thread_Attributes): Make Sproc constant.
34199 (New_Bound_Thread_Attributes): Likewise.
34201 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34203 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34204 one-dimensional array an slice assignments, when component type is
34207 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34208 component type is controlled, and control_actions are in effect, use
34209 TSS procedure rather than generating inline code.
34211 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34212 arrays with controlled components.
34214 2004-01-26 Vincent Celier <celier@gnat.com>
34216 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34217 command line for the non VMS case.
34219 * gnatlink.adb (Process_Binder_File): When building object file, if
34220 GNU linker is used, put all object paths between quotes, to prevent ld
34221 error when there are unusual characters (such as '!') in the paths.
34223 * Makefile.generic: When there are sources in Ada and the main is in
34224 C/C++, invoke gnatmake with -B, instead of -z.
34226 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34227 from VMS_Conversion.
34228 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34229 specification of argument file on the command line.
34231 2004-01-26 Bernard Banner <banner@gnat.com>
34233 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34235 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34237 * snames.adb: Update copyright notice.
34238 Add info on slice assignment for controlled arrays.
34240 2004-01-23 Robert Dewar <dewar@gnat.com>
34242 * exp_aggr.adb: Minor reformatting
34244 * exp_ch9.adb: Minor code clean up
34246 Fix bad character in comment
34249 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34250 unexpected end of file, along with more detailed message.
34252 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34254 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34257 * decl.c (copy_alias_set): New function.
34258 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34260 2004-01-23 Doug Rupp <rupp@gnat.com>
34262 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34263 lib$${file} in case subsequent character is not a separator.
34265 2004-01-23 Vincent Celier <celier@gnat.com>
34267 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34268 when the GCC version is at least 3.
34270 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34271 Remove all "Opt.", to prepare for opt split
34273 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34274 Extends_All. Set to True when the project parsed is an extending all
34275 project. Fails for importing an extending all project only when the
34276 imported project is an extending all project.
34277 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34278 depending on the value of Extends_All returned.
34280 * prj-proc.adb (Process): Check that no project shares its object
34281 directory with a project that extends it, directly or indirectly,
34282 including a virtual project.
34283 Check that no project extended by another project shares its object
34284 directory with another also extended project.
34286 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34287 Kind = N_With_Clause
34289 * prj-tree.ads: Minor reformatting
34290 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34292 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34294 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34295 applies to a type with an incomplete view, use full view in Name of
34296 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34298 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34300 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34301 SCHED_RR, since other values are not supported by this policy.
34302 (Initialize): Move initialization of mutex attribute to package
34303 elaboration, to prevent early access to this variable.
34305 * Makefile.in: Remove mention of Makefile.adalib, unused.
34307 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34308 1ssecsta.ads: Removed, unused.
34310 2004-01-21 Javier Miranda <miranda@gnat.com>
34312 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34313 entity if already built in the current scope.
34315 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34316 reminder in internal scopes. Required for nested limited aggregates.
34318 2004-01-21 Doug Rupp <rupp@gnat.com>
34320 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34321 VMS. Replace all occurences of libgnat- and libgnarl- with
34322 libgnat$(hyphen) and libgnarl$(hyphen).
34323 Fixed shared library build problem on VMS.
34325 2004-01-21 Robert Dewar <dewar@gnat.com>
34327 * mlib-prj.adb: Minor reformatting
34329 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
34331 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34332 'constant' keywords for declaration of pointers that are not modified.
34334 * exp_pakd.adb: Fix English in comment.
34336 2004-01-21 Ed Schonberg <schonberg@gnat.com>
34339 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34340 copy all attributes of the parent, including the foreign language
34343 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
34346 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34347 for 'delay until' statement.
34349 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
34351 * Make-lang.in: Replace $(docdir) with doc.
34352 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34353 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34354 to use consistent MAKEINFO rule.
34355 (ada.man, ada.srcman): Dummy entry.
34356 (ADA_INFOFILES): Define.
34357 (ada.info, ada.srcinfo): New rules.
34359 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
34361 * utils.c: Update copyright notice, missed in previous change.
34363 2004-01-19 Vincent Celier <celier@gnat.com>
34365 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34366 args if Bind is True. Set First_ALI, if not already done.
34367 (Build_Library): For Stand Alone Libraries, extract from one ALI file
34368 an eventual --RTS switch, for gnatbind, and all backend switches +
34369 --RTS, for linking.
34371 2004-01-19 Robert Dewar <dewar@gnat.com>
34373 * sem_attr.adb, memtrack.adb: Minor reformatting
34375 2004-01-19 Ed Schonberg <schonberg@gnat.com>
34377 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34378 that rename enumeration literals. This is properly done in sem_eval.
34380 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34381 to functions that rename enumeration literals.
34383 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34384 functions that rename enumeration literals.
34386 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
34388 * Make-lang.in (utils.o): Depend on target.h.
34389 * utils.c: Include target.h.
34390 (process_attributes): Use targetm.have_named_sections instead
34391 of ASM_OUTPUT_SECTION_NAME.
34393 2004-01-16 Andreas Jaeger <aj@suse.de>
34395 * Makefile.in: Add $(DESTDIR).
34397 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
34399 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34400 also when not defining if a Size clause applies. That information is
34403 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
34405 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34406 symbolic links for the shared gnat run time when needed.
34408 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
34410 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34411 for writing, and terminate with an error message if not.
34413 2004-01-15 Ed Schonberg <schonberg@gnat.com>
34415 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34416 warning on an access to subprogram in an instance, when the target
34417 type is declared in the same generic unit.
34418 (Eval_Attribute): If 'access is known to fail accessibility check,
34419 rewrite as a raise statement.
34421 2004-01-15 GNAT Script <nobody@gnat.com>
34423 * Make-lang.in: Makefile automatically updated
34425 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
34427 * Make-lang.in (ada.srcextra): Dummy entry.
34429 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
34431 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34433 2004-01-13 Ed Schonberg <schonberg@gnat.com>
34435 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34436 components that are initialized with aggregates.
34438 2004-01-13 Vincent Celier <celier@gnat.com>
34440 * gnatlink.adb (Process_Binder_File): To find directory of shared
34441 libgcc, if "gcc-lib" is not a subdirectory, look for the last
34442 subdirectory "lib" in the path of the shared libgnat or libgnarl.
34444 * make.adb (Gnatmake): If GCC version is at least 3, link with
34445 -shared-libgcc, when there is at least one shared library project.
34447 * opt.ads (GCC_Version): New integer constant.
34449 * adaint.c (get_gcc_version): New function.
34451 2004-01-13 Robert Dewar <dewar@gnat.com>
34453 * sem_dist.adb, sem_res.adb, sem_util.adb,
34454 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34455 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34457 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
34459 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34460 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34463 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
34465 * misc.c: Remove trailing spaces.
34466 Update copyright notice missed in previous change.
34469 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34472 * Makefile.generic: Update copyright.
34473 Add license notice.
34475 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34476 of prefix/share/make.
34478 * Makefile.prolog: Update copyright.
34479 Add license notice.
34481 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
34483 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34484 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34485 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34488 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34491 2004-01-12 Javier Miranda <miranda@gnat.com>
34493 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34494 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34495 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34496 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34497 Component_Definition node.
34499 2004-01-12 Ed Falis <falis@gnat.com>
34501 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34503 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
34505 * link.c: Change default libgnat kind to STATIC for FreeBSD.
34507 2004-01-12 Bernard Banner <banner@gnat.com>
34509 * Makefile.in: map 86numaux to a-numaux for x86_64
34511 2004-01-12 Ed Schonberg <schonberg@gnat.com>
34513 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34514 generated to rename a generic actual, go to the actual itself, the
34515 subtype is not a user-visible entity.
34517 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34518 part is a private subtype, reset the visibility of its full view, if
34519 any, to be consistent.
34522 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34523 to use a generic package G as a formal package for another generic
34526 2004-01-12 Robert Dewar <dewar@gnat.com>
34528 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34530 * usage.adb: Remove mention of obsolete -gnatwb switch
34531 Noticed during code reading
34533 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
34535 * 1ssecsta.adb: Minor changes for -gnatwa warnings
34537 2004-01-12 GNAT Script <nobody@gnat.com>
34539 * Make-lang.in: Makefile automatically updated
34541 2004-01-09 Mark Mitchell <mark@codesourcery.com>
34543 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34545 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34547 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34549 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
34551 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34552 Update comment and copyright date.
34553 * stamp-xgnatug: Delete.
34555 2004-01-05 Robert Dewar <dewar@gnat.com>
34557 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34558 be modified by the binder generated main program if the -D switch is
34561 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34562 imported functions (since now we expect this to be done for imported
34565 * 5vtaprop.adb: Add several ??? for sections requiring more comments
34566 Minor reformatting throughout
34568 * 5zinit.adb: Minor reformatting
34569 Add 2004 to copyright date
34570 Minor changes to avoid -gnatwa warnings
34571 Correct some instances of using OR instead of OR ELSE (noted while
34572 doing reformatting)
34574 * sprint.adb: Minor updates to avoid -gnatwa warnings
34576 * s-secsta.ads, s-secsta.adb:
34577 (SS_Get_Max): New function to obtain high water mark for ss stack
34578 Default_Secondary_Stack is not a constant since it may be modified by
34579 the binder generated main program if the -D switch is used.
34581 * switch-b.adb: New -Dnnn switch for binder
34584 Make -gnatg imply all warnings currently in -gnatwa
34586 * vms_conv.adb: Minor reformatting
34587 Add 2004 to copyright notice
34588 Add 2004 to printed copyright notice
34590 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34591 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34592 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34593 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34594 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34595 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34596 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34597 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34598 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34599 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34600 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34601 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34602 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34603 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34604 checks.adb, clean.adb, cstand.adb, einfo.ads,
34605 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34606 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34607 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34608 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34609 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34610 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34611 Minor reformatting and code clean ups.
34612 Minor changes to prevent -gnatwa warnings
34614 * ali.adb: Minor reformatting and cleanup of code
34615 Acquire new SS indication of secondary stack use from ali files
34617 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34618 (since now we expect this to be done for imported functions)
34620 * bindgen.adb: Generate call to modify default secondary stack size if
34623 * bindusg.adb: Add line for new -D switch
34625 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34626 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34627 Add circuitry for both records and arrays to avoid gigi
34628 processing if the type involved has non-bit-aligned components
34630 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34631 N_String_Literal node always references an E_String_Literal_Subtype
34632 entity. This may not be true in the future.
34633 (Possible_Bit_Aligned_Component): Move processing of
34634 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34636 * exp_ch6.adb (Expand_Thread_Body): Pick up
34637 Default_Secondary_Stack_Size as variable so that we get value modified
34638 by possible -Dnnn binder parameter.
34640 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34641 (Type_May_Have_Bit_Aligned_Components): New function.
34643 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34644 (Type_May_Have_Bit_Aligned_Components): New function.
34646 * fe.h: (Set_Identifier_Casing): Fix prototype.
34647 Add declaration for Sem_Elim.Eliminate_Error_Msg.
34648 Minor reformatting.
34650 * freeze.adb (Freeze_Entity): Add RM reference to error message about
34651 importing constant atomic/volatile objects.
34652 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34653 unless explicit Pure_Function pragma given, to avoid insidious bug of
34654 call to non-pure imported function getting eliminated.
34656 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34657 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34658 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34659 Add 2004 to printed copyright notice
34661 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34664 * Makefile.rtl: Add entry for g-sestin.o
34665 g-sestin.ads: New file.
34667 * mdll.adb: Minor changes to avoid -gnatwa warnings
34669 * mlib-tgt.adb: Minor reformatting
34671 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34672 New switch Sec_Stack_Used (GNAT, GNATBIND)
34673 Make Default_Secondary_Stack_Size a variable instead of a constant,
34674 so that it can be modified by the new -Dnnn bind switch.
34676 * rtsfind.adb (Load_Fail): Give full error message in configurable
34677 run-time mode if all_errors mode is set. This was not done in the case
34678 of a file not found, which was an oversight.
34679 Note if secondary stack unit is used by compiler.
34681 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34682 ineffective elaborate all pragmas on non-visible packages (this
34683 happened when a renamed subprogram was called). Now the elaborate all
34684 always goes on the package containing the renaming rather than the one
34685 containing the renamed subprogram.
34687 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34688 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34690 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34691 has an Etype that references an E_String_Literal.
34692 (Eval_String_Literal): Avoid assumption that N_String_Literal node
34693 always references an E_String_Literal_Subtype entity. This may not
34694 be true in the future.
34696 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34699 * sem_res.adb (Resolve): Specialize msg for function name used in proc
34702 2004-01-05 Ed Falis <falis@gnat.com>
34704 * g-debuti.adb: Replaced direct boolean operator with short-circuit
34707 2004-01-05 Vincent Celier <celier@gnat.com>
34709 * bld.adb: Minor comment updates
34710 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34713 * make.adb (Gnatmake): Special process for files to compile/check when
34714 -B is specified. Fail when there are only foreign mains in attribute
34715 Main of the project file and -B is not specified. Do not skip bind/link
34716 steps when -B is specified.
34718 * makeusg.adb: Document new switch -B
34720 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34722 * switch-m.adb: (Scan_Make_Switches): Process -B switch
34724 * vms_data.ads: Add new GNAT PRETTY qualifier
34725 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34727 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34729 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34732 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34733 Set_Identifier_Casing.
34735 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34736 has size that overflows.
34738 2004-01-05 Gary Dismukes <dismukes@gnat.com>
34740 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34741 -gnatwa warning on static condition.
34743 2004-01-05 Doug Rupp <rupp@gnat.com>
34745 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34747 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
34749 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34750 all attributes, including read-only attribute.
34752 2004-01-05 Pascal Obry <obry@gnat.com>
34754 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34755 library naming scheme.
34757 * mlib-prj.adb (Build_Library): Generate different names for the static
34758 or dynamic version of the GNAT runtime. This is needed to support the
34759 new shared library naming scheme.
34760 (Process_Binder_File): Add detection of shared library in binder file
34761 based on the new naming scheme.
34763 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34764 scheme for the shared runtime libraries.
34767 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34769 (install-gnatlib): Do not create symlinks for shared libraries.
34770 (gnatlib-shared-default): Idem.
34771 (gnatlib-shared-dual-win32): New target. Not used for now as the
34772 auto-import feature does not support arrays/records.
34773 (gnatlib-shared-win32): Do not create copy for the shared libraries.
34774 (gnatlib-shared-vms): Fix shared runtime libraries names.
34776 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34777 dependent runtime shared library name.
34779 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
34781 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34784 2004-01-05 Ed Schonberg <schonberg@gnat.com>
34786 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34787 protected objects when allocator has a subtype indication, not a
34788 qualified expression. Note that qualified expressions may have to be
34789 checked when limited aggregates are implemented.
34791 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34792 pure, emit warning.
34793 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34794 subprogram is imported, remove warning.
34796 2004-01-05 Geert Bosch <bosch@gnat.com>
34798 * s-poosiz.adb: Update copyright notice.
34799 (Allocate): Use Task_Lock to protect against concurrent access.
34800 (Deallocate): Likewise.
34802 2004-01-05 Joel Brobecker <brobecker@gnat.com>
34804 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34807 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
34809 * gnat_ug.texi: Force a CVS commit by updating copyright.
34810 * gnat_ug_vxw.texi: Regenerate.
34811 * gnat_ug_wnt.texi: Regenerate.
34812 * gnat_ug_vms.texi: Regenerate.
34813 * gnat_ug_unx.texi: Regenerate.
34815 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
34817 * trans.c: Remove uses of "register" specifier in
34818 declarations of local variables.
34820 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
34822 * stamp-xgnatug: New stamp file.
34823 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
34824 (ada/doctools/xgnatug): Add $(build_exeext).
34825 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34826 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34828 2003-12-17 Ed Falis <falis@gnat.com>
34830 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34833 * a-exextr.adb: Add context clause for
34834 Ada.Exceptions.Last_Chance_Handler.
34836 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
34838 * cstand.adb (Create_Standard): Change the way how the declaration of
34839 the Duration type is created (making it the same way as it is for all
34840 the other standard types).
34842 2003-12-17 Robert Dewar <dewar@gnat.com>
34844 * s-crtl.ads: Fix header format
34845 Change Pure to Preelaborate
34847 2003-12-17 Ed Schonberg <schonberg@gnat.com>
34849 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34850 the expression type only if it is declared in the current unit.
34852 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34853 are universal and already analyzed, as can occur in constrained
34854 subcomponents that depend on discriminants, when one constraint is a
34857 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34858 type Any_Fixed is legal as the argument of a conversion, if only one
34859 fixed-point type is in context.
34861 2003-12-17 GNAT Script <nobody@gnat.com>
34863 * Make-lang.in: Makefile automatically updated
34865 2003-12-15 Robert Dewar <dewar@gnat.com>
34867 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34870 2003-12-15 Vincent Celier <celier@gnat.com>
34872 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34873 (Gnatchop): Do not set failure status when reporting the number of
34876 2003-12-15 Doug Rupp <rupp@gnat.com>
34878 * s-ctrl.ads: New file.
34880 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34882 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34883 (GNATBIND_OBJS): Add ada/s-crtl.o.
34885 * Makefile.in [VMS]: Clean up ifeq rules.
34887 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34888 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34889 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34890 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34891 s-tasdeb.adb: Update copyright.
34892 Import System.CRTL.
34893 Make minor modifications to use System.CRTL declared functions instead
34894 of importing locally.
34896 2003-12-15 GNAT Script <nobody@gnat.com>
34898 * Make-lang.in: Makefile automatically updated
34900 2003-12-11 Ed Falis <falis@gnat.com>
34902 * 5zinit.adb: Clean up.
34904 * 5zintman.adb (Notify_Exception): replaced case statement with a call
34905 to __gnat_map_signal, imported from init.c to support
34906 signal -> exception mappings that depend on the vxWorks version.
34909 Created and exported __gnat_map_signal to support signal -> exception
34910 mapping that is dependent on the VxWorks version.
34911 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34913 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
34915 * 5wosinte.ads: Link with -mthreads switch.
34917 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
34919 * init.c (__gnat_install_handler [NetBSD]): Set
34920 __gnat_handler_installed, as done on all other platforms.
34921 Remove duplicated code.
34923 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
34925 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34927 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
34929 * sinfo.ads: Fix inconsistent example code in comment.
34931 2003-12-11 Robert Dewar <dewar@gnat.com>
34933 * a-tiinau.adb: Add a couple of comments
34935 * sem_ch3.adb: Minor reformatting
34938 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34939 Minor reformatting throughout
34941 2003-12-11 Ed Schonberg <schonberg@gnat.com>
34943 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34944 bounds of a loop, create a separate block in order to generate proper
34945 cleanup actions to prevent memory leaks.
34947 * sem_res.adb (Resolve_Call): After a call to
34948 Establish_Transient_Scope, the call may be rewritten and relocated, in
34949 which case no further processing is needed.
34951 * sem_util.adb: (Wrong_Type): Refine previous fix.
34952 Fixes ACATS regressions.
34955 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34958 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
34960 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34961 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34964 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34967 2003-12-08 Robert Dewar <dewar@gnat.com>
34969 * 7sintman.adb: Minor reformatting
34971 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34972 standard linker options to get standard libraries linked. We now plan
34973 to provide dummy versions of these libraries to match the appropriate
34974 configurable run-time (e.g. if a library is not needed at all, provide
34975 a dummy empty library).
34977 * targparm.ads: Configurable_Run_Time mode no longer affects linker
34978 options (-L parameters and standard libraries). What we plan to do is
34979 to provide dummy libraries where the libraries are not required.
34981 * gnatbind.adb: Minor comment improvement
34983 2003-12-08 Javier Miranda <miranda@gnat.com>
34985 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34986 aggregate in the parent. Otherwise constants with limited aggregates
34987 are not supported. Add new formal to pass the component type (Ctype).
34988 It is required to call the corresponding IP subprogram in case of
34989 default initialized components.
34990 (Gen_Assign): In case of default-initialized component, generate a
34991 call to the IP subprogram associated with the component.
34992 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34993 of aggregate with default initialized components.
34994 (Has_Default_Init_Comps): Improve implementation to recursively check
34995 all the present expressions.
34997 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34998 to indicate that the initialization call corresponds to a
34999 default-initialized component of an aggregate.
35000 In case of default initialized aggregate with tasks this parameter is
35001 used to generate a null string (this is just a workaround that must be
35002 improved later). In case of discriminants, this parameter is used to
35003 generate a selected component node that gives access to the discriminant
35006 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35007 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35008 allocated aggregates with default-initialized components.
35010 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35011 the box notation is used in positional aggregates.
35013 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35015 * lib.ads: Fix typo in comment
35017 2003-12-08 Vincent Celier <celier@gnat.com>
35019 * prj.adb (Project_Empty): New component Unkept_Comments
35020 (Scan): Remove procedure; moved to Prj.Err.
35022 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35023 (Scan): Remove procedure; moved to Prj.Err.
35025 * prj-dect.adb: Manage comments for the different declarations.
35027 * prj-part.adb (With_Record): New component Node
35028 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35029 Set the scanner to return ends of line and comments as tokens, if
35030 Store_Comments is True.
35031 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35032 comments are associated with these nodes. Store the node IDs in the
35034 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35036 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35037 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35038 current project. Call Tree.Restore afterwards. Set the various nodes
35039 for comment storage (Next_End, End_Of_Line, Previous_Line,
35042 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35043 defaulted to False.
35045 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35046 to False. When Truncated is True, truncate the string, never go to the
35048 (Write_End_Of_Line_Comment): New procedure
35049 (Print): Process comments for nodes N_With_Clause,
35050 N_Package_Declaration, N_String_Type_Declaration,
35051 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35052 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35053 Process nodes N_Comment.
35055 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35056 without comments and there are some comments, set the flag
35057 Unkept_Comments to True.
35058 (Scan): If there are comments, set the flag Unkept_Comments to True and
35059 clear the comments.
35060 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35061 (Next_End_Nodes: New table
35062 (Comment_Zones_Of): New function
35063 (Scan): New procedure; moved from Prj. Accumulate comments in the
35064 Comments table and set end of line comments, comments after, after end
35066 (Add_Comments): New procedure
35067 (Save, Restore, Seset_State): New procedures
35068 (There_Are_Unkept_Comments): New function
35069 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35070 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35072 (First_Comment_After, First_Comment_After_End): New functions
35073 (First_Comment_Before, First_Comment_Before_End): New functions
35074 (Next_Comment): New function
35075 (End_Of_Line_Comment, Follows_Empty_Line,
35076 Is_Followed_By_Empty_Line): New functions
35077 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35078 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35079 (Set_Next_Comment): New procedure
35080 (Default_Project_Node): Associate comment before if the node can store
35083 * scans.ads (Token_Type): New enumeration value Tok_Comment
35084 (Comment_Id): New global variable
35086 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35087 defaulted to False.
35088 (Scan): Store position of start of comment. If comments are tokens, set
35089 Comment_Id and set Token to Tok_Comment when scanning a comment.
35090 (Set_Comment_As_Token): New procedure
35092 * sinput-p.adb: Update Copyright notice
35093 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35094 that no longer exists.
35096 2003-12-08 Javier Miranda <miranda@gnat.com>
35098 * sem_aggr.adb: Add dependence on Exp_Tss package
35099 Correct typo in comment
35100 (Resolve_Aggregate): In case of array aggregates set the estimated
35101 type of the aggregate before calling resolve. This is needed to know
35102 the name of the corresponding IP in case of limited array aggregates.
35103 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35104 in case of default initialized array components.
35106 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35107 types. Required to give support to limited aggregates in generic
35110 2003-12-08 Ed Schonberg <schonberg@gnat.com>
35112 * sem_ch3.adb (Check_Initialization): For legality purposes, an
35113 inlined body functions like an instantiation.
35114 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35115 until bounds are analyzed, to diagnose premature use of type.
35117 * sem_util.adb (Wrong_Type): Improve error message when the type of
35118 the expression is used prematurely.
35120 2003-12-08 GNAT Script <nobody@gnat.com>
35122 * Make-lang.in: Makefile automatically updated
35124 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
35126 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35127 they are automatically generated by Make-lang.in and cause nothing but
35128 maintenance troubles.
35130 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
35132 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35133 version of this unit).
35135 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
35137 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35138 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35139 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35140 the body of System.Interrupt_Management common to several targets.
35141 Update copyright notice when appropriate.
35143 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35146 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35147 to ensure that the kernel fills in the interrupted context structure
35148 before calling a signal handler, which is necessary to be able to
35149 unwind past it. Update the copyright notice.
35151 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
35153 * a-elchha.ads: New file.
35155 * a-elchha.adb: New default last chance handler. Contents taken from
35156 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35158 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35159 is moved to a-elchha.adb to provide a target-independent default last
35162 * Makefile.rtl: Add a-elchha.o
35164 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35166 2003-12-05 Ed Schonberg <schonberg@gnat.com>
35168 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35169 declared in an instance, do not inline the call if the instance is not
35170 frozen yet, to prevent order of elaboration problems.
35172 * sem_prag.adb: Add comments for previous fix.
35174 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
35176 * g-table.adb: Use the right variable in Set_Item.
35177 Update copyright notice.
35179 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
35181 * Makefile.in: Remove unused rules.
35183 2003-12-05 Vincent Celier <celier@gnat.com>
35185 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35186 -nostdlib. Not needed here after all.
35188 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
35191 * adaint.h, adaint.c, g-os_lib.ads:
35192 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35193 on some platforms (including FreeBSD), it is a 64 bit value.
35194 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35196 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
35198 * gnatvsn.ads (Library_Version): Now contain only the relevant
35200 (Verbose_Library_Version): New constant.
35202 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35203 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35204 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35206 * gnatlbr.adb: Clean up: replace Library_Version by
35207 Verbose_Library_Version.
35209 * make.adb, lib-writ.adb, exp_attr.adb:
35210 Clean up: replace Library_Version by Verbose_Library_Version.
35212 * 5lintman.adb: Removed.
35215 Update and simplify computation of LIBRARY_VERSION.
35216 Fix computation of GSMATCH_VERSION.
35217 5lintman.adb is no longer used: replaced by 7sintman.adb.
35219 2003-12-03 Robert Dewar <dewar@gnat.com>
35222 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35223 name. Modified to consider small non-bit-packed arrays as troublesome
35224 and in need of component-by-component assigment expansion.
35226 2003-12-03 Vincent Celier <celier@gnat.com>
35228 * lang-specs.h: Process nostdlib as nostdinc
35230 * back_end.adb: Update Copyright notice
35231 (Scan_Compiler_Arguments): Process -nostdlib directly.
35233 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35236 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35237 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35238 included in HIE_NONE_TARGET_PAIRS.
35240 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35243 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35244 is legal in an instance, because legality is cheched in the template.
35247 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35248 appplied to an unchecked conversion of a formal parameter.
35251 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35254 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35256 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35257 routines. The second one is new functionality to deal with backtracing
35258 through signal handlers.
35259 (unwind): Split into the two separate subroutines above.
35260 Update the documentation, and deal properly with sizeof (REG) different
35261 from sizeof (void*).
35263 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35265 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35266 so that the debugger can reliably access the value of the parameter,
35267 and therefore is able to display the exception name when an exception
35268 breakpoint is reached.
35270 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35272 * fmap.adb: Fix typo in warning message.
35274 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35275 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35277 2003-12-01 Vincent Celier <celier@gnat.com>
35279 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35281 (Build_Library): Get the switches only if Default_Switches is declared
35284 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35286 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35287 actuals that are indexed components, reanalyze actual to ensure that
35288 packed array references are properly expanded.
35290 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35291 attempted assignment to a discriminant.
35293 2003-12-01 Robert Dewar <dewar@gnat.com>
35295 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35298 * switch-c.adb: Minor reformatting of comments
35300 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35302 * Makefile.in: Clean ups.
35304 2003-12-01 GNAT Script <nobody@gnat.com>
35306 * Make-lang.in: Makefile automatically updated
35308 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35310 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35312 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35314 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35315 to force serialization.
35317 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35319 * g-socket.ads, g-socket.adb:
35320 Clarify documentation of function Stream. Introduce a Free procedure
35321 to release the returned Stream once it becomes unused.
35323 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35325 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
35327 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35328 since NT 4 cannot handle timeout values that are too large,
35329 e.g. DWORD'Last - 1.
35331 2003-11-26 Ed Schonberg <schonberg@gnat.com>
35334 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35335 in procedure calls and whose expansion must be deferred.
35337 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35341 (Build_Derived_Array_Type): Create operator for unconstrained type
35342 if ancestor is unconstrained.
35344 2003-11-26 Vincent Celier <celier@gnat.com>
35346 * make.adb (Project_Object_Directory): New global variable
35347 (Change_To_Object_Directory): New procedure
35348 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35349 of Change_Dir directly. Do not change working directory to object
35350 directory of main project after each compilation.
35351 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35353 Change to object directory of main project before binding step.
35354 (Initialize): Initialize Project_Object_Directory to No_Project
35357 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35358 binding a Stand-Alone Library.
35360 * output.adb: Update Copyright notice
35361 (Write_Char): Output buffer when full
35363 2003-11-26 Robert Dewar <dewar@gnat.com>
35365 * sem_ch13.adb: (Check_Size): Reset size if size is too small
35368 (Check_Size): Fix documentation to include bit-packed array case
35370 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35372 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35374 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35376 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
35379 * utils.c (init_gigi_decls): Change name of built-in setjmp to
35380 __builtin_setjmp, since this is apparently needed by recent
35383 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35385 * adadecode.c: Only include ctype.h if not IN_GCC.
35386 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35388 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
35391 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35392 signals and interrupts.
35394 * 5zintman.ads: New File.
35396 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35397 add exception signals to the set of unmasked signals.
35400 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35401 between signals and interrupts.
35402 Add to Unblocked_Signal_Mask the set of signals that are in
35406 Adding a check to see whether the Interrupt_ID we want to unmask is in
35407 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35408 reason is that the index type of the Keep_Unmasked array is not always
35409 Interrupt_ID; it may be a subtype of Interrupt_ID.
35411 2003-11-24 Gary Dismukes <dismukes@gnat.com>
35414 (Remove_Side_Effects): Condition constantness of object created for a
35415 an unchecked type conversion on the constantness of the expression
35416 to ensure the correct value for 'Constrained when passing components
35417 of view-converted class-wide objects.
35419 2003-11-24 Robert Dewar <dewar@gnat.com>
35421 * par-load.adb (Load): Improve handling of misspelled and missing units
35422 Removes several cases of compilation abandoned messages
35424 * lib.adb: (Remove_Unit): New procedure
35426 * lib.ads: (Remove_Unit): New procedure
35428 * lib-load.adb: Minor reformatting
35430 2003-11-24 Vincent Celier <celier@gnat.com>
35433 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35434 (Marking_Label): Label to mark processed source files. Incremented for
35436 (Gnatmake): Increase Marking_Labet for each executable
35437 (Is_Marked): Compare against marking label
35438 (Mark): Mark with marking label
35440 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
35443 Move the declaration of the TSD for System.Threads to System.Soft_Links.
35446 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35447 (rts-cert): build a single relocatable object for the run-time lib.
35450 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
35453 Use gnatls rather than gcc to obtain the location of GNAT RTL for
35456 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
35458 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35459 can not use it as before (that is, as a variable) when dumping it into
35460 the tree file. Add a local variable to store the result of this
35461 function and to be used as the string to be written into the tree.
35463 * scn.adb (Initialize_Scanner): Add comments explaining the recent
35466 * sinput.adb (Source_First, Source_Last): In case of
35467 Internal_Source_File, replace returning attributes of
35468 Internal_Source_Ptr (which is wrong) with returning attributes of
35471 2003-11-24 Ed Schonberg <schonberg@gnat.com>
35474 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35475 used for implicit concatenation operators.
35479 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35480 task bodies that are in the scope of a Suppress pragma.
35481 (Check_A Call): Use the flag to prevent spurious elaboration checks.
35483 * sinfo.ads, sinfo.adb:
35484 New flag No_Elaboration_Check on function/procedure calls, to properly
35485 suppress checks on calls in task bodies that are within a local suppress
35489 (Expand_Concatenate_Other): Use the proper integer type for the
35490 expression for the upper bound, to avoid universal_integer computations
35493 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
35495 * .cvsignore: Delete.
35497 2003-11-21 Andreas Schwab <schwab@suse.de>
35499 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35501 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
35503 * 5wsystem.ads: Enable zero cost exception.
35505 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
35507 * 5ztiitho.adb: Remove an unreferenced variable.
35509 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
35511 * adaint.c: For FreeBSD, use mkstemp.
35513 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
35515 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35517 2003-11-21 Robert Dewar <dewar@gnat.com>
35519 * bld.adb: Remove useless USE of gnatvsn
35521 * gnatchop.adb: Minor reformatting
35522 Clean up version handling to be more consistent
35524 * gnatxref.adb: Minor reformatting
35526 * gprcmd.adb: Minor reformatting
35527 Fix output of copyright to be more consistent with other tools
35529 2003-11-21 Vincent Celier <celier@gnat.com>
35531 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35533 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
35535 * atree.adb (Initialize): Add initializations for global variables
35536 used in New_Copy_Tree.
35538 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35539 Internal_Source_File as the actual).
35540 Put the set of statements creating Any_Character before the set of
35541 statements creating Any_Array to have Any_Character fully initialized
35542 when it is used in creating Any_Array.
35544 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35545 not call Scan in case if the actual is Internal_Source_File
35546 Add 2003 to copyright note.
35548 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35549 processing Internal_Source_File.
35551 * types.ads: Add the constant Internal_Source_File representing the
35552 source buffer for artificial source-code-like strings created within
35553 the compiler (the definition of Source_File_Index is changed).
35555 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
35557 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35558 56system.ads: New file, FreeBSD version.
35560 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
35562 * Make-lang.in (ada.extraclean): Delete.
35564 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
35566 * gnatmem.adb: Clean up verbose output.
35568 * gprcmd.adb: Change copyright to FSF.
35570 2003-11-19 Vincent Celier <celier@gnat.com>
35572 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35573 and Version (ignored).
35575 * symbols.ads: (Policy): New type
35576 (Initialize): New parameter Reference, Symbol_Policy and
35578 Remove parameter Force.
35579 Minor reformatting.
35581 * snames.ads, snames.adbadb: New standard names
35582 Library_Reference_Symbol_File and Library_Symbol_Policy
35585 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35589 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35591 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35593 * prj.adb: (Project_Empty): New component Symbol_Data
35595 * prj.ads: (Policy, Symbol_Record): New types
35596 (Project_Data): New component Symbol_Data
35599 New attributes Library_Symbol_File, Library_Symbol_Policy and
35600 Library_Reference_Symbol_File.
35603 (Ada_Check): When project is a Stand-Alone library project, process
35604 attribute Library_Symbol_File, Library_Symbol_Policy and
35605 Library_Reference_Symbol_File.
35607 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35608 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35609 5sml-tgt.adb (Build_Dynamic_Library): New parameter
35610 Symbol_Data (ignored).
35612 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35613 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35614 functions Option_File_Name and Version_String. Set new options of
35615 gnatsym related to symbol file, symbol policy and reference symbol
35619 Extensive modifications to take into account the reference symbol file,
35620 the symbol policy, the library version and to put in the symbol file the
35621 minor and major IDs.
35623 * bld.adb (Process_Declarative_Items): Put second argument of
35624 gprcmd to_absolute between single quotes, to avoid problems with
35627 * bld-io.adb: Update Copyright notice.
35628 (Flush): Remove last character of a line, if it is a back slash, to
35629 avoid make problems.
35632 Implement new scheme with reference symbol file and symbol policy.
35634 * g-os_lib.ads: (Is_Directory): Clarify comment
35636 2003-11-19 Robert Dewar <dewar@gnat.com>
35638 * atree.adb: Move New_Copy_Tree global variables to head of package
35640 * errout.adb: Minor reformatting
35642 2003-11-19 Javier Miranda <miranda@gnat.com>
35644 * sem_ch4.adb: (Diagnose_Call): Improve error message.
35645 Add reference to Ada0Y (AI-50217)
35647 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35648 sem_util.adb: Add reference to AI-50217
35650 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35652 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35654 * sem_aggr.adb: Complete documentation of AI-287 changes
35656 * par-ch4.adb: Document previous changes.
35658 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35659 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35662 * exp_aggr.adb: Add references to AI-287 in previous changes
35664 2003-11-19 Ed Schonberg <schonberg@gnat.com>
35667 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35668 in the rewriting is the result of an inlined call.
35670 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35671 parameter is a type conversion, use original node to construct the
35672 post-call assignment, because expression may have been rewritten, e.g.
35673 if it is a packed array.
35676 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35677 body, just as it is in an instance.
35678 Categorization routines
35680 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35681 Instantiate_Object): Set proper sloc reference for message on missing
35684 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
35686 * Makefile.in: Add FreeBSD libgnat pairs.
35688 * usage.adb: Fix typo in usage message.
35690 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
35692 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35693 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35694 pragma Thread_Body.
35695 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35697 * s-thread.adb: This file is now a dummy implementation of
35700 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
35702 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35704 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
35706 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35707 instanciation references in the parent type description.
35709 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35711 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35713 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35714 TYPE_PRECISION directly from esize.
35716 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
35719 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35721 * init.c: Initialization routines for FreeBSD
35723 * link.c: Link info for FreeBSD
35725 * sysdep.c: Add the case of FreeBSD
35727 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
35729 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35730 already called in System.Threads.
35732 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35733 environment task, as it has been moved to System.Threads.Initialization.
35735 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
35737 * adaint.c (__gnatlib_install_locks): Only reference
35738 __gnat_install_locks on VMS, since other platforms can avoid using
35739 --enable-threads=gnat
35741 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35743 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35745 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35746 TYPE_PACKED_ARRAY_TYPE_P.
35747 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35749 Part of PR ada/12806
35750 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35751 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35753 2003-11-17 Vincent Celier <celier@gnat.com>
35755 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35757 Do not set exit status to Failure when Warning is True.
35758 (Gnatchop): Make errors "no compilation units found" and
35759 "no source files written" warnings only.
35761 * make.adb (Gnatmake): When using a project file, set
35762 Look_In_Primary_Dir to False.
35763 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35764 and Local_Configuration_Pragmas in the project where they are declared
35765 not an extending project which might have inherited them.
35767 * osint.adb (Locate_File): If Name is already an absolute path, do not
35768 look for a directory.
35770 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35771 -gnats (Check_Syntax) is used, issue only a warning, not an error.
35773 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35774 in objects of type Variable_Value.
35776 * prj.ads: (Variable_Value): New component Project
35778 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35779 is in a project extended by Project.
35781 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35782 Project of Variable_Values to this new parameter value.
35783 (Expression): Set component Project of Variable_Values.
35784 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35785 Set the component Project in array elements.
35787 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
35789 * errout.adb: (Initialize): Add initialization for error nodes.
35791 * sem_ch12.adb (Initialize): Add missing initializations for
35792 Exchanged_Views and Hidden_Entities.
35794 2003-11-17 Ed Schonberg <schonberg@gnat.com>
35796 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35797 already instantiated tree for use in subsequent inlining.
35798 (Analyze_Associations, Instantiate_Formal_Subprogram,
35799 Instantiate_Object): improve error message for mismatch in
35802 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35803 instantiations of subprograms declared in instances.
35805 2003-11-17 Javier Miranda <miranda@gnat.com>
35807 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35808 executed only under the Extensions_Allowed flag.
35810 2003-11-17 Robert Dewar <dewar@gnat.com>
35812 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35814 (Address_Image): Fix bug of returning 0x instead of 0x0
35815 Minor reformatting (function specs).
35817 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35818 (missed case of 33-63)
35820 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35822 * s-thread.adb: Add comments for pragma Restriction
35824 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35825 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35827 2003-11-17 Ed Falis <falis@gnat.com>
35829 * s-thread.adb: Added No_Tasking restriction for this implementation.
35831 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
35833 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35834 instanciation references in the parent type description.
35836 2003-11-17 GNAT Script <nobody@gnat.com>
35838 * Make-lang.in: Makefile automatically updated
35840 2003-11-16 Jason Merrill <jason@redhat.com>
35842 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35843 and TAGS files that include them for each front end.
35845 2003-11-14 Andreas Jaeger <aj@suse.de>
35847 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35848 is the canonical version.
35849 * misc.c (gnat_handle_option): Likewise.
35851 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35853 * 5nsystem.ads: New file for x86_64-linux-gnu.
35855 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
35857 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35859 * comperr.adb: Fix logic in previous change.
35861 2003-11-13 Vincent Celier <celier@gnat.com>
35863 * 5bml-tgt.adb (Build_Dynamic_Library): Use
35864 Osint.Include_Dir_Default_Prefix instead of
35865 Sdefault.Include_Dir_Default_Name.
35867 * gnatlbr.adb: Update Copyright notice
35868 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35869 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35870 instead of Sdefault.Object_Dir_Default_Name
35873 (Process_Binder_File): Never suppress the option following -Xlinker
35876 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35877 Sdefault.Object_Dir_Default_Name.
35879 * osint.ads, osint.adb:
35880 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35881 Minor reformatting.
35883 * vms_conv.ads: Minor reformating
35884 Remove GNAT STANDARD and GNAT PSTA
35887 Allow GNAT MAKE to have several files on the command line.
35888 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35889 Sdefault.Object_Dir_Default_Name.
35891 Remove data for GNAT STANDARD
35894 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35895 Remove data for GNAT STANDARD
35896 Remove options and documentation for -gnatwb/-gnatwB: these warning
35897 options no longer exist.
35899 2003-11-13 Ed Falis <falis@gnat.com>
35901 * 5zthrini.adb: (Init_RTS): Made visible
35904 (Register): Removed unnecessary call to taskVarGet that checked whether
35905 an ATSD was already set as a task var for the argument thread.
35908 Updated comment to reflect that this is a VxWorks version
35909 Added context clause for System.Threads.Initialization
35910 Added call to System.Threads.Initialization.Init_RTS
35912 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
35915 (Init_RTS): New procedure, for the initialization of the run-time lib.
35918 Remove dependancy on System.Init, so that this file can be used in the
35919 AE653 sequential run-time lib.
35921 2003-11-13 Robert Dewar <dewar@gnat.com>
35923 * bindgen.adb: Minor reformatting
35925 2003-11-13 Ed Schonberg <schonberg@gnat.com>
35928 (Apply_Discriminant_Check): Do no apply check if target type is derived
35929 from source type with no applicable constraint.
35932 (Ensure_System_Dependency): Do not apply the style checks that may have
35933 been specified for the main unit.
35936 (Find_Selected_Component): Further improvement in error message, with
35940 (Resolve): Handle properly the case of an illegal overloaded protected
35943 2003-11-13 Javier Miranda <miranda@gnat.com>
35946 (Has_Default_Init_Comps): New function to check the presence of
35947 default initialization in an aggregate.
35948 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35949 extension aggregate of a limited record. In addition, a new formal
35950 was added to do not initialize the record controller (if any) during
35951 this recursive expansion of ancestors.
35952 (Init_Controller): Add support for limited record components.
35953 (Expand_Record_Aggregate): In case of default initialized components
35954 convert the aggregate into a set of assignments.
35956 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35957 describing the new syntax.
35958 Nothing else needed to be done because this subprogram delegates part of
35959 its work to P_Precord_Or_Array_Component_Association.
35960 (P_Record_Or_Array_Component_Association): Give support to the new
35961 syntax for default initialization of components.
35964 (Resolve_Aggregate): Relax the strictness of the frontend in case of
35965 limited aggregates.
35966 (Resolve_Record_Aggregate): Give support to default initialized
35968 (Get_Value): In case of default initialized components, duplicate
35969 the corresponding default expression (from the record type
35970 declaration). In case of default initialization in the *others*
35971 choice, do not check that all components have the same type.
35972 (Resolve_Extension_Aggregate): Give support to limited extension
35976 (Check_Initialization): Relax the strictness of the front-end in case
35977 of aggregate and extension aggregates. This test is now done in
35978 Get_Value in a per-component manner.
35980 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35981 expression corresponds to a limited aggregate. This test is now done
35984 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35987 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35988 present in an N_Component_Association node
35990 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
35992 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35993 type-conformant entry only if they are homographs.
35995 2003-11-13 GNAT Script <nobody@gnat.com>
35997 * Make-lang.in: Makefile automatically updated
35999 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36001 * adadecode.c: Use <> form of include for ctype.h.
36002 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36004 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36006 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36007 Works around PR middle-end/6552.
36009 2003-11-10 Ed Falis <falis@gnat.com>
36011 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36013 * 5zinit.adb: (Install_Handler): Moved back to spec
36014 (Install_Signal_Handlers): Deleted
36016 * 5zthrini.adb: Added context clause for System.Storage_Elements
36017 (Register): Only handles creation of taskVar; initialization moved to
36019 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36020 Added declaration of environment task secondary stack and
36023 * s-thread.adb: Implement bodies for thread body processing
36026 Added comment identifying supported targets for pragma Thread_Body.
36028 2003-11-10 Pascal Obry <obry@gnat.com>
36030 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36034 (Open): Properly check for string length before copying into the buffer.
36035 Raises Name_Error if buffer is too small. Note that this was a potential
36038 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36040 * bindgen.adb, comperr.adb: Code clean ups.
36041 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36043 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
36045 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36047 2003-11-10 Vincent Celier <celier@gnat.com>
36050 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36053 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36055 * prj.adb: (Project_Empty): Add new boolean component Virtual
36057 * prj.ads: (Virtual_Prefix): New constant string
36058 (Project_Data): New boolean component Virtual
36060 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36061 a library project is extended by a virtual extending project.
36064 Modifications throughout to implement extending-all project, including:
36065 (Virtual_Hash, Processed_Hash): New hash tables
36066 (Create_Virtual_Extending_Project): New procedure
36067 (Look_For_Virtual_Projects_For): New procedure
36070 (Process): After checking the projects, if main project is an
36071 extending-all project, set the object directory of all virtual extending
36072 project to the object directory of the main project.
36073 Adjust error message when a virtual extending project has the same
36074 object directory as an project being extended.
36075 (Recursive_Process): If name starts with the virtual prefix, set Virtual
36076 to True in the project data.
36079 (Default_Project_Node): Add new boolean component Extending_All
36080 (Is_Extending_All): New function
36081 (Set_Is_Extending_All): New procedure
36083 * prj-tree.ads: (Is_Extending_All): New function
36084 (Set_Is_Extending_All): New procedure
36085 (Project_Node_Record): New boolean component Extending_All
36087 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36090 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36092 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36093 "gprcmd prefix" to define it.
36095 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
36097 * einfo.ads: Fix a typo and remove an extraneous word in comments.
36100 (Create_Dummy_Package_Unit): Set the scope of the entity for the
36101 created dummy package to Standard_Standard, not to itself, to
36102 defend other parts of the front-end against encoutering a cycle in
36106 (Analyze_With_Clause): When setting the entities for the successive
36107 N_Expanded_Names that constitute the name of a child unit, do not
36108 attempt to go further than Standard_Standard in the chain of scopes.
36109 This case arises from the placeholder units created by
36110 Create_Dummy_Package_Unit in the case of a with_clause for a
36111 nonexistent child unit.
36113 2003-11-10 Ed Schonberg <schonberg@gnat.com>
36116 (Expand_Thread_Body): Place subprogram on scope stack, so that new
36117 declarations are given the proper scope.
36120 (Check_Expr_Constants): Reject an expression that contains a constant
36121 created during expansion, and that appears after the object to which
36122 the address clause applies.
36124 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36125 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36126 that uses 'Range of a function call with controlled components, so
36127 that the function result can be finalized before starting the loop.
36130 (Find_Selected_Component): Improve error message when prefix is
36131 an implicit dereference of an incomplete type.
36133 2003-11-10 Robert Dewar <dewar@gnat.com>
36135 * opt.ads: New Print_Standard flag for -gnatS switch
36137 * sem_ch13.adb: Remove some additional checks for unaligned arrays
36139 * cstand.adb (Create_Standard): Print out package standard if -gnatS
36142 * debug.adb: Update doc for -gnatds to discuss relationship with new
36145 * sinfo.adb: Add new field Entity_Or_Associated_Node
36147 * sinfo.ads: Add new field Entity_Or_Associated_Node
36148 Update documentation for Associated_Node and Entity fields to clarify
36149 relationship and usage.
36152 (Write_Id): Properly process Associated_Node field in generic template
36155 Recognize new -gnatS switch for printing package Standard
36156 This replaces gnatpsta
36159 Add line for new -gnatS switch for printing package Standard
36160 This replaces gnatpsta
36162 2003-11-10 Andreas Jaeger <aj@suse.de>
36164 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36167 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36169 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36172 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36174 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36177 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36179 * sysdep.c: Add handling of cygwin.
36181 2003-11-10 GNAT Script <nobody@gnat.com>
36183 * Make-lang.in: Makefile automatically updated
36185 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36188 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36189 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36190 Replace GNAT_ROOT by GCC_ROOT.
36192 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36194 2003-11-06 Zack Weinberg <zack@codesourcery.com>
36196 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36197 and update for changed meaning of GET_MODE_BITSIZE.
36199 2003-11-04 Doug Rupp <rupp@gnat.com>
36201 * sysdep.c: Problem discovered during IA64 VMS port.
36202 [VMS] #include <unixio.h> to get proper prototypes.
36205 Issues discovered/problems fixed during IA64 VMS port.
36206 [VMS] #define _POSIX_EXIT for proper semantics.
36207 [VMS] #include <unixio.h> for proper prototypes.
36208 [VMS] (fork): #define IA64 version.
36209 (__gnat_os_exit): Remove unnecessary VMS specific code.
36211 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36213 Part of PR ada/12806
36214 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36218 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36221 * targtyps.c, decl.c, misc.c,
36222 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36223 routines to work around change in FP sizing semantics in GCC.
36226 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36228 * gigi.h: (enumerate_modes): New function.
36230 * Make-lang.in: (ada/misc.o): Add real.h.
36232 * misc.c: (enumerate_modes): New function.
36234 2003-11-04 Robert Dewar <dewar@gnat.com>
36236 * 3vtrasym.adb: Minor reformatting
36237 Use terminology encoded/decoded name, rather than C++ specific notion
36238 of mangling (this is the terminology used throughout GNAT).
36240 * einfo.h: Regenerated
36242 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36245 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36247 * par-prag.adb: Add dummy entry for Thread_Body pragma
36250 Add entries for System.Threads entities for thread body processing
36253 (Analyze_Pragma, Access attributes): Check these are not applied to a
36254 thread body, since this is not permitted
36256 * sem_prag.adb: Add processing for Thread_Body pragma.
36260 (Resolve_Call): Check for incorrect attempt to call a thread body
36261 procedure with a direct call.
36263 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36264 Add names associated with thread body expansion
36266 * snames.h: Add entry for Thread_Body pragma
36268 * s-thread.adb: Add entries for thread body processing
36269 These are dummy bodies so far
36271 * s-thread.ads: Add documentation on thread body handling.
36272 Add entries for thread body processing.
36274 2003-11-04 Javier Miranda <miranda@gnat.com>
36277 (Build_Limited_Views): Return after posting an error in case of limited
36278 with_clause on subprograms, generics, instances or generic renamings
36279 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36280 on subprograms, generics, instances or generic renamings
36282 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36284 * raise.c (setup_to_install): Correct mistake in last revision; two
36285 arguments out of order.
36287 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36288 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36289 notice, missed in previous change.
36290 Remove trailing blanks and other style errors introduced in previous
36293 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36295 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36296 rid of the wrapper for a LJM type, ensuring we don't do that if the
36297 field is addressable. This avoids potential low level type view
36298 mismatches later on, for instance in a by-reference argument passing
36301 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36303 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36304 aligned at byte boundary.
36306 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36308 * decl.c (components_to_record): Do not delete the empty variants from
36309 the end of the union type.
36311 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36313 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36314 operation for a derived type, an explicit declaration may use a local
36315 subtype of Boolean.
36317 2003-11-04 Vincent Celier <celier@gnat.com>
36319 * make.adb (Gnatmake): Allow main sources on the command line with a
36320 library project when it is only for compilation (no binding or
36323 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36325 * Makefile.in: Remove many duplicate variables.
36327 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
36329 * Make-lang.in (dvi): Move targets to $(docobjdir).
36330 (gnat_ug_vms.dvi): Simplify rule and adjust target.
36331 (gnat_ug_wnt.dvi): Likewise.
36332 (gnat_ug_unx.dvi): Likewise.
36333 (gnat_ug_vxw.dvi): Likewise.
36334 (gnat_rm.dvi): Likewise.
36335 (gnat-style.dvi): Likewise.
36337 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36339 * gigi.h: Missed commit from update for C90.
36341 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36343 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36345 2003-10-31 Andreas Schwab <schwab@suse.de>
36347 * raise.c (get_action_description_for): Fix typo in last change.
36349 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
36352 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36353 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36355 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
36357 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36358 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36359 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36360 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36361 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36363 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
36366 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36367 numbers when symbol name is too long.
36369 2003-10-30 Ed Falis <falis@gnat.com>
36371 * g-signal.ads, g-signal.adb: New files
36373 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36375 * Makefile.rtl: Introduce GNAT.Signals
36377 2003-10-30 Robert Dewar <dewar@gnat.com>
36379 * freeze.adb: Minor reformatting
36381 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36383 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36384 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36385 New handling of Id_Check parameter to improve recognition of keywords
36386 used as identifiers.
36387 Update copyright notice to include 2003
36389 2003-10-29 Robert Dewar <dewar@gnat.com>
36391 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36392 sem_ch10.adb: Minor reformatting
36394 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36395 (Expand_Assign_Record): Test right hand side for bit unaligned as well
36397 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
36399 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36400 Support for TBK$SYMBOLIZE-based symbolic traceback.
36402 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
36405 Revert previous change, that did not work well when pragma No_Run_Time
36406 was used in conjunction with a run-time other than ZFP.
36408 2003-10-29 Vincent Celier <celier@gnat.com>
36411 (Gnatmake): When there are no Ada mains in attribute Main, disable the
36412 bind and link steps only is switch -z is not used.
36414 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
36416 * Makefile.generic: Remove duplicated setting of CC.
36418 * Makefile.prolog: Set CC to gcc by default, to override make's
36421 * einfo.h: Regenerated.
36423 2003-10-29 Ed Schonberg <schonberg@gnat.com>
36425 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36426 current body, after compiling subunit.
36428 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36429 when in deleted code, because gigi needs properly ordered freeze
36430 actions to annotate types.
36432 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36433 prevent the premature freezing of record type that contains
36434 subcomponents with a private type that does not yet have a completion.
36436 2003-10-29 Javier Miranda <miranda@gnat.com>
36439 (Analyze_Package_Instantiation): Check that instances can not be used in
36440 limited with_clauses.
36443 (Analyze_Package_Renaming): Check that limited withed packages cannot
36444 be renamed. Improve text on error messages related to limited
36447 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36449 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36450 Update copyright notice.
36452 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36453 (Install_Limited_Context_Clauses): New subprogram that isolates all the
36454 checks required for limited context_clauses and installs the limited
36456 (Install_Limited_Withed_Unit): Complete its documentation.
36457 (Analyze_Context): Check that limited with_clauses are only allowed in
36459 (Install_Context): Call Install_Limited_Context_Clauses after the
36460 parents have been installed.
36461 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36462 package as 'From_With_Type'; this mark indicates that the limited view
36463 is installed. Used to check bad usages of limited with_clauses.
36464 (Build_Limited_Views): Do not add shadow entities to the scope's list
36465 of entities. Do not add real entities to the Non_Limited_Views chain.
36466 Improve error notification.
36467 (Remove_Context_Clauses): Remove context clauses in two phases:
36468 limited views first and regular views later (to maintain the
36470 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36471 its visible entities.
36473 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
36475 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36476 with any type that Is_Fixed_Point_Type.
36478 * sinfo.ads: Fix documentation for Associated_Node attribute.
36480 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
36482 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36483 both '-gnatc' and '-gnatt' are specified.
36485 * atree.adb (Initialize): Add initialization for Node_Count (set to
36488 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36490 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36491 do not consider as Pure.
36493 Part of implementation of function-at-a-time:
36495 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36496 (tree_transform): Add new argument to build_component_ref.
36497 (tree_transform, case N_Assignment_Statement): Make and return an
36499 (tree_transform): If result IS_STMT, set flags and return it.
36500 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36502 * utils2.c (build_simple_component_ref, build_component_ref): Add new
36504 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36505 (build_allocator): Likewise.
36507 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36508 Add new arg to build_component_ref.
36509 (maybe_unconstrained_array, unchecked_convert): Likewise.
36511 * ada-tree.def (EXPR_STMT): New code.
36513 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36515 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36516 build_component_ref calls.
36518 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36520 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36521 (build_component_ref): Add new argument, NO_FOLD_P.
36523 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
36525 * Makefile.generic: Add missing substitution on object_deps handling.
36528 * Make-lang.in (check-ada): Enable ACATS test suite.
36530 2003-10-27 Robert Dewar <dewar@gnat.com>
36533 (Freeze_Array_Type): We do not need an initialization routine for types
36534 derived from String or Wide_String. They should be treated the same
36535 as String and Wide_String themselves. This caused problems with the
36536 use of Initialize_Scalars.
36539 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36540 composites. This allows use of component clauses that are not byte
36544 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36545 is an attempt to pack an array of atomic objects.
36547 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36549 2003-10-27 Pascal Obry <obry@gnat.com>
36552 (Basename): Check for drive letters in a pathname only on DOS based OS.
36554 2003-10-27 Vincent Celier <celier@gnat.com>
36557 (Gnatmake): When unable to change dir to the object dir, display the
36558 content of the parent dir of the obj dir, to try to understand why this
36561 2003-10-27 GNAT Script <nobody@gnat.com>
36563 * Make-lang.in: Makefile automatically updated
36565 2003-10-27 Ed Schonberg <schonberg@gnat.com>
36568 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36569 should not be done in Save/Restore_Scope_Stack, because it is performed
36573 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36574 whether use clauses should be removed/restored.
36577 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36578 whether use clauses should be removed/restored.
36580 2003-10-26 Andreas Jaeger <aj@suse.de>
36582 * Makefile.in: Remove duplicated lines.
36584 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36586 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36587 minimize the differences with ACT tree.
36589 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36590 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36591 Gnatvsn.Gnat_Static_Version_String to reduce differences between
36594 2003-10-24 Pascal Obry <obry@gnat.com>
36597 * adadecode.c (ostrcpy): New function.
36598 (__gnat_decode): Use ostrcpy of strcpy.
36599 (has_prefix): Set first parameter a const.
36600 (has_suffix): Set first parameter a const.
36601 Update copyright notice. Fix source name in header.
36602 Removes a trailing space.
36604 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
36607 Remove the test against being in No_Run_Time_Mode before generating a
36608 call to Register_Tag. It is redundant with the test against the
36609 availability of the function Register_Tag.
36611 2003-10-24 Vincent Celier <celier@gnat.com>
36613 * g-catiio.adb: (Month_Name): Correct spelling of February
36615 * make.adb: (Mains): New package
36616 (Initialize): Call Mains.Delete
36617 (Gnatmake): Check that each main on the command line is a source of a
36618 project file and, if there are several mains, each of them is a source
36619 of the same project file.
36620 (Gnatmake): When a foreign language is specified in attribute Languages,
36621 no main is specified on the command line and attribute Mains is not
36622 empty, only build the Ada main. If there is no Ada main, just compile
36623 the Ada sources and their closure.
36624 (Gnatmake): If a main is specified on the command line with directory
36625 information, check that the source exists and, if it does, that the path
36626 is the actual path of a source of a project.
36629 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36630 Full_Path is True, return the full path instead of the simple file name.
36631 (Project_Of): New function
36634 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36635 defaulted to False.
36636 (Project_Of): New function
36638 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36640 * Makefile.generic:
36641 Ensure objects of main project are always checked and rebuilt if needed.
36642 Set CC to gcc by default.
36643 Prepare new handling of link by creating a global archive (not activated
36646 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36647 stringt.h: Update copyright notice. Remove trailing blanks.
36648 Fix source name in header.
36650 2003-10-24 Robert Dewar <dewar@gnat.com>
36652 * sem_ch12.adb: Minor reformatting
36655 Minor reformatting (including new function return style throughout)
36658 Minor reformatting (including new function return style throughout)
36660 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36662 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36663 stringt.h: Update copyright notice. Remove trailing blanks.
36664 Fix source name in header.
36666 2003-10-24 GNAT Script <nobody@gnat.com>
36668 * Make-lang.in: Makefile automatically updated
36670 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
36672 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36673 stringt.h: Convert to ISO C90 declarations and definitions.
36675 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
36678 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36679 External_Tag attribute definition clauses.
36681 2003-10-23 Ed Schonberg <schonberg@gnat.com>
36684 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36685 child unit, generate a fully qualified name to avoid spurious errors
36686 when the context contains renamings of different child units with
36687 the same simple name.
36689 * exp_dbug.ads: Add documentation on name qualification for renamings
36692 2003-10-23 Robert Dewar <dewar@gnat.com>
36694 * g-regpat.ads, g-regpat.adb: Minor reformatting
36696 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
36698 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36700 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36702 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36705 * urealp.h: (Machine): Update to proper definition.
36707 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
36709 * init.c, adaint.c: Minor reformatting.
36711 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
36713 * adaint.c (w32_epoch_offset): Define static const at file level.
36714 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36715 rather than t_create, t_access in call to GetFileTime. Use union
36716 to convert between FILETIME and unsigned long long.
36717 (__gnat_file_time_name): Test for invalid file handle.
36718 (__gnat_set_filetime_name): Support win32 targets using
36719 w32api SetFileTime.
36721 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
36723 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36725 * ctrl_c.c (__gnat_int_handler): Remove declaration.
36727 * decl.c (creat_concat_name): Const-ify prefix.
36729 * adaint.c: Include ctype.h if __MINGW32__.
36730 (__gnat_readlink): Mark arguments as possibly unused.
36731 (__gnat_symlink): Likewise.
36732 (__gnat_is_symbolic_link): Likewise.
36733 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
36735 (__gnat_file_time_name): Don't declare struct stat statbuf when
36737 (__gnat_is_absolute_path): Add parenthesis around condition of
36738 'if' statement to avoid warning.
36739 (__gnat_plist_init): Specify void as parameter.
36740 (plist_enter): Likewise.
36741 (plist_leave): Likewise.
36742 (remove_handle): Make static. Initialize prev.
36744 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36747 * Makefile.in: Disable build of gnatpsta.
36748 * cstreams.c (__gnat_full_name): Minor improvements and clean up
36749 of previous change.
36751 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36753 * tracebak.c (MAX): Avoid redefinition warning.
36755 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36756 Change msg to const char *.
36757 (__gnat_install_handler): Remove ss, unused.
36758 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36760 * cstreams.c (__gnat_full_name): Declare p only when used.
36761 (__gnat_full_name) [sgi] Return buffer.
36763 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36765 * mingw32.h: New file.
36766 * gnat_wrapper.adb: New file.
36768 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
36770 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36771 string match a pre compiled regular expression (the corresponding
36772 version of the function working on a raw regular expression)
36773 Fix typos in various comments
36774 Update copyright notice in spec
36776 2003-10-21 Gary Dismukes <dismukes@gnat.com>
36779 (Component_Needs_Simple_Initialization): Return False when the type is a
36780 packed bit array. Revise spec comments to document this case.
36783 (Expand_Pragma_Import): Set any expression on the imported object to
36784 empty to avoid initializing imported objects (in particular this
36785 covers the case of zero-initialization of bit arrays).
36786 Update copyright notice.
36788 2003-10-21 Ed Schonberg <schonberg@gnat.com>
36791 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36792 a subunit is missing.
36793 (Instantiate_Subprogram_Body): If body of function is missing, set type
36794 of return expression explicitly in dummy body, to prevent cascaded
36795 errors when a subunit is missing.
36799 (Access_Subprogram_Declaration): Verify that return type is valid.
36803 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36808 (Corresponding_Discriminant): If the scope of the discriminant is a
36809 private type without discriminant, use its full view.
36812 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
36814 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36815 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36816 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36817 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36818 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36819 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36820 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36821 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36822 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36823 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36824 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36825 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36826 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36827 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36828 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36829 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36830 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36831 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36832 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36833 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36834 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36835 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36836 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36837 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36838 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36839 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36840 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36841 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36842 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36843 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36844 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36845 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36846 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36847 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36848 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36849 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36850 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36851 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36852 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36853 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36854 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36855 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36856 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36857 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36858 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36859 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36860 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36861 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36862 vms_conv.ads, vms_conv.adb, vms_data.ads,
36863 vxaddr2line.adb: Files added. Merge with ACT tree.
36865 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36866 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36867 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36868 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36869 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36870 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36871 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36872 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36873 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36874 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36876 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36877 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36878 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36879 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36880 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36881 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36882 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36883 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36884 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36885 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36886 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36887 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36888 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36889 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36890 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36891 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36892 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36893 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36894 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36895 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36896 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36897 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36898 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36899 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36900 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36901 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36902 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36903 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36904 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36905 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36906 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36907 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36908 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36909 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36910 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36911 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36912 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36913 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36914 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36915 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36916 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36917 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36918 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36919 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36920 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36921 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36922 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36923 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36924 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36925 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36926 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36927 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36928 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36929 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36930 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36931 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36932 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36933 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36934 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36935 checks.adb, checks.ads, cio.c, comperr.adb,
36936 comperr.ads, csets.adb, cstand.adb, cstreams.c,
36937 debug_a.adb, debug_a.ads, debug.adb, decl.c,
36938 einfo.adb, einfo.ads, errout.adb, errout.ads,
36939 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36940 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36941 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36942 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36943 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36944 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36945 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36946 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36947 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36948 fe.h, fmap.adb, fmap.ads, fname.adb,
36949 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36950 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36951 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36952 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36953 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36954 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36955 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36956 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36957 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36958 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36959 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36960 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36961 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36962 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36963 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36964 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36965 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36966 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36967 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36968 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36969 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36970 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36971 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36972 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36973 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36974 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36975 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36976 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36977 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36978 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36979 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36980 layout.adb, lib.adb, lib.ads, lib-list.adb,
36981 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36982 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36983 link.c, live.adb, make.adb, make.ads,
36984 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36985 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36986 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36987 misc.c, mkdir.c, mlib.adb, mlib.ads,
36988 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36989 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36990 namet.adb, namet.ads, namet.h, nlists.ads,
36991 nlists.h, nmake.adt, opt.adb, opt.ads,
36992 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36993 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36994 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36995 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36996 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36997 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36998 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36999 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37000 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37001 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37002 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37003 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37004 prj-util.adb, prj-util.ads, raise.c, raise.h,
37005 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37006 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37007 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37008 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37009 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37010 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37011 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37012 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37013 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37014 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37015 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37016 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37017 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37018 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37019 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37020 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37021 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37022 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37023 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37024 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37025 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37026 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37027 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37028 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37029 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37030 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37031 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37032 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37033 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37034 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37035 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37036 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37037 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37038 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37039 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37040 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37041 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37042 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37043 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37044 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37045 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37046 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37047 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37048 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37049 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37050 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37051 stringt.adb, stringt.ads, stringt.h, style.ads,
37052 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37053 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37054 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37055 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37056 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37057 table.adb, table.ads, targparm.adb, targparm.ads,
37058 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37059 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37060 ttypes.ads, types.ads, types.h, uintp.adb,
37061 uintp.ads, uintp.h, uname.adb, urealp.adb,
37062 urealp.ads, urealp.h, usage.adb, utils2.c,
37063 utils.c, validsw.adb, validsw.ads, widechar.adb,
37064 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37065 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37066 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37067 gnatvsn.ads: Merge with ACT tree.
37069 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37071 2003-10-20 Mark Mitchell <mark@codesourcery.com>
37073 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37074 (gnat_ug_vmx.info): Likewise.
37075 (gnat_ug_vxw.info): Likewise.
37076 (gnat_ug_wnt.info): Likewise.
37077 (gnat_rm.info): Likewise.
37078 (gnat-style.info): Likewise.
37080 * Make-lang.in (ada.install-info): Remove target.
37081 (info): New target.
37082 (install-info): Likewise.
37083 (gnat_ug_unx.info): Simplify rule.
37084 (gnat_ug_vmx.info): Likewise.
37085 (gnat_ug_vxw.info): Likewise.
37086 (gnat_ug_wnt.info): Likewise.
37087 (gnat_rm.info): Likewise.
37088 (gnat-style.info): Likewise.
37090 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
37092 * Make-lang.in: Replace uses of $(target_alias) with
37093 $(target_noncanonical).
37094 * ada/Makefile.in: Remove unused mention of $(target_alias).
37096 2003-10-06 Mark Mitchell <mark@codesourcery.com>
37098 * Make-lang.in (ada.info): Replace with ...
37100 (ada.dvi): Replace with ...
37103 2003-09-29 Zack Weinberg <zack@codesourcery.com>
37105 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37106 initialize dconstp5 and dconstmp5.
37108 2003-09-28 Richard Henderson <rth@redhat.com>
37110 * trans.c (tree_transform): Update call to expand_asm_operands.
37112 2003-09-21 Richard Henderson <rth@redhat.com>
37114 * trans.c, utils.c: Revert.
37116 2003-09-21 Richard Henderson <rth@redhat.com>
37118 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37121 2003-09-04 Michael Matz <matz@suse.de>
37123 * misc.c: Include "target.h".
37124 * Make-lang.in (misc.o): Add dependency on target.h.
37126 2003-09-03 DJ Delorie <dj@redhat.com>
37128 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37131 2003-08-30 Zack Weinberg <zack@codesourcery.com>
37133 * Makefile.in: Update substitutions to match changes to
37134 configure. Use include directives instead of @-insertions
37135 to read in host and target fragments. Add a rule to
37136 regenerate ada/Makefile.
37138 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
37140 * lang-options.h: Remove.
37141 * lang.opt: Add help text.
37143 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
37145 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37148 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
37150 * misc.c (gnat_handle_option): Don't handle filenames.
37152 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
37154 * Make-lang.in: Replace PWD with PWD_COMMAND.
37155 * Makefile.adalib: Likewise.
37156 * Makefile.in: Likewise.
37158 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
37160 * misc.c (gnat_argv): Revert last change.
37161 (gnat_handle_option, gnat_init_options): Copy arguments.
37163 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
37165 * misc.c (gnat_argv): Make const.
37167 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37169 * misc.c (save_argc, save_argv): Keep non-static!
37171 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37173 * misc.c (save_argc, save_argv): Make static.
37174 (gnat_init_options): New prototype.
37175 (gnat_init_options): Update.
37177 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
37179 * gnat_ug.texi: Remove unlikely characters from @vars.
37180 * gnat_ug_vms.texi: Regenerate.
37182 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
37184 * misc.c (record_code_position): Adjust emit_note call.
37186 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
37188 * misc.c (gnat_handle_option): Don't check for missing arguments.
37190 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
37192 * utils.c (end_subprog_body): Adjust expand_function_end call.
37194 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
37196 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37199 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
37201 * lang.opt: Declare Ada.
37202 * misc.c (gnat_init_options): Update.
37204 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
37206 * utils.c (begin_subprog_body): Adjust init_function_start call.
37208 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37210 * Make-lang.in: Update to use options.c and options.h.
37211 * misc.c: Include options.h not aoptions.h.
37212 (gnat_handle_option): Abort on unrecognized switch.
37213 (gnat_init_options): Request Ada switches.
37215 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37217 * lang.opt: Add -Wall.
37218 * misc.c (gnat_handle_option): Handle it.
37220 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37222 * misc.c (gnat_handle_option): Fix warnings.
37224 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37226 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37228 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37230 * Make-lang.in: Update to handle command-line options.
37231 * lang.opt: New file.
37232 * misc.c: Include aoptions.h.
37233 (cl_options_count, cl_options): Remove.
37234 (gnat_handle_option): New.
37235 (gnat_decode_option): Remove.
37236 (LANG_HOOKS_DECODE_OPTION): Remove.
37237 (LANG_HOOKS_HANDLE_OPTION): Override.
37239 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37241 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37243 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37245 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37248 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37250 * Make-lang.in: Update.
37251 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37253 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37255 * misc.c (gnat_init_options): Update.
37257 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37259 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37260 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37261 __attribute__ ((__unused__)).
37263 2003-06-05 Jan Hubicka <jh@suse.cz>
37265 * Make-lang.in: Add support for stageprofile and stagefeedback
37267 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37269 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37270 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37272 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37274 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37275 Remove non-VMS directive.
37276 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37278 (Examples of gnatls Usage): Remove VMS alternative.
37280 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37283 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37284 and turn ZCX_By_Default back to False since the underlying support
37285 is not quite there yet.
37287 2003-06-01 Andreas Jaeger <aj@suse.de>
37289 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37290 and ROUND_TYPE_SIZE_UNIT.
37292 2003-05-22 Geert Bosch <bosch@gnat.com>
37294 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37296 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37298 * trans.c (tree_transform): Use location_t and input_location
37300 (build_unit_elab): Likewise.
37301 * utils.c (create_label_decl): Likewise.
37303 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37305 * trans.c (tree_transform, build_unit_elab,
37306 set_lineno): Rename lineno to input_line.
37307 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37308 end_subprog_body): Likewise.
37309 * utils2.c (build_call_raise): Likewise.
37311 2003-05-01 Laurent Guerby <guerby@acm.org>
37314 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37315 LinuxThread and NPTL version, merge from ACT.
37317 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37319 * utils.c (convert): No need to clear TREE_CST_RTL.
37321 2003-04-23 Geert Bosch <bosch@gnat.com>
37323 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37324 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37325 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37326 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37327 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37328 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37329 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37330 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37331 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37332 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37333 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37334 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37335 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37336 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37337 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37338 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37339 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37340 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37341 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37342 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37343 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37344 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37345 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37346 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37347 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37348 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37349 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37350 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37351 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37352 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37353 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37354 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37355 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37356 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37357 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37358 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37359 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37360 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37361 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37362 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37363 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37364 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37365 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37366 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37367 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37368 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37369 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37370 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37371 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37372 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37373 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37374 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37375 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37376 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37377 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37378 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37379 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37380 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37381 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37382 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37383 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37384 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37385 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37386 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37387 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37388 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37389 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37390 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37391 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37392 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37393 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37394 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37395 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37396 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37397 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37398 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37399 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37400 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37401 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37402 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37403 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37404 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37405 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37406 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37407 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37408 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37409 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37410 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37411 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37412 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37413 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37414 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37415 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37416 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37417 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37418 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37419 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37420 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37421 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37422 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37423 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37424 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37425 ali.adb, ali.ads, alloc.ads, argv.c,
37426 atree.adb, atree.ads, atree.h, aux-io.c,
37427 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37428 binde.adb, binde.ads, binderr.adb, binderr.ads,
37429 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37430 butil.adb, butil.ads, cal.c, calendar.ads,
37431 casing.adb, casing.ads, ceinfo.adb, checks.adb,
37432 checks.ads, cio.c, comperr.adb, comperr.ads,
37433 config-lang.in, csets.adb, csets.ads, csinfo.adb,
37434 cstand.adb, cstand.ads, cuintp.c, debug.adb,
37435 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37436 dec-io.ads, dec.ads, deftarg.c, directio.ads,
37437 einfo.adb, einfo.ads, elists.adb, elists.ads,
37438 elists.h, errno.c, errout.adb, errout.ads,
37439 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37440 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37441 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37442 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37443 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37444 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37445 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37446 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37447 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37448 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37449 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37450 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37451 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37452 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37453 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37454 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37455 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37456 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37457 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37458 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37459 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37460 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37461 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37462 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37463 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37464 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37465 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37466 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37467 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37468 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37469 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37470 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37471 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37472 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37473 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37474 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37475 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37476 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37477 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37478 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37479 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37480 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37481 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37482 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37483 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37484 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37485 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37486 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37487 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37488 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37489 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37490 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37491 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37492 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37493 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37494 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37495 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37496 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37497 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37498 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37499 lib.adb, lib.ads, live.adb, live.ads,
37500 machcode.ads, make.adb, make.ads, makeusg.adb,
37501 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37502 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37503 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37504 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37505 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37506 mlib.ads, namet.adb, namet.ads, nlists.adb,
37507 nlists.ads, opt.adb, opt.ads, osint-b.adb,
37508 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37509 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37510 osint.ads, output.adb, output.ads, par-ch10.adb,
37511 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37512 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37513 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37514 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37515 par-tchk.adb, par-util.adb, par.adb, par.ads,
37516 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37517 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37518 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37519 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37520 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37521 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37522 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37523 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37524 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37525 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37526 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37527 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37528 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37529 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37530 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37531 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37532 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37533 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37534 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37535 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37536 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37537 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37538 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37539 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37540 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37541 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37542 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37543 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37544 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37545 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37546 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37547 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37548 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37549 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37550 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37551 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37552 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37553 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37554 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37555 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37556 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37557 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37558 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37559 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37560 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37561 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37562 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37563 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37564 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37565 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37566 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37567 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37568 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37569 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37570 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37571 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37572 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37573 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37574 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37575 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37576 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37577 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37578 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37579 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37580 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37581 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37582 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37583 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37584 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37585 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37586 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37587 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37588 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37589 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37590 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37591 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37592 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37593 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37594 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37595 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37596 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37597 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37598 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37599 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37600 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37601 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37602 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37603 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37604 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37605 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37606 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37607 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37608 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37609 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37610 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37611 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37612 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37613 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37614 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37615 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37616 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37617 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37618 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37619 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37620 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37621 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37622 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37623 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37624 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37625 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37626 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37627 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37628 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37629 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37630 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37631 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37632 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37633 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37634 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37635 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37636 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37637 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37638 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37639 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37640 snames.ads, sprint.adb, sprint.ads, stand.adb,
37641 stand.ads, stringt.adb, stringt.ads, style.adb,
37642 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37643 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37644 switch-m.ads, switch.adb, switch.ads, system.ads,
37645 table.adb, table.ads, targparm.adb, targparm.ads,
37646 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37647 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37648 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37649 ttypef.ads, ttypes.ads, types.adb, types.ads,
37650 uintp.adb, uintp.ads, uname.adb, uname.ads,
37651 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37652 usage.adb, usage.ads, validsw.adb, validsw.ads,
37653 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37654 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37655 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37656 formatting and other trivial changes from ACT.
37658 2003-04-12 Zack Weinberg <zack@codesourcery.com>
37660 * gigi.h, utils2.c (build_constructor):
37661 Rename gnat_build_constructor. Use build_constructor.
37662 * decl.c (gnat_to_gnu_entity)
37663 * trans.c (tree_transform, pos_to_constructor, extract_values)
37664 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37665 (unchecked_convert)
37666 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37667 (fill_vms_descriptor):
37670 2003-04-06 Zack Weinberg <zack@codesourcery.com>
37672 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37673 * misc.c (gnat_tree_size): New function.
37674 (LANG_HOOKS_TREE_SIZE): Override.
37676 2003-04-03 Jason Merrill <jason@redhat.com>
37678 * misc.c (gnat_adjust_rli): #if 0.
37680 2003-03-31 Geert Bosch <bosch@gnat.com>
37683 * link.c : Fix misspelled "const" keyword
37685 2003-03-23 Mark Mitchell <mark@codesourcery.com>
37688 * utils2.c: Adjust calls to put_var_into_stack.
37690 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
37692 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37694 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
37696 * misc.c (gnat_init): Update for new prototype.
37698 2003-03-05 Olivier Hainque <hainque@gnat.com>
37701 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37702 warning, and fix return type for the IN_RTS && !SJLJ case.
37704 2003-03-04 Tom Tromey <tromey@redhat.com>
37706 * Make-lang.in (ada.tags): New target.
37708 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
37711 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37712 wrapper, which name remains constant whatever underlying GCC
37715 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37716 the stable interface needed for a-except.
37718 2003-03-02 Andreas Jaeger <aj@suse.de>
37720 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37721 gnat_ug_wnt.texi: Regenerate.
37723 2003-03-02 Laurent Guerby <guerby@acm.org>
37725 * Makefile.in (install-gnatlib): Match previous change there
37728 2003-02-28 Andreas Schwab <schwab@suse.de>
37730 * Make-lang.in (install-gnatlib): Change to ada directory before
37731 running make instead of using ada/Makefile directly.
37733 2003-02-18 Ben Elliston <bje@redhat.com>
37735 Part of PR ada/9406
37736 * gnat_ug.texi (Binder output file): Grammar fix.
37738 2003-02-18 Ben Elliston <bje@redhat.com>
37741 * 5qtaprop.adb (Sleep): Fix typo in comment.
37743 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
37745 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37746 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37747 gnat_ug_wnt.texi: Regenerate.
37749 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37751 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37752 be created if necessary.
37753 (ada.install-common): Let $(DESTDIR)$(bindir) be created
37754 if necessary. Remove erroneous and redundant gnatchop
37755 installation commands. Test for gnatdll before attempting
37757 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37758 and gnatdll from all plausible locations.
37760 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
37762 * utils2.c (build_unary_op): Don't check flag_volatile.
37763 * gnat_ug.texi: Remove -fvolatile from example.
37764 * gnat_ug_vxw.texi: Likewise.
37766 2003-01-29 Laurent Guerby <guerby@acm.org>
37769 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37770 * Makefile.in: match previous change.
37771 * Make-lang.in: match previous change.
37773 2003-01-29 Joel Sherrill <joel@OARcorp.com>
37775 * 5rosinte.ads: Add SIGXCPU.
37776 * 5rtpopsp.adb: New file.
37777 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37778 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37779 specific file 5rtpopsp.adb.
37780 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
37781 is likely needed for all newlib targets.
37782 * init.c: Add RTEMS specific version of __gnat_initialize().
37784 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37786 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37788 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37790 * init.c (__gnat_error_handler): Make msg const.
37792 * gmem.c (convert_addresses): Move declaration ...
37793 * adaint.h: ... here.
37794 * adaint.c (convert_addresses): Adapt addrs type to match
37797 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37799 2003-01-24 Andreas Schwab <schwab@suse.de>
37801 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37802 size_t to avoid warning.
37804 2003-01-21 Zack Weinberg <zack@codesourcery.com>
37806 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37808 2003-01-09 Geoffrey Keating <geoffk@apple.com>
37810 * gnat_rm.texi: Remove RCS version number.
37812 * ada-tree.h (union lang_tree_node): Add chain_next option.
37814 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37816 * Make-lang.in (ada.install-info, ada.install-common,
37817 ada.uninstall): Prepend $(DESTDIR) to the destination
37818 directory in all (un)installation commands.
37819 * Makefile.in (install-gnatlib, install-rts): Ditto.
37821 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
37823 * gnat_rm.texi, gnat_ug.texi: Use @copying.
37824 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37825 gnat_ug_wnt.texi: Regenerate.
37827 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
37829 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
37831 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37832 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37833 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37834 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37835 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37836 $(srcdir)/doc/include/gcc-common.texi.
37838 2002-12-15 Geert Bosch <bosch@gnat.com>
37840 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37842 2002-12-14 Geert Bosch <bosch@gnat.com>
37845 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37846 case of a body created for a Renaming_As_Body, on which
37847 conformance checks are not performed.
37849 2002-11-30 Zack Weinberg <zack@codesourcery.com>
37851 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37852 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37853 not already included.
37854 * Make-lang.in: Update dependencies.
37856 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
37857 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37858 solution to buffer overflow bug on GNU/Linux.
37860 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
37864 * bindgen.adb: Remove all references to Public_Version.
37865 * comperr.adb: Remove all references to Public_Version and
37866 GNATPRO_Version; correct bug reporting instructions.
37867 * comperr.ads: Change to match bug box.
37868 * gnatvsn.ads: Remove all references to Public version and
37871 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
37874 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37878 * config-lang.in: Remove diff_excludes.
37880 2002-11-05 Graham Stott <graham.stott@btinternet.com>
37883 * trans.c (gnu_pending_elaboration_lists): New GC root.
37884 (build_unit_elab): Use..
37886 2002-10-30 Geert Bosch <bosch@gnat.com>
37889 * misc.c : Include optabs.h
37891 * Make-lang.in (misc.o): Add dependency on optabs.h
37893 2002-10-29 Geert Bosch <bosch@gnat.com>
37896 * Make-lang.in (gnatbind): Depend on CONFIG_H
37898 2002-10-29 Geert bosch <bosch@gnat.com>
37901 * misc.c: Unrevert misc.c (1.13)
37903 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
37905 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37906 maintainership comments.
37908 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
37911 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37912 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37913 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37914 7staprop.adb: Correct statements in comments about
37915 maintainership of GNAT.
37918 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37919 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37920 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37921 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37922 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37923 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37924 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37925 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37926 comments about maintainership of GNAT.
37928 PR ada/6919 (forward port of patch for PR ada/5904)
37929 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37930 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37931 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37932 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37933 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37934 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37935 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37936 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37937 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37938 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37939 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37940 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37941 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37942 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37943 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37944 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37945 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37946 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37947 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37948 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37949 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37950 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37951 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37952 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37953 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37954 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37955 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37956 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37957 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37958 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37959 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37960 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37961 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37962 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37963 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37964 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37965 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37966 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37967 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37968 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37969 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37970 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37971 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37972 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37973 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37974 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37975 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37976 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37977 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37978 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37979 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37980 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37981 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37982 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37983 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37984 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37985 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37986 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37987 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37988 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37989 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37990 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37991 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37992 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37993 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37994 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37995 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37996 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37997 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37998 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37999 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38000 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38001 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38002 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38003 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38004 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38005 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38006 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38007 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38008 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38009 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38010 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38011 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38012 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38013 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38014 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38015 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38016 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38017 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38018 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38019 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38020 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38021 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38022 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38023 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38024 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38025 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38026 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38027 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38028 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38029 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38030 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38031 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38032 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38033 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38034 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38035 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38036 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38037 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38038 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38039 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38040 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38041 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38042 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38043 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38044 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38045 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38046 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38047 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38048 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38049 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38050 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38051 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38052 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38053 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38054 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38055 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38056 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38057 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38058 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38059 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38060 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38061 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38062 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38063 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38064 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38065 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38066 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38067 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38068 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38069 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38070 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38071 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38072 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38073 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38074 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38075 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38076 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38077 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38078 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38079 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38080 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38081 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38082 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38083 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38084 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38085 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38086 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38087 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38088 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38089 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38090 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38091 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38092 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38093 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38094 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38095 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38096 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38097 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38098 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38099 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38100 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38101 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38102 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38103 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38104 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38105 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38106 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38107 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38108 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38109 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38110 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38111 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38112 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38113 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38114 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38115 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38116 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38117 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38118 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38119 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38120 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38121 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38122 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38123 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38124 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38125 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38126 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38127 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38128 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38129 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38130 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38131 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38132 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38133 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38134 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38135 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38136 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38137 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38138 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38139 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38140 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38141 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38142 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38143 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38144 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38145 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38146 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38147 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38148 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38149 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38150 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38151 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38152 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38153 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38154 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38155 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38156 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38157 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38158 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38159 stringt.ads stringt.h style.adb style.ads stylesw.adb
38160 stylesw.ads switch.adb switch.ads sysdep.c system.ads
38161 table.adb table.ads targparm.adb targparm.ads targtyps.c
38162 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38163 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38164 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38165 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38166 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38167 usage.ads utils.c utils2.c validsw.adb validsw.ads
38168 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38169 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38170 xtreeprs.adb: Correct statements in comments about maintainership
38173 2002-09-23 Zack Weinberg <zack@codesourcery.com>
38175 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38176 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38177 * gnatvsn.ads: Gnat_Version_String is now a function.
38178 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
38179 copy the C version_string into a String and return it.
38180 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38181 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38182 Remove pragma Ident (Gnat_Version_String). If this was the
38183 sole use of package Gnatvsn, remove the with statement too.
38184 * gnat1drv.adb: Tweak -gnatv output.
38186 2002-09-17 Richard Henderson <rth@redhat.com>
38188 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38189 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38190 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38191 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38192 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38193 and real_2expN instead of a loop.
38194 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38195 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38197 2002-08-25 Andre Leis <a.leis@gmx.net>
38198 David Billinghurst <David.Billinghurst@riotinto.com>
38200 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38202 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38204 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38205 Remove $(CONFIG_H) dependency.
38207 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
38209 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38211 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38213 * adadecode.c (ada_demangle): Use xstrdup in lieu of
38215 * misc.c (gnat_decode_option): Likewise.
38217 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38219 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38220 function approach did not work well because of a side effect (the
38221 function call could reallocate the table which was being indexed
38222 using its result). Fixes ada/4851. [RESURRECTED]
38224 2002-07-01 Roger Sayle <roger@eyesopen.com>
38226 * ada/utils.c (builtin_function): Accept an additional parameter.
38228 2002-06-28 Andreas Jaeger <aj@suse.de>
38231 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38234 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38236 * Makefile.in (SHELL): Set to @SHELL@.
38238 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38240 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38241 array size calculation.
38243 2002-06-04 Andreas Jaeger <aj@suse.de>
38245 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38248 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38250 Merge from pch-branch:
38252 * config-lang.in (gtfiles): Add ada-tree.h.
38253 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38254 (SET_TYPE_MODULUS): New.
38255 (SET_TYPE_INDEX): New.
38256 (SET_TYPE_DIGITS_VALUE): New.
38257 (SET_TYPE_RM_SIZE): New.
38258 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38259 (SET_TYPE_ADA_SIZE): New.
38260 (SET_TYPE_ACTUAL_BOUNDS): New.
38261 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38262 (SET_DECL_ORIGINAL_FIELD): New.
38263 (TREE_LOOP_ID): Correct typo.
38264 * decl.c: Use new macros.
38265 * utils.c: Include debug.h, use new macros.
38266 * utils2.c: Use new macros.
38268 * ada-tree.h: Update all macros for new tree description.
38269 (struct tree_loop_id): New.
38270 (union lang_tree_node): New.
38271 (struct lang_decl): New.
38272 (struct lang_type): New.
38273 * misc.c (gnat_mark_tree): Delete.
38274 (LANG_HOOKS_MARK_TREE): Delete.
38275 * trans.c (tree_transform): No longer any need to cast
38278 * utils.c (struct language_function): New dummy structure.
38280 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38281 (misc.o): Likewise.
38282 (utils.o): Likewise; also gtype-ada.h.
38283 * Make-lang.in (gnat1): Add dependency on s-gtype.
38284 (gnatbind): Add dependency on $(CONFIG_H).
38285 * utils.c: Correct last #include.
38286 (stuct e_stack): Remove unnecessary 'static'.
38287 (mark_e_stack): Remove unused prototype.
38289 * scn-nlit.adb: Remove whitespace after version number to
38290 keep lines under 80 chars.
38291 * snames.adb: Likewise.
38292 * treepr.ads: Likewise.
38294 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38295 (misc.o): Likewise.
38296 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38297 * config-lang.in (gtfiles): New.
38298 * decl.c: Use gengtype for roots.
38299 * gigi.h: Use gengtype for roots.
38300 * trans.c: Use gengtype for roots.
38301 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38303 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38305 * misc.c (gnat_init): Adjust setting of internal_error_function.
38307 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38309 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38310 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38311 gnat_ug_wnt.texi: Regenerate.
38313 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38315 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38317 * cstreams.c (max_path_len): Move from here ...
38318 * adaint.c (__gnat_max_path_len): ... to here.
38319 * adaint.c (__gnat_max_path_len): Declare.
38320 * g-dirope.adb (Max_Path): Adjust.
38321 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38322 * i-cstrea.ads (max_path_len): Adjust.
38323 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38324 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38326 * Makefile.in, Make-lang.in: Documentation is now built in
38327 Make-lang.in. Store Info and generated Texinfo files in the
38329 * gnat_ug.texi: Remove CVS keywords, correct version number.
38330 Set file name correctly.
38332 * gnat_ug_*.texi: Add.
38333 * .cvsignore: Ignore generated Texinfo files.
38335 2002-05-30 Zack Weinberg <zack@codesourcery.com>
38337 * ada.h: Add MI guard macro.
38338 (SUBTYPE): Define constants with an anonymous enum, not static
38340 (IN): Cast constants to appropriate type before use.
38342 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
38344 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38347 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38349 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38350 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38351 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38352 (ALL_ADA_CFLAGS): Likewise.
38353 (ADA_INCLUDES): Likewise.
38354 Adapt for new working dir.
38355 (GNATBIND): Use Makefile.in version.
38356 (.SUFFIXES): Copy from Makefile.in.
38357 (ada-warn): Define.
38358 (.adb.o, .ads.o): Copy from Makefile.in.
38359 Added $(OUTPUT_OPTION).
38360 (GNAT1_C_OBJS): Moved from Makefile.in.
38361 Prefix with ada subdir.
38362 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38363 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38364 Adapt for new working dir.
38365 (EXTRA_GNATBIND_OBJS): Likewise.
38366 (ADA_BACKEND): Moved from Makefile.in.
38367 Renamed to avoid conflict with global BACKEND.
38369 (TARGET_ADA_SRCS): Moved from Makefile.in.
38370 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38372 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38373 (ada_extra_files): Moved from Makefile.in.
38374 Prefix with ada subdir.
38375 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38376 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38377 (ada/nmake.ads): Likewise.
38378 (update-sources): Moved from Makefile.in.
38379 Prefix with ada subdir.
38380 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38381 (ADA_TREE_H): Likewise.
38382 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38383 (ada/memtrack.o): Likewise.
38384 (ada/adadecode.o): Likewise.
38385 Update dependencies.
38386 (ada/adaint.o): New.
38387 (ada/argv.o): Moved from Makefile.in.
38388 Prefix with ada subdir.
38389 Update dependencies.
38390 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38391 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38392 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38393 Prefix with ada subdir.
38394 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38395 (GNAT DEPENDENCIES): Regenerate.
38396 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38397 toplevel Makefile.in.
38398 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38399 (TARGET_ADA_SRCS): Removed.
38400 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38401 (GNATBIND_OBJS): Likewise.
38402 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38403 (BACKEND): Removed.
38404 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38405 (TREE_H): Likewise.
38406 (ada_extra_files): Likewise.
38407 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38408 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38409 (update-sources): Likewise.
38410 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38411 (ADA_TREE_H): Likewise.
38412 (adadecoce.o): Likewise.
38413 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38414 (GNAT DEPENDENCIES): Likewise.
38416 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38418 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38419 * Makefile.in: Likewise.
38421 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38423 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38424 Restore $(CONFIG_H) and prefix.o dependencies.
38425 (ada.stage[1-4]): Depend on stage?-start.
38427 * Makefile.in (b_gnatb.c): Depend on interfac.o.
38429 2002-05-02 Jim Wilson <wilson@redhat.com>
38431 * utils.c (finish_record_type): Change record_size to record_type.
38433 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
38435 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38436 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38437 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38439 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
38441 * misc.c (gnat_parse_file): Update.
38443 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
38445 * misc.c (gnat_init): Don't set lang_attribute_common.
38447 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
38449 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38451 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
38453 * gnat_ug.texi: New file.
38455 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
38456 instead of gfdl.texi
38458 * xgnatug.adb, ug_words: New files.
38460 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
38461 gnat_rm and gnat-style manuals.
38463 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
38465 * gigi.h (incomplete_type_error): Remove.
38466 * utils.c (incomplete_type_error): Remove.
38468 2002-04-16 Mark Mitchell <mark@codesourcery.com>
38470 * trans.c (tree_transform): Add has_scope argument to
38471 expand_start_stmt_expr.
38473 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38475 * gigi.h (truthvalue_conversion): Rename.
38476 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38477 * trans.c (tree_transform): Update.
38478 * utils2.c (truthvalue_conversion): Rename, update.
38479 (build_binary_op, build_unary_op): Update.
38481 2002-04-04 Laurent Guerby <guerby@acm.org>
38483 * make.adb: Implement -margs, remove restriction about file name placement.
38484 * makeusg.adb: Documentation update.
38485 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38486 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38488 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38490 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38491 (builtin_function): Similarly.
38493 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38495 * decl.c (gnat_to_gnu_entity): Update.
38496 * gigi.h (mark_addressable): Rename.
38497 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38498 * trans.c (tree_transform): Update.
38499 * utils.c (create_var_decl): Update.
38500 * util2.c (build_binary_op, build_unary_op,
38501 fill_vms_descriptor): Update.
38502 (mark_addressable): Rename, update.
38504 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38506 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38508 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38509 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38510 * trans.c (tree_transform, convert_with_check): Update.
38511 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38514 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
38516 * gigi.h (finish_incomplete_decl): Rename.
38517 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38518 * utils.c (gnat_init_decl_processing): Don't set hook.
38519 (finish_incomplete_decl): Rename.
38521 2002-03-29 Andreas Schwab <schwab@suse.de>
38523 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38526 2001-03-28 Robert Dewar <dewar@gnat.com>
38529 (Remove_Checks): New procedure
38532 (Remove_Checks): New procedure
38535 Use new Duplicate_Subexpr functions
38536 (Duplicate_Subexpr_No_Checks): New procedure
38537 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38538 (Duplicate_Subexpr): Restore original form (checks duplicated)
38539 (Duplicate_Subexpr): Call Remove_Checks
38542 (Duplicate_Subexpr_No_Checks): New procedure
38543 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38544 Add 2002 to copyright notice
38546 * sem_util.adb: Use new Duplicate_Subexpr functions
38549 (Eval_Indexed_Component): This is the place to call
38550 Constant_Array_Ref and to replace the value. We simply merge
38551 the code of this function in here, since it is now no longer
38552 used elsewhere. This fixes the problem of the back end not
38553 realizing we were clever enough to see that this was
38555 (Expr_Val): Remove call to Constant_Array_Ref
38556 (Expr_Rep_Val): Remove call to Constant_Array_Ref
38558 (Constant_Array_Ref): Deal with string literals (patch
38559 suggested by Zack Weinberg on the gcc list)
38561 2001-03-28 Ed Schonberg <schonber@gnat.com>
38563 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38564 Duplicate_Subexpr_Move_Checks.
38566 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38567 Duplicate_Subexpr_Move_Checks.
38569 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38570 value of array exists before retrieving it (it may a private
38571 protected component in a function).
38573 2002-03-28 Geert Bosch <bosch@gnat.com>
38575 * prj-pp.adb : New file.
38577 * prj-pp.ads : New file.
38579 2002-03-28 Andreas Jaeger <aj@suse.de>
38581 * Makefile.in (stamp-sdefault): Fix path for Makefile.
38583 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
38585 * misc.c (gnat_expand_expr): Move prototype.
38587 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38589 * misc.c (insert_default_attributes): Remove.
38591 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38593 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38594 (gnat_init): Don't set hook.
38595 (gnat_expand_expr): Fix prototype.
38597 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38599 * misc.c (ggc_p): Remove.
38601 2002-03-27 Geert Bosch <bosch@gnat.com>
38603 * prj-makr.ads, prj-makr.adb : New files.
38605 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
38607 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38608 (lang_mark_tree): Make static, rename.
38610 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
38612 * misc.c (maybe_build_cleanup): Remove.
38614 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
38616 * gigi.h (yyparse): Remove.
38618 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
38620 From Ben Brosgol <brosgol@gnat.com>
38621 * gnat_rm.texi: Sync with ACT version.
38623 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
38625 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38626 (gnat_init): Remove old hook.
38628 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
38630 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38631 (yyparse): Rename gnat_parse_file.
38633 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
38635 Delete all lines containing "$Revision:".
38636 * xeinfo.adb: Don't look for revision numbers.
38637 * xnmake.adb: Likewise.
38638 * xsinfo.adb: Likewise.
38639 * xsnames.adb: Likewise.
38640 * xtreeprs.adb: Likewise.
38642 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38644 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38645 gnat_tree_code_name): Delete.
38646 (tree_code_type, tree_code_length, tree_code_name): Define.
38647 (gnat_init): Don't try to copy into the various tree_code
38650 2002-03-11 Richard Henderson <rth@redhat.com>
38652 * Makefile.in (.NOTPARALLEL): Add fake tag.
38654 2002-03-07 Geert Bosch <bosch@gnat.com>
38656 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38657 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38658 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38659 switch-m.adb, switch-m.ads : New files.
38661 2002-03-07 Geert Bosch <bosch@gnat.com>
38663 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38664 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38665 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38666 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38667 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38668 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38669 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38670 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38671 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38672 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38673 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38674 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38675 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38676 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38677 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38678 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38679 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38680 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38681 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38682 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38683 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38684 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38685 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38686 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38687 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38688 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38689 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38690 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38691 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38692 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38693 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38694 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38695 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38696 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38697 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38698 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38699 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38700 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38701 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38702 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38703 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38704 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38705 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38706 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38707 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38708 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38709 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38710 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38711 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38712 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38713 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38714 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38715 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38716 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38717 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38718 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38719 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38720 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38721 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38722 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38723 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38724 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38725 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38726 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38727 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38728 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38729 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38730 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38731 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38732 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38733 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38734 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38735 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38736 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38737 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38738 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38739 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38740 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38741 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38742 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38743 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38744 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38745 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38746 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38747 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38748 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38749 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38750 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38751 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38752 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38753 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38754 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38755 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38756 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38757 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38758 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38759 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38761 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38762 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38763 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38764 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38766 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38767 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38769 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38770 to mdll-fil.ad[bs] and mdll-util.ad[bs]
38772 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38773 from mdllfile.ad[bs] and mdlltool.ad[bs]
38775 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38777 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38778 lieu of explicit sizeof/sizeof.
38780 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
38782 * misc.c (copy_lang_decl): Remove.
38784 2002-02-27 Zack Weinberg <zack@codesourcery.com>
38786 * misc.c: Delete traditional-mode-related code copied from the
38787 C front end but not used, or used only to permit the compiler
38790 2002-02-07 Richard Henderson <rth@redhat.com>
38792 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38793 * adaint.h (__gnat_to_gm_time): Update prototype.
38795 2002-01-30 Richard Henderson <rth@redhat.com>
38797 * trans.c (tree_transform) [N_Loop_Statement]: Use
38798 expand_exit_loop_top_cond.
38800 2001-12-23 Richard Henderson <rth@redhat.com>
38802 * utils.c (end_subprog_body): Push GC context around
38803 rest_of_compilation for nested functions.
38805 2001-12-23 Richard Henderson <rth@redhat.com>
38807 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38809 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
38811 * gnat-style.texi (Declarations and Types): Remove ancient style
38812 rule which was mandated by code generation issues.
38814 * gnat-style.texi (header): Add @dircategory, @direntry.
38815 (title page): Remove date.
38816 (general) Add @./@: where approriate, and two spaces after the
38817 full stop at the end of a sentence. Use @samp markup when
38818 referring concrete lexical entities (keywords, attribute names
38819 etc.), and @syntax for ARM grammar elements. Use @r for English
38820 text in comments. Use @emph for emphasis. Change "if-statements"
38821 etc. to "if statements" (without @samp). Break long lines. Make
38822 casing of section names consistent.
38823 (Identifiers): Use @samp markup for variable names.
38824 (Comments): Use @samp markup for comment characters. Line-end
38825 comments may follow any Ada code, not just statements. Fix
38826 misspelling of "Integer" as "integer".
38827 (Loop statements): Do not use variable name "I", use "J".
38828 (Subprogram Declarations): Document alignment.
38829 (Subprogram Bodies, Block statements): Document empty line before
38832 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
38834 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38835 function approach did not work well because of a side effect (the
38836 function call could reallocate the table which was being indexed
38837 using its result). Fixes ada/4851.
38839 2001-12-19 Robert Dewar <dewar@gnat.com>
38841 * bindgen.adb: Minor reformatting
38843 * cstand.adb: Minor reformatting
38845 * fmap.adb: Minor reformatting
38846 Change name from Add for Add_To_File_Map (Add is much too generic)
38847 Change Path_Name_Of to Mapped_Path_Name
38848 Change File_Name_Of to Mapped_File_Name
38849 Fix copyright dates in header
38852 Change name from Add for Add_To_File_Map (Add is much too generic)
38853 Change Path_Name_Of to Mapped_Path_Name
38854 Change File_Name_Of to Mapped_File_Name
38855 Fix copyright dates in header
38857 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
38858 Add use clause for Fmap.
38860 * make.adb: Minor reformatting
38862 * osint.adb: Minor reformatting. Change of names in Fmap.
38863 Add use clause for Fmap.
38865 * prj-env.adb: Minor reformatting
38867 * prj-env.ads: Minor reformatting
38869 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
38870 error found (there were odd exceptions to this general rule in
38871 -gnatec/-gnatem processing)
38873 2001-12-19 Olivier Hainque <hainque@gnat.com>
38875 * raise.c (__gnat_eh_personality): Exception handling personality
38876 routine for Ada. Still in rough state, inspired from the C++ version
38877 and still containing a bunch of debugging artifacts.
38878 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38879 inspired from the C++ library.
38881 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38882 exception handling integration.
38884 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38886 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38887 (HIE_SOURCES): Add s-secsta.ad{s,b}.
38888 (HIE_OBJS): Add s-fat*.o
38889 (RAVEN_SOURCES): Remove files that are no longer required. Add
38890 interrupt handling files.
38891 (RAVEN_MOD): Removed, no longer needed.
38893 2001-12-19 Robert Dewar <dewar@gnat.com>
38895 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38896 Add 2001 to copyright date
38898 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38899 need to force universal inlining for these cases.
38901 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38903 * s-taprob.adb: Minor clean ups so that this unit can be used in
38906 * exp_ch7.adb: Allow use of secondary stack in HI mode.
38907 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38909 2001-12-19 Vincent Celier <celier@gnat.com>
38911 * prj-tree.ads (Project_Node_Record): Add comments for components
38912 Pkg_Id and Case_Insensitive.
38914 2001-12-19 Pascal Obry <obry@gnat.com>
38916 * g-socket.adb: Minor reformatting. Found while reading code.
38918 2001-12-19 Robert Dewar <dewar@gnat.com>
38920 * prj-tree.ads: Minor reformatting
38922 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
38924 * config-lang.in (diff_excludes): Remove.
38926 2001-12-17 Ed Schonberg <schonber@gnat.com>
38928 * sem_res.adb (Resolve_Selected_Component): do not generate a
38929 discriminant check if the selected component is a component of
38930 the argument of an initialization procedure.
38932 * trans.c (tree_transform, case of arithmetic operators): If result
38933 type is private, the gnu_type is the base type of the full view,
38934 given that the full view itself may be a subtype.
38936 2001-12-17 Robert Dewar <dewar@gnat.com>
38938 * sem_res.adb: Minor reformatting
38940 * trans.c (tree_transform, case N_Real_Literal): Add missing third
38941 parameter in call to Machine (unknown horrible effects from this
38944 * urealp.h: Add definition of Round_Even for call to Machine
38945 Add third parameter for Machine
38947 2001-12-17 Ed Schonberg <schonber@gnat.com>
38949 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38950 predefined units in No_Run_Time mode.
38952 2001-12-17 Richard Kenner <kenner@gnat.com>
38954 * misc.c (insn-codes.h): Now include.
38956 2001-12-17 Olivier Hainque <hainque@gnat.com>
38958 * a-except.adb: Preparation work for future integration of the GCC 3
38959 exception handling mechanism
38960 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38961 to factorize previous code sequences and make them externally callable,
38962 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38963 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38964 Use the new notification routines.
38966 2001-12-17 Emmanuel Briot <briot@gnat.com>
38968 * prj-tree.ads (First_Choice_Of): Document the when others case
38970 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38972 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38973 HI-E mode, in order to support Ravenscar profile properly.
38975 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38976 mode on 32 bits targets.
38978 2001-12-17 Vincent Celier <celier@gnat.com>
38980 * fmap.adb: Initial version.
38982 * fmap.ads: Initial version.
38984 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38985 If search is successfully done, add to mapping.
38987 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38990 (Gnatmake): Add new local variable Mapping_File_Name.
38991 Create mapping file when using project file(s).
38992 Delete mapping file before exiting.
38994 * opt.ads (Mapping_File_Name): New variable
38996 * osint.adb (Find_File): Use path name found in mapping, if any.
38998 * prj-env.adb (Create_Mapping_File): New procedure
39000 * prj-env.ads (Create_Mapping_File): New procedure.
39002 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
39005 * usage.adb: Add entry for new switch -gnatem.
39007 * Makefile.in: Add dependencies for fmap.o.
39009 2001-12-17 Ed Schonberg <schonber@gnat.com>
39011 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
39012 is a package instantiation rewritten as a package body.
39013 (Install_Withed_Unit): Undo previous change, now redundant.
39015 2001-12-17 Gary Dismuke <dismukes@gnat.com>
39018 (Compute_Length): Move conversion to Unsigned to callers.
39019 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39020 Compute_Length and Determine_Range.
39021 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39022 Compute_Length and Determine_Range.
39023 Above changes fix problem with length computation for supernull arrays
39024 where Max (Len, 0) wasn't getting applied due to the Unsigned
39025 conversion used by Compute_Length.
39027 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39030 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39031 System.Secondary_Stack.
39032 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39034 Remove unused entity RE_Exception_Data.
39036 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
39038 * rident.ads (No_Secondary_Stack): New restriction.
39040 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39042 * gnat_rm.texi: Fix minor typos. Found while reading the section
39043 regarding "Bit_Order Clauses" that was sent to a customer.
39044 Very interesting documentation!
39046 2001-12-17 Robert Dewar <dewar@gnat.com>
39048 * sem_case.adb (Choice_Image): Avoid creating improper character
39049 literal names by using the routine Set_Character_Literal_Name. This
39050 fixes bombs in certain error message cases.
39052 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39054 * a-reatim.adb: Minor reformatting.
39056 2001-12-17 Ed Schonberg <schonber@gnat.com>
39058 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39059 case where the formal is an extension of another formal in the current
39060 unit or in a parent generic unit.
39062 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39064 * s-tposen.adb: Update comments. Minor reformatting.
39065 Minor code clean up.
39067 * s-tarest.adb: Update comments. Minor code reorganization.
39069 2001-12-17 Gary Dismukes <dismukes@gnat.com>
39071 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39074 2001-12-17 Robert Dewa <dewar@gnat.com>
39076 * exp_attr.adb: Minor reformatting
39078 2001-12-17 Ed Schonberg <schonber@gnat.com>
39080 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39081 derivations nested within a child unit: verify that the parent
39082 type is declared in an outer scope.
39084 2001-12-17 Robert Dewar <dewar@gnat.com>
39086 * sem_ch12.adb: Minor reformatting
39088 2001-12-17 Ed Schonberg <schonber@gnat.com>
39090 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39091 warning if current unit is a predefined one, from which bodies may
39094 2001-12-17 Robert Dewar <dewar@gnat.com>
39096 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39097 Fix header format. Add 2001 to copyright date.
39099 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39100 which caused CE during compilation if checks were enabled.
39102 2001-12-17 Vincent Celier <celier@gnat.com>
39105 (Switches_Of): New function
39106 (Test_If_Relative_Path): New procedure
39107 (Add_Switches): Use new function Switches_Of
39108 (Collect_Arguments_And_Compile): Use new function Switches_Of.
39109 When using a project file, test if there are any relative
39110 search path. Fail if there are any.
39111 (Gnatmake): Only add switches for the primary directory when not using
39112 a project file. When using a project file, change directory to the
39113 object directory of the main project file. When using a project file,
39114 test if there are any relative search path. Fail if there are any.
39115 When using a project file, fail if specified executable is relative
39116 path with directory information, and prepend executable, if not
39117 specified as an absolute path, with the exec directory. Make sure
39118 that only one -o switch is transmitted to the linker.
39120 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39123 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39124 when using a non standard naming scheme.
39125 (Check_Ada_Naming_Scheme): Make sure that error messages
39126 do not raise exceptions.
39127 (Is_Illegal_Append): Return True if there is no dot in the suffix.
39128 (Language_Independent_Check): Check the exec directory.
39130 * prj.adb (Project_Empty): Add new component Exec_Directory
39133 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39134 (Project_Data): Add component Exec_Directory
39136 * snames.adb: Updated to match snames.ads revision 1.215
39138 * snames.ads: Added Exec_Dir
39140 2001-12-17 Robert Dewar <dewar@gnat.com>
39142 * make.adb: Minor reformatting
39144 * prj-nmsc.adb: Minor reformatting
39146 * snames.adb: Updated to match snames.ads
39148 * snames.ads: Alphebetize entries for project file
39150 2001-12-17 Ed Schonberg <schonber@gnat.com>
39152 * trans.c (process_freeze_entity): Do nothing if the entity is a
39153 subprogram that was already elaborated.
39155 2001-12-17 Richard Kenner <kenner@gnat.com>
39157 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39158 and Esize if object is referenced via pointer.
39160 2001-12-17 Ed Schonberg <schonber@gnat.com>
39162 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39163 is discrete before analyzing choices.
39165 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39167 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39168 containing the name of the Ada Main Program. This string is mainly
39169 intended for the debugger.
39170 (Gen_Output_File_C): Do the equivalent change when generating a C file.
39172 2001-12-17 Robert Dewar <dewar@gnat.com>
39174 * ali.adb: Set new Dummy_Entry field in dependency entry
39176 * ali.ads: Add Dummy_Entry field to source dependency table
39178 * bcheck.adb (Check_Consistency): Ignore dummy D lines
39180 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39182 * lib-writ.ads: Document dummy D lines for missing files.
39184 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39186 2001-12-17 Robert Dewar <dewar@gnat.com>
39188 * ali.adb: Type reference does not reset current file.
39190 * ali.adb: Recognize and scan renaming reference
39192 * ali.ads: Add spec for storing renaming references.
39194 * lib-xref.ads: Add documentation for handling of renaming references
39196 * lib-xref.adb: Implement output of renaming reference.
39199 (Determine_Range): Document local variables
39200 (Determine_Range): Make sure Hbound is initialized. It looks as though
39201 there could be a real problem here with an uninitialized reference
39202 to Hbound, but no actual example of failure has been found.
39204 2001-12-17 Laurent Pautet <pautet@gnat.com>
39207 Fix comment of Shutdown_Socket and Close_Socket. These functions
39208 should not fail silently because if they are called twice, this
39209 probably means that there is a race condition in the user program.
39210 Anyway, this behaviour is consistent with the rest of this unit.
39211 When an error occurs, an exception is raised with the error message
39212 as exception message.
39214 2001-12-17 Robert Dewar <dewar@gnat.com>
39216 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39217 that it happens before modification of Sloc values for -gnatD.
39219 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39220 so that it happens before modification of Sloc values for -gnatD.
39222 * switch.adb: Minor reformatting
39224 2001-12-15 Richard Henderson <rth@redhat.com>
39226 * sem_ch7.adb: Wrap comment.
39228 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39230 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39231 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39232 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39233 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39234 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39235 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39236 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39237 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39238 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39239 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39240 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39241 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39242 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39243 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39244 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39245 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39246 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39247 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39248 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39249 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39250 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39251 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39252 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39253 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39256 2001-12-14 Vincent Celier <celier@gnat.com>
39258 * osint.adb(Create_Debug_File): When an object file is specified,
39259 put the .dg file in the same directory as the object file.
39261 2001-12-14 Robert Dewar <dewar@gnat.com>
39263 * osint.adb: Minor reformatting
39265 * lib-xref.adb (Output_Instantiation): New procedure to generate
39266 instantiation references.
39268 * lib-xref.ads: Add documentation of handling of generic references.
39270 * ali.adb (Read_Instantiation_Ref): New procedure to read
39271 instantiation references
39273 * ali.ads: Add spec for storing instantiation references
39275 * bindusg.adb: Minor reformatting
39277 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39279 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39281 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39283 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39287 Add 2001 to copyright date
39288 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39290 2001-12-14 Matt Gingell <gingell@gnat.com>
39292 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39295 2001-12-14 Richard Kenner <kenner@gnat.com>
39297 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39298 if operand is CONSTRUCTOR.
39300 2001-12-14 Ed Schonberg <schonber@gnat.com>
39302 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39303 before emiting check on right-hand side, so that exception information
39306 2001-12-14 Richard Kenner <kenner@gnat.com>
39308 * utils.c (create_var_decl): Throw away initializing expression
39309 if just annotating types and non-constant.
39311 2001-12-14 Vincent Celier <celier@gnat.com>
39313 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39316 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39318 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39320 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39322 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39324 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39326 * ChangeLog: Remove piece of diff output.
39328 2001-12-14 Geert Bosch <bosch@gnat.com>
39330 * config-lang.in: Update copyright notice
39332 * layout.adb: Remove commented out code.
39334 * mdllfile.ads: Update copyright notice. Fix header format.
39336 * sem_case.ads: Likewise.
39338 * sem_ch3.adb: Minor reformatting.
39340 2001-12-12 Geert Bosch <bosch@gnat.com>
39342 * freeze.ads: Update copyright date.
39344 * g-comlin.ads: Minor reformatting.
39346 * gnat-style.texi: Fix typo.
39348 2001-12-12 Geert Bosch <bosch@gnat.com>
39350 * einfo.h: Regenerate.
39352 2001-12-12 Ed Schonberg <schonber@gnat.com>
39354 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39355 on known node types, rather than untyped fields. Further cleanups.
39357 2001-12-12 Robert Dewar <dewar@gnat.com>
39360 (Save_Entity_Descendant): Minor comment update.
39361 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39362 of an N_Attribute_Reference node. As per note below, this does not
39363 eliminate need for Associated_Node in attribute ref nodes.
39364 (Associated_Node): Documentation explicitly mentions attribute
39365 reference nodes, since this field is used in such nodes.
39367 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39369 2001-12-12 Robert Dewar <dewar@gnat.com>
39371 * s-stalib.adb: Add more comments on with statements being needed
39373 * par-ch12.adb: Minor reformatting
39375 * prj-dect.ads: Fix copyright header
39377 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39378 inputs fit in 32 bits, but the result still overflows.
39380 * s-fatgen.ads: Minor comment improvement
39382 2001-12-12 Ed Schonberg <schonber@gnat.com>
39384 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39385 formal derived type, look for an inherited component from the full
39386 view of the parent, if any.
39388 2001-12-12 Robert Dewar <dewar@gnat.com>
39390 * checks.ads (Apply_Alignment_Check): New procedure.
39392 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39393 ensure that the alignment of objects with address clauses is
39394 appropriate, and raise PE if not.
39396 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39397 Exp_Pakd.Known_Aligned_Enough
39399 * mdllfile.ads: Minor reformatting
39401 * mlib-fil.ads: Minor reformatting
39403 2001-12-12 Ed Schonberg <schonber@gnat.com>
39405 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39406 fix to any component reference if enclosing record has non-standard
39409 2001-12-12 Vincent Celier <celier@gnat.com>
39411 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39414 2001-12-12 Ed Schonberg <schonber@gnat.com>
39416 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39419 2001-12-12 Robert Dewar <dewar@gnat.com>
39421 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39423 2001-12-12 Emmanuel Briot <briot@gnat.com>
39425 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39426 and it adds dependencies to system.io.
39428 2001-12-12 Pascal Obry <obry@gnat.com>
39430 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39433 2001-12-11 Ed Schonberg <schonber@gnat.com>
39435 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39436 that is the parent of other generics, the instance body replaces the
39437 instance node. Retrieve the instance of the spec, which is the one
39438 that is visible in clients and within the body.
39440 2001-12-11 Vincent Celier <celier@gnat.com>
39442 * gnatmain.adb: Initial version.
39444 * gnatmain.ads: Initial version.
39446 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39448 * snames.adb: Updated to match snames.ads.
39450 * snames.ads: Added Gnatstub.
39452 2001-12-11 Vincent Celier <celier@gnat.com>
39454 * prj-attr.adb (Initialization_Data): Change name from
39455 Initialisation_Data.
39457 2001-12-11 Emmanuel Briot <briot@gnat.com>
39459 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39460 + and * applied to backslashed expressions like \r.
39462 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
39464 * g-os_lib.ads: String_List type added, Argument_List type is now
39465 subtype of String_List.
39467 2001-12-11 Robert Dewar <dewar@gnat.com>
39469 * g-os_lib.ads: Change copyright to FSF
39470 Add comments for String_List type
39472 2001-12-11 Vincent Celier <celier@gnat.com>
39474 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39475 string to the buffer).
39477 2001-12-11 Ed Schonberg <schonber@gnat.com>
39479 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39482 * sem_attr.adb: Simplify previous fix for Address.
39483 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39484 to avoid anomalies where the bound of the type appears to raise
39487 2001-12-11 Robert Dewar <dewar@gnat.com>
39489 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39492 2001-12-11 Ed Schonber <schonber@gnat.com>
39494 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39495 renamed unit before checking for recursive instantiations.
39497 2001-12-11 Emmanuel Briot <briot@gnat.com>
39499 * prj.ads: Add comments for some of the fields.
39501 2001-12-11 Robert Dewar <dewar@gnat.com>
39503 * lib-xref.adb (Output_Refs): Don't output type references outside
39504 the main unit if they are not otherwise referenced.
39506 2001-12-11 Ed Schonberg <schonber@gnat.com>
39508 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39509 code and diagnose additional illegal uses
39511 * sem_util.adb (Is_Object_Reference): An indexed component is an
39512 object only if the prefix is.
39514 2001-12-11 Vincent Celier <celier@gnat.com>
39516 * g-diopit.adb: Initial version.
39518 * g-diopit.ads: Initial version.
39521 (Expand_Path): Avoid use of Unbounded_String
39522 (Find, Wildcard_Iterator): Moved to child package Iteration
39524 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39526 2001-12-11 Robert Dewar <dewar@gnat.com>
39528 * sem_attr.adb: Minor reformatting
39530 2001-12-11 Ed Schonberg <schonber@gnat.com>
39532 * sem_ch3.adb: Clarify some ???.
39534 2001-12-11 Robert Dewar <dewar@gnat.com>
39536 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39537 Exp_Pakd.Known_Aligned_Enough
39539 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39540 version is moved to Exp_Ch13.
39542 2001-12-11 Robert Dewar <dewar@gnat.com>
39544 * einfo.ads: Minor reformatting
39546 * exp_ch5.adb: Add comment for previous.change
39548 * ali.adb: New interface for extended typeref stuff.
39550 * ali.ads: New interface for typeref stuff.
39552 * checks.adb (Apply_Alignment_Check): New procedure.
39554 * debug.adb: Add -gnatdM for modified ALI output
39556 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39558 * lib-xref.adb: Extend generation of <..> notation to cover
39559 subtype/object types. Note that this is a complete rewrite,
39560 getting rid of the very nasty quadratic algorithm previously
39561 used for derived type output.
39563 * lib-xref.ads: Extend description of <..> notation to cover
39564 subtype/object types. Uses {..} for these other cases.
39565 Also use (..) for pointer types.
39567 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39569 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
39570 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39572 2001-12-11 Vincent Celier <celier@gnat.com>
39575 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39576 Changed /BIND_ONLY to /ACTIONS=BIND
39577 Changed /LINK_ONLY to /ACTIONS=LINK
39579 2001-12-11 Ed Schonberg <schonber@gnat.com>
39581 * sem_ch8.adb (Find_Selected_Component): improved search for a
39582 candidate package in case of error.
39584 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39585 chain back on scope stack before reinstalling use clauses.
39587 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39588 is enabled, do not kill the code for the condition, to preserve
39591 2001-12-11 Robert Dewar <dewar@gnat.com>
39593 * checks.adb (Insert_Valid_Check): Apply validity check to expression
39594 of conversion, not to result of conversion.
39596 2001-12-11 Ed Schonberg <schonber@gnat.com>
39598 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39599 before freezing parent. If the declarations are mutually recursive,
39600 an access to the current record type may be frozen before the
39601 derivation is complete.
39603 2001-12-05 Vincent Celier <celier@gnat.com>
39605 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39606 -c /COMPILE_ONLY, -l /LINK_ONLY
39609 (Bind_Only): New Flag
39610 (Link_Only): New flag
39612 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39615 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39618 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39619 (Gnatmake): Set the step flags. Only perform a step if the
39620 corresponding step flag is True.
39621 (Scan_Make_Arg): Reset the bind and link step flags when -u
39622 or -gnatc has been specified.
39624 2001-12-05 Ed Schonberg <schonber@gnat.com>
39626 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39627 get bounds from right operand.
39629 * sem_eval.adb: Minor reformatting
39631 * exp_util.adb (Make_Literal_Range): use bound of literal rather
39632 than Index'First, its lower bound may be different from 1.
39634 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39637 2001-12-05 Vincent Celier <celier@gnat.com>
39639 * prj-nmsc.adb Minor reformatting
39641 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39642 set and libraries are not supported.
39644 2001-12-05 Ed Schonberg <schonber@gnat.com>
39646 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39647 private view explicitly, so the back-end can treat as a global
39650 2001-12-05 Ed Schonberg <schonber@gnat.com>
39652 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39653 unit, always replace instance node with new body, for ASIS use.
39655 2001-12-05 Vincent Celier <celier@gnat.com>
39657 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39658 libraries are not supported and both attributes Library_Name and
39659 Library_Dir are specified.
39661 * prj-proc.adb (Expression): Set location of Result to location of
39664 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39665 (prj-nmsc is now importing MLib.Tgt)
39667 * prj-proc.adb: Put the change indicated above that was forgotten.
39669 2001-12-05 Robert Dewar <dewar@gnat.com>
39671 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39673 2001-12-05 Ed Schonberg <schonber@gnat.com>
39675 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39676 constraint, introduce explicit subtype declaration and derive from it.
39678 * sem_ch3.adb: Minor reformatting
39680 2001-12-05 Robert Dewar <dewar@gnat.com>
39682 * checks.adb (Determine_Range): Increase cache size for checks.
39685 * exp_ch6.adb: Minor reformatting
39686 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39687 a parameter whose root type is System.Address, since treating such
39688 subprograms as pure in the code generator is almost surely a mistake
39689 that will lead to unexpected results.
39691 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39692 change handling of conversions.
39694 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39696 2001-12-05 Ed Schonberg <schonber@gnat.com>
39698 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39699 aggregate with static wrong size, attach generated Raise node to
39702 2001-12-05 Robert Dewar <dewar@gnat.com>
39704 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39705 Fixes compilation abandoned bomb in B24009B.
39707 2001-12-05 Ed Schonberg <schonber@gnat.com>
39710 Document use of Associated_Node on Selected_Components.
39711 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39712 to clarify use of untyped descendant fields.
39714 2001-12-05 Robert Dewar <dewar@gnat.com>
39716 * prj-dect.ads: Add ??? comment
39717 Add 2001 to copyright notice (was not done in after all)
39719 * prj-part.adb: Minor reformatting. Reword one awkward error message.
39721 * prj.ads: Minor reformatting throughout, and add some ??? comments
39723 * snames.ads: Minor reformatting
39725 2001-12-05 Geert Bosch <bosch@gnat.com>
39727 * snames.adb: Autoupdate
39729 2001-12-05 Vincent Celier <celier@gnat.com>
39731 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39733 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39735 * prj-env.adb: Minor comment changes (modifying -> extends).
39737 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39739 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39742 * prj.adb (Initialize): Change Modifying to Extends.
39744 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39746 * prj.ads: Minor comment change (Modifying -> extending).
39748 * snames.ads: Change modifying to extends.
39750 2001-12-05 Robert Dewar <dewar@gnat.com>
39752 * sem_warn.adb: Remove stuff for conditionals, we are not going to
39755 * sem_warn.ads: Remove stuff for conditionals, we are not going to
39756 do this after all. Add 2001 to copyright notice
39758 2001-12-04 Geert Bosch <bosch@gnat.com>
39760 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
39762 2001-12-04 Robert Dewar <dewar@gnat.com>
39764 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39765 location if we already have errors. Stops some cases of cascaded
39768 * errout.adb: Improve comment.
39770 2001-12-04 Robert Dewar <dewar@gnat.com>
39773 (Analyze_Formal_Type_Definition): Defend against Error.
39774 (Analyze_Formal_Subprogram): Defend against Error.
39776 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39777 remove following semicolon if present. Removes cascaded error.
39779 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39782 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39783 exceptions equals 0.
39784 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39785 Fixes PIWG E tests (which have to be run with -gnatL).
39787 2001-12-04 Robert Dewar <dewar@gnat.com>
39789 * einfo.ads: Minor reformatting
39791 2001-12-04 Ed Schonberg <schonber@gnat.com>
39793 * einfo.ads: Block_Node points to the identifier of the block, not to
39794 the block node itself, to preserve the link when the block is
39795 rewritten, e.g. within an if-statement with a static condition.
39797 * inline.adb (Cleanup_Scopes): recover block statement from block
39798 entity using new meaning of Block_Node.
39800 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39801 identifier of block node, rather than to node itself.
39803 2001-12-04 Gary Dismukes <dismukes@gnat.com>
39806 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39807 (Discrimify): Go back to setting the Etypes of the selected component
39808 because the Vname component does not exist at this point and will
39809 fail name resolution. Also set Analyzed.
39810 Remove with and use of Sem_Res.
39812 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39814 * Makefile.in: (HIE_SOURCES): add s-fat*.
39816 2001-12-04 Robert Dewar <dewar@gnat.com>
39819 (Compile_Time_Known_Attribute): New procedure.
39820 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39821 proper range check.
39823 2001-12-04 Ed Schonberg <schonber@gnat.com>
39825 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39826 processing discriminants to diagnose illegal default values.
39828 2001-12-04 Ed Schonberg <schonber@gnat.com>
39830 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39831 access discriminant within a type extension that constrains its
39832 parent discriminants.
39834 2001-12-04 Ed Schonberg <schonber@gnat.com>
39836 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39837 is malformed, use instance of Any_Id to allow analysis to proceed.
39839 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39840 type definition is illegal.
39841 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39844 2001-12-04 Ed Schonberg <schonber@gnat.com>
39846 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39849 2001-12-04 Robert Dewar <dewar@gnat.com>
39851 * errout.adb: Minor reformatting
39853 2001-12-04 Robert Dewar <dewar@gnat.com>
39855 * exp_util.adb: Minor reformatting from last change
39857 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39858 which is a rewriting of an expression, traverse the original
39859 expression to remove warnings that may have been posted on it.
39861 2001-12-04 Ed Schonberg <schonber@gnat.com>
39863 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39864 record that has other packed components.
39866 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39868 * adaint.c: Minor cleanups.
39870 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39872 * adaint.c: Do not use utime.h on vxworks.
39874 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39876 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39877 more confusion than it solves.
39879 2001-12-04 Geert bosch <bosch@gnat.com>
39881 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39883 2001-12-04 Geert Bosch <bosch@gnat.com>
39885 * Makefile.in (update-sources): New target.
39886 For use by gcc_release script.
39888 2001-12-04 Ed Schonberg <schonber@gnat.com>
39890 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39891 a configuration pragma, it is now legal wherever a pragma can appear.
39893 2001-12-04 Zack Weinberg <zack@codesourcery.com>
39895 * Makefile.in: Don't set ALL. Delete @cross_defines@,
39896 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
39897 is now @CROSS@ -DIN_GCC; update comment.
39899 2001-12-04 Robert Dewar <dewar@gnat.com>
39901 * einfo.adb (Has_Pragma_Pure_Function): New flag.
39902 Fix problem that stopped ceinfo from working
39904 * einfo.ads (Has_Pragma_Pure_Function): New flag.
39906 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39908 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39911 (File_Time_Stamp): New procedure.
39912 (Preserve_Mode): New boolean.
39913 (Write_Unit): Pass time stamp.
39914 Implement -p switch (preserve time stamps).
39916 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39918 * gnatchop.adb: Do usage info for -p switch
39920 * adaint.h (__gnat_set_file_time_name): New function
39922 * adaint.c (__gnat_set_file_time_name): Implement
39924 * adaint.h: Fix typo
39926 2001-12-03 Robert Dewar <dewar@gnat.com>
39928 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39929 have Associated_Node.
39931 2001-12-03 Robert Dewar <dewar@gnat.com>
39933 * prj-proc.adb: Minor reformatting
39935 * make.adb: Minor reformatting
39937 2001-12-03 Geert Bosch <bosch@gnat.com>
39939 * make.adb: Minor reformatting.
39941 2001-12-03 Robert Dewar <dewar@gnat.com>
39943 * sem_ch12.adb: Minor reformatting
39945 2001-12-03 Ed Schonberg <schonber@gnat.com>
39947 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39948 push Standard on the stack before analyzing the instance body,
39949 in order to have a clean visibility environment.
39951 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39953 2001-12-03 Ed Schonberg <schonber@gnat.com>
39955 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39956 instantiation of a body that contains an inlined body.
39958 2001-12-03 Ed Schonberg <schonber@gnat.com>
39961 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39962 to prevent freezing within formal packages.
39963 (Freeze_Subprogram_Body): If body comes from another instance that
39964 appeared before its own body, place freeze node at end of current
39965 declarative part, to prevent a back-end crash.
39966 (Inline_Instance_Body): Handle properly a package instance within
39967 a subprogram instance that is a child unit.
39969 2001-12-01 Graham Stott <grahams@redhat.com>
39971 * Makefile.in (misc.o): Add missing $(srcdir) prefix
39972 and add optabs.h dependency.
39974 * misc.c: Include optabs.h
39975 (gnat_tree_code_type): Make static and const.
39976 (gnat_tree_code_length): Likewise.
39977 (gnat_tree_code_name): Likewise.
39978 (update_setjmp_buf): Obtain operands mode from insn_data.
39980 2001-11-29 Richard Henderson <rth@redhat.com>
39982 * init.c: Remove obsolete dwarf2 frame.h section.
39984 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
39986 * Make-lang.in (ada.generated-manpages): New dummy target.
39988 2001-11-29 Ed Schonberg <schonber@gnat.com>
39990 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39991 into Command, an array conversion is illegal here. Uncovered by
39994 2001-11-28 Geert Bosch <bosch@gnat.com>
39996 * init.c: Minor whitespace changes.
39998 2001-11-28 Doug Rupp <rupp@gnat.com>
40000 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
40003 2001-11-28 Zack Weinberg <zack@codesourcery.com>
40005 * misc.c (gnat_expand_constant): Move declaration above
40006 definition of lang_hooks.
40007 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40008 (gnat_init): lang_expand_constant no longer exists.
40010 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40011 always have vprintf.
40012 (gnat_init): Always call set_internal_error_function.
40014 2001-11-27 Andreas Jaeger <aj@suse.de>
40016 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40018 2001-11-27 Laurent Guerby <guerby@acm.org>
40020 * Makefile.in: Regenerate Ada dependencies.
40022 2001-11-26 Richard Henderson <rth@redhat.com>
40024 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40025 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40026 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40028 2001-11-25 Laurent Guerby <guerby@acm.org>
40030 * sysdep.c (rts_get_*): Fix style.
40032 2001-11-19 Laurent Guerby <guerby@acm.org>
40034 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40035 since it is of no apparent use and cause warnings.
40037 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40039 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40041 (gnat_init): Don't return NULL.
40042 (finish_parse): Remove.
40044 2001-11-17 Laurent Guerby <guerby@acm.org>
40046 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40047 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40048 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40049 * lang-spec.h: Add missing struct field to silence warnings.
40050 * sysdep.c (rts_get_*): Provide K&R prototype.
40051 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40052 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40053 * tracebak.c (__gnat_backtrace): Remove unused variable.
40054 * utils.c (end_subprog_body): Move to K&R style.
40056 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40058 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40060 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40062 * misc.c (gnat_init): Change prototype. Include the
40063 functionality of the old init_parse and init_decl_processing.
40064 (gnat_init_decl_processing): New prototype.
40065 (init_parse): Remove.
40066 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40068 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40070 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40071 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40072 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40073 set_yydebug): Remove.
40075 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40077 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40078 (struct lang_hooks): Constify.
40079 (language_string, lang_identify): Remove.
40080 * utils.c (init_decl_processing): Update.
40082 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
40084 * misc.c: Include langhooks-def.h.
40085 * Makefile.in: Update.
40087 2001-10-30 Robert Dewar <dewar@gnat.com>
40090 (Check_Identifier): Rewrite circuit to be compatible with use of letters
40091 in the upper half of ASCII.
40092 (Check_Identifier): Minor reformatting
40094 2001-10-30 Geert Bosch <bosch@gnat.com>
40096 * (Associated_Node, Set_Associated_Node): Do not check for
40099 2001-10-30 Robert Dewar <dewar@gnat.com>
40101 * a-reatim.ads: Minor reformatting
40103 2001-10-30 Robert Dewar <dewar@gnat.com>
40105 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40106 undocumented declarations.
40108 2001-10-30 Pascal Obry <obry@gnat.com>
40110 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40111 to the binder and linker.
40114 * mdll.ads: Fix layout. Update copyright notice.
40116 * mdll.adb: Fix layout. Update copyright notice.
40118 2001-10-30 Robert Dewar <dewar@gnat.com>
40120 * usage.adb: Minor fix to output for -gnaty.
40122 2001-10-30 Ed Schonberg <schonber@gnat.com>
40124 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40125 to accommodate all its possible values.
40127 * a-reatim.adb (Split): Special-case handling of Time_Span_First
40128 and of small absolute values of T.
40130 2001-10-30 Richard Kenner <kenner@gnat.com>
40132 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40133 set_mem_attributes since not needed and wrong if RESULT if a REG;
40134 fixes ACATS failures.
40136 2001-10-30 Geert Bosch <bosch@gnat.com>
40138 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40139 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40141 2001-10-30 Robert Dewar <dewar@gnat.com>
40143 * bindusg.adb: Undocument -f switch.
40145 * gnatcmd.adb: Remove /FULL_ELABORATION.
40147 * opt.ads (Force_RM_Elaboration_Order): Document that this is
40150 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40152 * gnatbind.adb: Minor update of warning msg.
40154 2001-10-30 Vincent Celier <celier@gnat.com>
40156 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40157 for project file switches (-P (/PROJECT_FILE=),
40158 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40161 2001-10-30 Geert Bosch <bosch@gnat.com>
40163 * decl.c: Minor whitespace fixes.
40165 2001-10-30 Richard Kenner <kenner@gnat.com>
40167 * utils2.c (build_allocator): Test for SIZE overflow in array case too
40169 2001-10-30 Geert Bosch <bosch@gnat.com>
40171 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40172 Found due to GCC 3.0 warning of using uninitialized value.
40175 (Get_Max_Size): Use variant record for tracking value/expression.
40176 Makes logic clearer and prevents warnings for uninitialized variables.
40177 (Layout_Array_Type): Use variant record for tracking value/expression.
40178 Makes logic clearer and prevents warnings for uninitialized variables.
40180 2001-10-30 Robert Dewar <dewar@gnat.com>
40182 * lib.adb: Minor reformatting
40184 * s-taprop.ads: Minor reformatting
40186 2001-10-29 Laurent Guerby <guerby@acm.org>
40189 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40191 (_gnat_error_handler): Make MSG const.
40193 2001-10-29 Richard Kenner <kenner@gnat.com>
40195 * sysdep.c: Fix localtime_r problem on LynxOS.
40196 Also remove #elif to avoid warnings.
40198 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40201 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40203 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
40205 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40206 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40207 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40208 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40209 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40210 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40211 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40212 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40213 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40214 types.ads, urealp.adb: Fix spelling errors.
40216 2001-10-27 Laurent Guerby <guerby@acm.org>
40218 * trans.c (gigi): Fix non determinism leading to bootstrap
40219 comparison failures for debugging information.
40221 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40223 * gnat_rm.texi: Use @./@: where appropriate.
40225 2001-10-26 Robert Dewar <dewar@gnat.com>
40227 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40229 2001-10-26 Richard Kenner <kenner@gnat.com>
40231 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40233 2001-10-26 Richard Kenner <kenner@gnat.com>
40235 * decl.c (validate_size): Modify message for bad size to avoid
40236 implication that compiler is modifying the size.
40238 2001-10-26 Robert Dewar <dewar@gnat.com>
40240 * prj-util.adb: Minor reformatting. Fix bad header format.
40242 2001-10-26 Robert Dewar <dewar@gnat.com>
40244 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40246 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40248 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40249 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40250 much more narrowly in places where needed. These are cleanups.
40252 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40254 * 5zosinte.ads (null_pthread): new constant.
40257 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40258 later that this field has been set.
40259 (Finalize_TCB): ditto.
40260 (Suspend_Task): Verify that the thread ID is not null before using it.
40261 (Resume_Task): ditto.
40264 (Resume_All_Tasks): Lock the tasks list before using it.
40265 (Suspend_All_Tasks): ditto.
40267 2001-10-26 Richard Kenner <kenner@gnat.com>
40269 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40270 Make constant variant of designated type for Is_Access_Constant.
40271 Call update_pointer_to with main variant.
40273 * trans.c (process_freeze_entity, process_type):
40274 Call update_pointer_to on main variant.
40276 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40277 If main variant, update all other variants.
40279 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40282 2001-10-26 Robert Dewar <dewar@gnat.com>
40284 * prj-util.adb: Minor reformatting
40286 2001-10-26 Robert Dewar <dewar@gnat.com>
40288 * prj-util.adb: Minor reformatting
40290 2001-10-26 Robert Dewar <dewar@gnat.com>
40292 * prj-attr.adb: Minor reformatting throughout
40294 2001-10-26 Robert Dewar <dewar@gnat.com>
40296 * prj-attr.ads: Minor reformatting
40297 Add ??? comment (this whole spec has almost no comments)
40299 2001-10-26 Vincent Celier <celier@gnat.com>
40301 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40302 ("//") that precede the drive letter on Interix.
40304 2001-10-26 Geert Bosch <bosch@gnat.com>
40306 * gnat_rm.texi: Add GNAT Reference Manual.
40308 2001-10-25 Robert Dewar <dewar@gnat.com>
40310 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40311 is Error. Similar change for other renaming cases.
40313 2001-10-25 Robert Dewar <dewar@gnat.com>
40315 * s-atacco.ads: Add pragma Inline_Always for functions.
40316 Fix header format. Add copyright 2001
40318 2001-10-25 Ed Schonberg <schonber@gnat.com>
40320 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40321 return Error rather than Empty so that analysis can proceed.
40323 2001-10-25 Ed Schonberg <schonber@gnat.com>
40325 * sem_util.adb (Enter_Name): better handling of cascaded error
40326 messages when a unit appears in its own context.
40328 2001-10-25 Ed Schonberg <schonber@gnat.com>
40330 * sem_util.adb (Defining_Entity): in case of error, attach created
40331 entity to specification, so that semantic analysis can proceed.
40333 2001-10-25 Robert Dewar <dewar@gnat.com>
40336 (Defining_Entity): Deal with Error.
40337 (Process_End_Label): Deal with bad end label for.
40339 2001-10-25 Ed Schonberg <schonber@gnat.com>
40341 * sem_elab.adb (Check_A_Call): refine message when call is in an
40342 instance but callee is not declared in the generic unit.
40344 2001-10-25 Ed Schonberg <schonber@gnat.com>
40346 * sem_elab.adb (Check_A_Call): check for renaming before finding the
40347 enclosing unit, which may already be different from the calling unit.
40349 2001-10-25 Geert Bosch <bosch@gnat.com>
40351 * 4gintnam.ads: fix header format.
40353 2001-10-25 Ed Schonberg <schonber@gnat.com>
40355 * sem_res.adb (Resolve_Call): if the call is actually an indexing
40356 operation on the result of a parameterless call, perform elaboration
40357 check after the node has been properly rewritten.
40359 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40360 inlined within the generic tree, the defining identifier is not a
40363 2001-10-25 Ed Schonberg <schonber@gnat.com>
40365 * sem_res.adb (Resolve): special-case resolution of Null in an
40366 instance or an inlined body to avoid view conflicts.
40368 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40369 compatibility by retrieving the access type of the generic copy.
40371 2001-10-25 Robert Dewar <dewar@gnat.com>
40374 (Analyze_Number_Declaration): Handle error expression.
40375 (Signed_Integer_Type_Declaration): Handle error bound.
40376 (Analyze_Subtype_Indication): Handle error range.
40378 * sem_util.adb (Get_Index_Bounds): Check for Error.
40380 2001-10-25 Robert Dewar <dewar@gnat.com>
40382 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40383 in no run time mode.
40385 2001-10-25 Pascal Obry <obry@gnat.com>
40387 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40388 mode case for ALLOC case.
40390 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40391 all platforms. Improvement of last change.
40393 2001-10-25 Robert Dewar <dewar@gnat.com>
40395 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40397 2001-10-25 Geert Bosch <bosch@gnat.com>
40399 * osint.adb (Is_Relative): Remove duplicate.
40401 2001-10-25 Pascal Obry <obry@gnat.com>
40403 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40404 pathnames in UNIX and DOS style with drive letter.
40405 (Is_Relative): new routine.
40407 * osint.adb: Minor reformatting
40409 * osint.adb (Is_Relative): implementation using
40410 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40412 2001-10-25 Pascal Obry <obry@gnat.com>
40414 * g-dirope.adb (Basename): correctly compute offset between the
40415 original Path and the translated one.
40417 * g-dirope.adb: (Base_Name): add some comments.
40419 2001-10-25 Robert Dewar <dewar@gnat.com>
40421 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40422 in HIE mode, avoids compilation abandoned message
40424 * exp_imgv.adb: Correct typo in previous change
40426 * exp_imgv.adb: Correct typo in previous change (not my day!)
40428 2001-10-25 Robert Dewar <dewar@gnat.com>
40430 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40432 2001-10-25 Pascal Obry <obry@gnat.com>
40434 * g-awk.ads: Move all pragma inlines next to the routine
40435 declarations. This is more uniform with other GNAT spec.
40437 2001-10-22 Geert Bosch <bosch@gnat.com>
40439 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40441 2001-10-19 Geert Bosch <bosch@gnat.com>
40443 * Makefile.in (tools, gnattools): Remove gnatmem.
40445 2001-10-17 Richard Henderson <rth@redhat.com>
40447 * Makefile.in (misc.o): Depend on langhooks.h.
40448 * misc.c: Include it.
40449 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40450 (LANG_HOOKS_DECODE_OPTION): New.
40451 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40453 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
40455 * trans.c (tree_transform): Adjust to recent change in
40456 expand_asm_operands to implement named asm operands.
40458 2001-10-11 Ed Schonberg <schonber@gnat.com>
40460 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40461 renaming of discriminant for mutable record type.
40463 2001-10-11 Robert Dewar <dewar@gnat.com>
40465 * validsw.adb: Properly save -gnatVn status.
40467 2001-10-11 Robert Dewar <dewar@gnat.com>
40469 * usage.adb: Add lines for V switch.
40471 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40472 (/VALIDITY_CHECKING).
40474 2001-10-11 Ed Schonberg <schonber@gnat.com>
40476 * sem_type.adb (Add_One_Interp): an operator for a type declared in
40477 an extension of System is known to be visible.
40479 2001-10-11 Ed Schonberg <schonber@gnat.com>
40481 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40482 properly. Fixes regression on ACATS C34005G.
40484 2001-10-11 Robert Dewar <dewar@gnat.com>
40486 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40487 loop in generic instance, since this is likely not very useful.
40489 2001-10-11 Robert Dewar <dewar@gnat.com>
40491 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40492 the error message for high integrity mode.
40494 * rtsfind.adb (RTE): Give message if we try to find an entity that
40495 is not available in high integrity mode.
40498 (OK_To_Use_In_HIE_Mode): New array.
40499 (RTE): May return Empty in high integrity mode.
40501 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40502 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40504 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40505 unit if not inlined always and in no runtime mode. Fixes problem
40506 caused by new Rtsfind changes.
40508 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40511 * rtsfind.adb (RTE): Make sure we do not try to load unit after
40512 giving message for entity not available in high integrity mode.
40514 2001-10-11 Pascal Obry <obry@gnat.com>
40516 * impunit.adb: Add GNAT.CRC32.
40518 2001-10-11 Ed Schonberg <schonber@gnat.com>
40520 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40521 properly the case where one universal operand in a non-static
40522 exponentiation of a real literal.
40524 2001-10-11 Ed Schonberg <schonber@gnat.com>
40526 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40527 clause, return the gobal finalization list, for lack of anthing else.
40529 2001-10-11 Ed Schonberg <schonber@gnat.com>
40531 * exp_ch7.adb (Make_Transient_Block): if statement is within
40532 exception handler, always use new transient scope to place Clean
40535 2001-10-11 Pascal Obry <obry@gnat.com>
40538 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40539 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40540 (GNATLS_RTL_OBJS): add g-crc32.o
40541 (GNATMAKE_RTL_OBJS): add g-crc32.o
40544 (CRC_Match): new function.
40545 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40546 instead of the previous simple checksum algorithm.
40547 (Time_Stamp_Mismatch): use CRC_Match for comparison.
40548 (Set_Source_Table): idem.
40551 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40552 instead of simple checksum.
40553 (CRC_Match): new function.
40554 (CRC_Error): new constant.
40556 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40557 a CRC now and not a simple checksum. A CRC uses lower-case hex
40558 letters, fixes ambiguity in parsing.
40560 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40561 is what this variable will store.
40563 * bcheck.adb: Change reference to chechsum in comments by CRC.
40564 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40565 rename All_Checksum_Match to All_CRC_Match. Change due to API
40566 renaming since now GNAT does not use a simple checksum but a
40567 CRC using GNAT.CRC32.
40569 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40570 now and not anymore a simple checksum.
40572 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40575 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40578 (Restore_Scan_State): rename Checksum to CRC.
40579 (Save_Scan_State): idem.
40583 (Checksum): rename to CRC.
40584 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40586 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40587 GNAT.CRC32). Update copyright notice.
40589 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40590 GNAT.CRC32). Update copyright notice.
40593 (Accumulate_Checksum): removed.
40594 (Update): new procedure. Add a wide-character into the CRC.
40597 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40598 (Load_File): fix initialization of S (change Source_Checksum to
40601 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40602 Source_CRC in S initialization.
40604 * sinput.adb (Source_Checksum): renamed to Source_CRC.
40606 * sinput.ads (Source_Checksum): renamed to Source_CRC.
40607 Update comments for the CRC.
40609 * types.adb (Hex): Use lowercase for the letter part.
40611 * types.ads (Get_Hex_String): Returns the hexadecimal representation
40612 for a word. This is currently used only for CRC. In previous version,
40613 the checksum was using a representation with all letter being
40614 upper-case. With the new implementation (using CRC) we do not remove
40615 the 32th bit of the CRC, so we can have an upper-case starting letter
40616 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40617 It is ambigous since the CRC was optional and could be followed by
40618 options like EB, EE. So now this routines uses lower-case letter for
40619 the hexadecimal representation. Strange enough only lower case letters
40620 where checked in Scan_ALI (even if this was not a possible case).
40622 * gnatvsn.ads (Library_Version): changed to 3.15a.
40624 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40627 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40630 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40631 Add 2001 to copyright notice
40632 (Accumulate_Checksum): Modify to use System.CRC32.
40634 * ali-util.ads: Redo changes of previous revision to continue to use
40635 the word Checksum. Add 2001 to copyright notice.
40637 * ali.adb: Undo some of previous changes, not needed.
40638 Keep the change for lower case letters in the checksum.
40640 * ali.ads: Undo previous change not needed.
40642 * bcheck.adb: Undo most of previous change, not needed.
40643 But do use Checksums_Match for checksum comparison.
40645 * gnatls.adb: Undo most of previous change, not needed.
40646 But do use Checksums_Match for comparing checksums.
40648 * lib-load.adb: Undo previous change, not needed.
40650 * lib-writ.adb: Undo previous change, not needed.
40652 * lib-writ.ads: Document that checksums use lower case,
40653 not upper case letters.
40655 * scans.adb: Undo previous change, not needed
40657 * scans.ads: Undo previous change, not needed.
40659 * scn-nlit.adb: Undo previous changes, not needed.
40661 * scn-slit.adb: Undo previous change, not needed. Fix header format.
40664 (Accumulate_Checksum): Use System.CRC32.
40665 (Initialize_Checksum): New procedure.
40666 Remove other changes of previous revision.
40668 * sinput-p.adb: Undo previous change, not needed.
40670 * sinput.adb: Undo previous change, not needed.
40672 * sinput-l.adb: Undo previous change, not needed.
40674 * sinput.ads: Undo previous change, not needed. Keep only comment
40675 on new checksum algorithm
40677 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40678 Also remove a-tags and a-stream from GNAT sources.
40680 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40682 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40684 2001-10-11 Geert Bosch <bosch@gnat.com>
40686 * einfo.h: Regenerate.
40688 * nmake.ads: Regenerate.
40690 * nmake.adb: Regenerate.
40692 * sinfo.h: Regenerate.
40694 * treeprs.adb: Regenerate.
40696 2001-10-10 Geert Bosch <bosch@gnat.com>
40698 * gnat-style.texi: New file describing coding guidelines for Ada.
40700 2001-10-10 Ed Schonberg <schonber@gnat.com>
40702 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40705 2001-10-10 Geert Bosch <bosch@gnat.com>
40707 * snames.ads: Add new names for project facility.
40709 * snames.adb: Update to reflect snames.ads changes.
40711 * snames.h: Update to reflect snames.ads changes.
40713 2001-10-10 Vincent Celier <celier@gnat.com>
40716 (Add_Switches): reflect the changes for the switches attributes
40717 Default_Switches indexed by the programming language,
40718 Switches indexed by the file name.
40719 (Collect_Arguments_And_Compile): Idem.
40720 Reflect the attribute name changes.
40723 (Initialisation_Data): Change the names of some packages and
40725 (Initialize): process case insensitive associative arrays.
40728 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40731 (Parse_Attribute_Declaration): For case insensitive associative
40732 arrays, set the index string to lower case.
40735 Reflect the changes of the project attributes.
40738 Replace Check_Naming_Scheme by Ada_Check and
40739 Language_Independent_Check.
40742 Replaced Check_Naming_Scheme by 2 procedures:
40743 Ada_Check and Language_Independent_Check.
40746 (Process_Declarative_Items): For case-insensitive associative
40747 arrays, set the index string to lower case.
40748 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40749 Prj.Nmsc.Check_Naming_Scheme.
40752 (Case_Insensitive): New function
40753 (Set_Case_Insensitive): New procedure
40756 (Case_Insensitive): New function
40757 (Set_Case_Insensitive): New procedure
40758 (Project_Node_Record): New flag Case_Insensitive.
40761 (Value_Of): new function to get the string value of a single
40762 string variable or attribute.
40765 (Value_Of): new function to get the string value of a single
40766 string variable or attribute.
40769 (Ada_Default_Spec_Suffix): New function
40770 (Ada_Default_Impl_Suffix): New function
40771 Change definitions of several constants to reflect
40772 new components of record types.
40775 (Naming_Data): Change several components to reflect new
40776 elements of naming schemes.
40777 (Project_Data): New flags Sources_Present and
40778 Language_Independent_Checked.
40779 (Ada_Default_Spec_Suffix): New function.
40780 (Ada_Default_Impl_Suffix): New function.
40783 Modification of predefined names for project manager: added
40784 Implementation, Specification_Exceptions, Implementation_Exceptions,
40785 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40786 Default_Switches, _Languages, Builder, Cross_Reference,
40787 Finder. Removed Body_Part, Specification_Append, Body_Append,
40788 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40791 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40794 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40795 not that it is Nil_Variable_Value.
40797 * prj.ads: Add ??? for uncommented declarations
40799 2001-10-10 Ed Schonberg <schonber@gnat.com>
40801 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40802 constant, do not indicate possible modification, so that gigi can
40803 treat it as a bona fide constant.
40805 2001-10-10 Robert Dewar <dewar@gnat.com>
40807 * sem_prag.adb: Add processing for pragma External.
40809 * snames.ads: Add entry for pragma External.
40811 * par-prag.adb: Add pragma External.
40813 * snames.adb: Updated to match snames.ads.
40815 2001-10-10 Ed Schonberg <schonber@gnat.com>
40817 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40818 a dynamic task if the allocator appears in an indexed assignment
40819 or selected component assignment.
40821 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40822 For a dynamic task in an assignment statement, use target of
40823 assignment to generate meaningful name.
40825 2001-10-10 Ed Schonberg <schonber@gnat.com>
40827 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40830 * einfo.ads: Body_Entity is also defined for generic package.
40831 Documentation change only
40833 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40834 others_choice for a discriminated component initialization,
40835 convert discriminant references into the corresponding discriminals.
40837 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40838 only if original type is private and expression has to be wrapped
40842 (Apply_Constraint_Check): Do not perform length check
40843 if expression is an aggregate with only an others_choice.
40844 (Length_N_Cond): two references to the same in_parameter
40845 (typically the discriminal in an init_proc) denote the same value.
40846 Two useful optimization uncovered by bugfixes above.
40848 2001-10-10 Robert Dewar <dewar@gnat.com>
40850 * xeinfo.adb: Change int to char in translation of enumeration types.
40851 This fixes a problem in the C representation of component alignment.
40852 Add 2001 to copyright notice
40854 2001-10-10 Richard Kenner <kenner@gnat.com>
40856 * decl.c: (validate_size): Do check size of object of integral type
40857 if it is a packed array type.
40859 2001-10-10 Richard Kenner <kenner@gnat.com>
40861 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40862 VAR_DECL for constant if not Is_Public but -O0.
40864 2001-10-10 Richard Kenner <kenner@gnat.com>
40866 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40868 2001-10-10 Geert Bosch <bosch@gnat.com>
40870 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
40871 use '/' as switch character, allowing for absolute file names.
40873 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
40875 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40878 2001-10-08 Geert Bosch <bosch@gnat.com>
40880 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40881 Automatically build utilities when files need to be regenerated.
40883 2001-10-08 Geert Bosch <bosch@gnat.com>
40885 * xsnames.adb: New utility for updating snames.ads and snames.adb
40887 2001-10-08 Zack Weinberg <zack@codesourcery.com>
40889 * Make-lang.in (ADAFLAGS): Add -W -Wall.
40890 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40891 (gnat1): Also depend on attribs.o.
40892 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40893 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40894 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40895 (ADAFLAGS): Add -W -Wall.
40896 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40899 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40900 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40901 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40902 Use $(ADAC), not $(CC), as compilation command.
40904 (gnattools): Depend directly on tools to build, don't use
40906 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40908 * einfo.h, sinfo.h: New files (autogenerated).
40910 2001-10-08 Richard Henderson <rth@redhat.com>
40912 * comperr.adb (Abort_In_Progress): New.
40913 (Compiler_Abort): Use it to prevent recursion.
40915 2001-10-08 Robert Dewar <dewar@gnat.com>
40917 * atree.adb: Set Error_Posted in Error node, helps error recovery.
40919 * par-endh.adb (Output_End_Expected): We should also not test
40920 Error_Posted on the Error node, since now it is always set.
40922 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40923 to help error recovery. Part of general work on 9407-004.
40925 * par.adb: Add ??? for misuse of error
40928 (Resolve): Defend against Error, fixes 9407-003.
40929 (Resolve_Discrete_Subtype_Indication): Defend against Error.
40931 * sinfo.ads (N_Error): Now has Etype field (which will be set
40932 to Any_Type to help error recovery).
40934 2001-10-08 Richard Kenner <kenner@gnat.com>
40936 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40937 Consistently set MEM attributes from expression; fixes
40938 bootstrap failure on x86.
40940 2001-10-08 Geert Bosch <bosch@gnat.com>
40942 * 5oosinte.adb: Add 2001 to copyright notice.
40944 2001-10-08 Geert Bosch <bosch@gnat.com>
40946 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40948 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40950 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
40952 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40954 2001-10-05 Geert Bosch <bosch@gnat.com>
40956 * adaint.h: Small formatting fix.
40958 2001-10-04 Geert Bosch <bosch@gnat.com>
40960 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40961 Arg is int, not FILE *, in dummy version of functions.
40963 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40964 Arg is int, not FILE *.
40966 2001-10-04 Geert Bosch <bosch@gnat.com>
40968 * 3lsoccon.ads: Added file, missed with initial check ins.
40970 * 4lintnam.ads: Fix header format.
40971 Change Linux to GNU/Linux.
40973 * 5iosinte.adb: Change Linux to GNU/Linux.
40975 * 5iosinte.ads: Change Linux to GNU/Linux.
40977 * 5itaprop.adb: Change Linux to GNU/Linux.
40979 * 5itaspri.ads: Change Linux to GNU/Linux.
40980 Update copyright notice.
40982 * 5lintman.adb: Change Linux to GNU/Linux.
40984 * 5lml-tgt.adb: Change Linux to GNU/Linux.
40986 * 5losinte.ads: Change Linux to GNU/Linux.
40988 * 5lsystem.ads: Change Linux to GNU/Linux.
40990 * 5qosinte.adb: Change Linux to GNU/Linux.
40992 * 5qosinte.ads: Change Linux to GNU/Linux.
40994 * 5qparame.ads: Change Linux to GNU/Linux.
40996 * 5qtaprop.adb: Change Linux to GNU/Linux.
40998 * 5qtaspri.ads: Change Linux to GNU/Linux.
40999 Add 2001 to copyright notice.
41001 * 5vintman.ads: Change Linux to GNU/Linux.
41002 Fix header format. Add 2001 to copyright notice.
41004 * g-soccon.ads: Change Linux to GNU/Linux.
41006 * g-trasym.ads: Change Linux to GNU/Linux.
41007 Add 2001 to copyright notice.
41009 * memtrack.adb: Change Linux to GNU/Linux.
41011 * s-intman.ads: Change Linux to GNU/Linux.
41012 Add 2001 to copyright notice. Fix header format.
41014 * s-stache.adb: Change Linux to GNU/Linux.
41016 * adaint.c: Change Linux to GNU/Linux.
41018 * cio.c: Change Linux to GNU/Linux.
41020 * cstreams.c: Change Linux to GNU/Linux.
41022 * init.c: Change Linux to GNU/Linux.
41024 * gmem.c: Change Linux to GNU/Linux.
41026 * tracebak.c: Change Linux to GNU/Linux.
41029 2001-10-02 Geert Bosch <bosch@gnat.com>
41031 * misc.c (insert_default_attributes): Add dummy version.